From 05e886f547830565c7279f2975eb0e0c44182dff Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 27 Jan 2026 23:44:01 -0800 Subject: [PATCH] Update WinRT headers to support Windows App SDK and newer Windows SDK. PiperOrigin-RevId: 862076081 --- .../winrt/Microsoft.Graphics.DirectX.h | 20 + .../winrt/Microsoft.Graphics.Display.h | 990 + .../winrt/Microsoft.Graphics.Imaging.h | 365 + ...phics.ImagingInternal.ImageObjectRemover.h | 89 + .../Microsoft.Graphics.ImagingInternal.h | 1034 + .../Microsoft.Graphics.Internal.Imaging.h | 118 + .../Microsoft.Security.Authentication.OAuth.h | 3197 + .../winrt/Microsoft.UI.Composition.Core.h | 224 + .../Microsoft.UI.Composition.Diagnostics.h | 338 + .../winrt/Microsoft.UI.Composition.Effects.h | 428 + .../Microsoft.UI.Composition.Interactions.h | 5715 + .../winrt/Microsoft.UI.Composition.Scenes.h | 2911 + ...Microsoft.UI.Composition.SystemBackdrops.h | 1583 + .../winrt/Microsoft.UI.Composition.h | 25100 +++ .../generated/winrt/Microsoft.UI.Content.h | 7612 + .../winrt/Microsoft.UI.Dispatching.h | 1377 + .../winrt/Microsoft.UI.Input.DragDrop.h | 1277 + .../winrt/Microsoft.UI.Input.Interop.h | 84 + .../generated/winrt/Microsoft.UI.Input.h | 11047 ++ .../generated/winrt/Microsoft.UI.System.h | 223 + .../generated/winrt/Microsoft.UI.Text.h | 6869 + .../generated/winrt/Microsoft.UI.Windowing.h | 5473 + .../Microsoft.UI.Xaml.Automation.Peers.h | 18291 ++ .../Microsoft.UI.Xaml.Automation.Provider.h | 4722 + .../winrt/Microsoft.UI.Xaml.Automation.Text.h | 21 + .../winrt/Microsoft.UI.Xaml.Automation.h | 9471 + ...crosoft.UI.Xaml.Controls.AnimatedVisuals.h | 135 + .../Microsoft.UI.Xaml.Controls.Primitives.h | 38635 +++++ .../winrt/Microsoft.UI.Xaml.Controls.h | 135130 +++++++++++++++ .../generated/winrt/Microsoft.UI.Xaml.Data.h | 4171 + .../winrt/Microsoft.UI.Xaml.Documents.h | 12382 ++ .../winrt/Microsoft.UI.Xaml.Hosting.h | 1797 + .../generated/winrt/Microsoft.UI.Xaml.Input.h | 10186 ++ .../winrt/Microsoft.UI.Xaml.Interop.h | 1206 + .../winrt/Microsoft.UI.Xaml.Markup.h | 3129 + .../winrt/Microsoft.UI.Xaml.Media.Animation.h | 18266 ++ .../winrt/Microsoft.UI.Xaml.Media.Imaging.h | 3362 + .../winrt/Microsoft.UI.Xaml.Media.Media3D.h | 2026 + .../generated/winrt/Microsoft.UI.Xaml.Media.h | 15590 ++ .../winrt/Microsoft.UI.Xaml.Navigation.h | 1412 + .../winrt/Microsoft.UI.Xaml.Printing.h | 991 + .../winrt/Microsoft.UI.Xaml.Resources.h | 309 + .../winrt/Microsoft.UI.Xaml.Shapes.h | 2614 + .../winrt/Microsoft.UI.Xaml.XamlTypeInfo.h | 103 + .../generated/winrt/Microsoft.UI.Xaml.h | 33009 ++++ .../windows/generated/winrt/Microsoft.UI.h | 5243 + .../winrt/Microsoft.Web.WebView2.Core.h | 29988 ++++ ...oft.Windows.AI.ContentModerationInternal.h | 230 + .../Microsoft.Windows.AI.ContentSafety.h | 1028 + .../winrt/Microsoft.Windows.AI.Foundation.h | 188 + .../Microsoft.Windows.AI.FoundationInternal.h | 194 + .../Microsoft.Windows.AI.GenerativeInternal.h | 2836 + .../winrt/Microsoft.Windows.AI.Imaging.h | 1920 + .../Microsoft.Windows.AI.MachineLearning.h | 1809 + .../winrt/Microsoft.Windows.AI.Text.h | 2533 + .../generated/winrt/Microsoft.Windows.AI.h | 156 + .../winrt/Microsoft.Windows.AppLifecycle.h | 882 + ...crosoft.Windows.AppNotifications.Builder.h | 3636 + .../Microsoft.Windows.AppNotifications.h | 1800 + ...licationModel.Background.UniversalBGTask.h | 44 + ...soft.Windows.ApplicationModel.Background.h | 350 + ...ndows.ApplicationModel.DynamicDependency.h | 1316 + ...osoft.Windows.ApplicationModel.Resources.h | 1711 + ...ndows.ApplicationModel.WindowsAppRuntime.h | 1051 + .../Microsoft.Windows.BadgeNotifications.h | 192 + .../winrt/Microsoft.Windows.Foundation.h | 2141 + .../winrt/Microsoft.Windows.Globalization.h | 201 + ...ft.Windows.Internal.AI.ContentModeration.h | 63 + ...Microsoft.Windows.Internal.AI.Generative.h | 147 + .../winrt/Microsoft.Windows.Internal.Vision.h | 53 + .../Microsoft.Windows.Management.Deployment.h | 7073 + .../winrt/Microsoft.Windows.Media.Capture.h | 871 + ...Windows.Private.Workloads.SessionManager.h | 254 + .../winrt/Microsoft.Windows.PrivateCommon.h | 931 + .../Microsoft.Windows.PushNotifications.h | 756 + ...Microsoft.Windows.Security.AccessControl.h | 187 + .../winrt/Microsoft.Windows.SemanticSearch.h | 188 + .../winrt/Microsoft.Windows.Storage.Pickers.h | 1213 + .../winrt/Microsoft.Windows.Storage.h | 893 + .../winrt/Microsoft.Windows.System.Power.h | 1609 + .../winrt/Microsoft.Windows.System.h | 462 + .../winrt/Microsoft.Windows.Vision.h | 20 + .../winrt/Microsoft.Windows.VisionInternal.h | 560 + ...icrosoft.Windows.Widgets.Feeds.Providers.h | 2310 + .../Microsoft.Windows.Widgets.Notifications.h | 1008 + .../Microsoft.Windows.Widgets.Providers.h | 2771 + .../winrt/Microsoft.Windows.Widgets.h | 20 + .../winrt/Microsoft.Windows.Workloads.h | 20 + .../winrt/Windows.AI.Actions.Hosting.h | 1282 + .../winrt/Windows.AI.Actions.Provider.h | 121 + .../generated/winrt/Windows.AI.Actions.h | 4318 + .../generated/winrt/Windows.AI.Agents.Mcp.h | 1100 + .../Windows.ApplicationModel.Background.h | 545 +- .../winrt/Windows.ApplicationModel.Calls.h | 3919 +- .../Windows.ApplicationModel.DataTransfer.h | 1246 + .../winrt/Windows.ApplicationModel.h | 35 - .../Windows.Devices.Bluetooth.Advertisement.h | 1104 +- .../Windows.Devices.Bluetooth.Background.h | 79 +- ...evices.Bluetooth.GenericAttributeProfile.h | 303 +- .../winrt/Windows.Devices.Bluetooth.h | 137 +- .../winrt/Windows.Devices.Printers.h | 1755 +- .../generated/winrt/Windows.Devices.Sensors.h | 1104 +- .../winrt/Windows.Embedded.DeviceLockdown.h | 186 - .../Windows.Graphics.Printing.PrintSupport.h | 831 +- .../Windows.Graphics.Printing.PrintTicket.h | 104 +- ...Windows.Graphics.Printing.ProtectedPrint.h | 78 + .../Windows.Graphics.Printing.Workflow.h | 739 +- .../winrt/Windows.Management.Deployment.h | 599 +- .../winrt/Windows.Management.Update.h | 6155 +- .../generated/winrt/Windows.Media.Capture.h | 257 - .../generated/winrt/Windows.Media.Core.h | 82 +- .../generated/winrt/Windows.Media.Effects.h | 60 - .../winrt/Windows.Media.SpeechRecognition.h | 154 - .../Windows.Networking.NetworkOperators.h | 38 - .../winrt/Windows.Phone.ApplicationModel.h | 91 - .../Windows.Phone.Devices.Notification.h | 115 - .../winrt/Windows.Phone.Devices.Power.h | 172 - .../Windows.Phone.Management.Deployment.h | 752 - .../winrt/Windows.Phone.Media.Devices.h | 225 - .../Windows.Phone.Notification.Management.h | 4544 - ...s.Phone.PersonalInformation.Provisioning.h | 201 - .../winrt/Windows.Phone.PersonalInformation.h | 2772 - .../winrt/Windows.Phone.Speech.Recognition.h | 23 - .../winrt/Windows.Phone.StartScreen.h | 467 - .../winrt/Windows.Phone.System.Power.h | 163 - .../winrt/Windows.Phone.System.Profile.h | 61 - ...one.System.UserProfile.GameServices.Core.h | 362 - .../generated/winrt/Windows.Phone.System.h | 94 - .../generated/winrt/Windows.Phone.UI.Input.h | 363 - ...Windows.Security.Authentication.Web.Core.h | 961 +- .../winrt/Windows.Security.Credentials.h | 775 +- .../winrt/Windows.Storage.Provider.h | 1859 +- .../winrt/Windows.System.Power.Thermal.h | 1285 + .../winrt/Windows.UI.Input.Preview.Text.h | 4400 + .../generated/winrt/Windows.UI.Input.h | 2327 +- .../winrt/Windows.UI.ViewManagement.h | 780 +- .../generated/winrt/Windows.UI.WebUI.Core.h | 1435 - .../winrt/impl/Microsoft.Graphics.DirectX.0.h | 208 + .../winrt/impl/Microsoft.Graphics.DirectX.1.h | 9 + .../winrt/impl/Microsoft.Graphics.DirectX.2.h | 9 + .../winrt/impl/Microsoft.Graphics.Display.0.h | 295 + .../winrt/impl/Microsoft.Graphics.Display.1.h | 34 + .../winrt/impl/Microsoft.Graphics.Display.2.h | 32 + .../winrt/impl/Microsoft.Graphics.Imaging.0.h | 133 + .../winrt/impl/Microsoft.Graphics.Imaging.1.h | 26 + .../winrt/impl/Microsoft.Graphics.Imaging.2.h | 29 + .../Microsoft.Graphics.ImagingInternal.0.h | 672 + .../Microsoft.Graphics.ImagingInternal.1.h | 174 + .../Microsoft.Graphics.ImagingInternal.2.h | 43 + ...ics.ImagingInternal.ImageObjectRemover.0.h | 71 + ...ics.ImagingInternal.ImageObjectRemover.1.h | 23 + ...ics.ImagingInternal.ImageObjectRemover.2.h | 10 + .../Microsoft.Graphics.Internal.Imaging.0.h | 134 + .../Microsoft.Graphics.Internal.Imaging.1.h | 9 + .../Microsoft.Graphics.Internal.Imaging.2.h | 164 + ...icrosoft.Security.Authentication.OAuth.0.h | 956 + ...icrosoft.Security.Authentication.OAuth.1.h | 138 + ...icrosoft.Security.Authentication.OAuth.2.h | 121 + .../generated/winrt/impl/Microsoft.UI.0.h | 727 + .../generated/winrt/impl/Microsoft.UI.1.h | 58 + .../generated/winrt/impl/Microsoft.UI.2.h | 214 + .../winrt/impl/Microsoft.UI.Composition.0.h | 9201 + .../winrt/impl/Microsoft.UI.Composition.1.h | 1461 + .../winrt/impl/Microsoft.UI.Composition.2.h | 2806 + .../impl/Microsoft.UI.Composition.Core.0.h | 88 + .../impl/Microsoft.UI.Composition.Core.1.h | 18 + .../impl/Microsoft.UI.Composition.Core.2.h | 21 + .../Microsoft.UI.Composition.Diagnostics.0.h | 190 + .../Microsoft.UI.Composition.Diagnostics.1.h | 35 + .../Microsoft.UI.Composition.Diagnostics.2.h | 29 + .../impl/Microsoft.UI.Composition.Effects.0.h | 135 + .../impl/Microsoft.UI.Composition.Effects.1.h | 26 + .../impl/Microsoft.UI.Composition.Effects.2.h | 24 + .../Microsoft.UI.Composition.Interactions.0.h | 2411 + .../Microsoft.UI.Composition.Interactions.1.h | 397 + .../Microsoft.UI.Composition.Interactions.2.h | 441 + .../impl/Microsoft.UI.Composition.Scenes.0.h | 1457 + .../impl/Microsoft.UI.Composition.Scenes.1.h | 248 + .../impl/Microsoft.UI.Composition.Scenes.2.h | 492 + ...crosoft.UI.Composition.SystemBackdrops.0.h | 622 + ...crosoft.UI.Composition.SystemBackdrops.1.h | 101 + ...crosoft.UI.Composition.SystemBackdrops.2.h | 60 + .../winrt/impl/Microsoft.UI.Content.0.h | 2586 + .../winrt/impl/Microsoft.UI.Content.1.h | 437 + .../winrt/impl/Microsoft.UI.Content.2.h | 255 + .../winrt/impl/Microsoft.UI.Dispatching.0.h | 599 + .../winrt/impl/Microsoft.UI.Dispatching.1.h | 93 + .../winrt/impl/Microsoft.UI.Dispatching.2.h | 78 + .../winrt/impl/Microsoft.UI.Input.0.h | 4352 + .../winrt/impl/Microsoft.UI.Input.1.h | 584 + .../winrt/impl/Microsoft.UI.Input.2.h | 504 + .../impl/Microsoft.UI.Input.DragDrop.0.h | 453 + .../impl/Microsoft.UI.Input.DragDrop.1.h | 67 + .../impl/Microsoft.UI.Input.DragDrop.2.h | 55 + .../winrt/impl/Microsoft.UI.Input.Interop.0.h | 56 + .../winrt/impl/Microsoft.UI.Input.Interop.1.h | 18 + .../winrt/impl/Microsoft.UI.Input.Interop.2.h | 16 + .../winrt/impl/Microsoft.UI.System.0.h | 110 + .../winrt/impl/Microsoft.UI.System.1.h | 26 + .../winrt/impl/Microsoft.UI.System.2.h | 20 + .../winrt/impl/Microsoft.UI.Text.0.h | 1340 + .../winrt/impl/Microsoft.UI.Text.1.h | 84 + .../winrt/impl/Microsoft.UI.Text.2.h | 55 + .../winrt/impl/Microsoft.UI.Windowing.0.h | 1612 + .../winrt/impl/Microsoft.UI.Windowing.1.h | 235 + .../winrt/impl/Microsoft.UI.Windowing.2.h | 154 + .../winrt/impl/Microsoft.UI.Xaml.0.h | 9266 + .../winrt/impl/Microsoft.UI.Xaml.1.h | 1182 + .../winrt/impl/Microsoft.UI.Xaml.2.h | 1492 + .../impl/Microsoft.UI.Xaml.Automation.0.h | 2963 + .../impl/Microsoft.UI.Xaml.Automation.1.h | 447 + .../impl/Microsoft.UI.Xaml.Automation.2.h | 480 + .../Microsoft.UI.Xaml.Automation.Peers.0.h | 10258 ++ .../Microsoft.UI.Xaml.Automation.Peers.1.h | 1820 + .../Microsoft.UI.Xaml.Automation.Peers.2.h | 2818 + .../Microsoft.UI.Xaml.Automation.Provider.0.h | 1582 + .../Microsoft.UI.Xaml.Automation.Provider.1.h | 312 + .../Microsoft.UI.Xaml.Automation.Provider.2.h | 23 + .../Microsoft.UI.Xaml.Automation.Text.0.h | 41 + .../Microsoft.UI.Xaml.Automation.Text.1.h | 9 + .../Microsoft.UI.Xaml.Automation.Text.2.h | 9 + .../winrt/impl/Microsoft.UI.Xaml.Controls.0.h | 44346 +++++ .../winrt/impl/Microsoft.UI.Xaml.Controls.1.h | 6089 + .../winrt/impl/Microsoft.UI.Xaml.Controls.2.h | 7458 + ...osoft.UI.Xaml.Controls.AnimatedVisuals.0.h | 143 + ...osoft.UI.Xaml.Controls.AnimatedVisuals.1.h | 9 + ...osoft.UI.Xaml.Controls.AnimatedVisuals.2.h | 103 + .../Microsoft.UI.Xaml.Controls.Primitives.0.h | 10227 ++ .../Microsoft.UI.Xaml.Controls.Primitives.1.h | 1355 + .../Microsoft.UI.Xaml.Controls.Primitives.2.h | 1706 + .../winrt/impl/Microsoft.UI.Xaml.Data.0.h | 1576 + .../winrt/impl/Microsoft.UI.Xaml.Data.1.h | 289 + .../winrt/impl/Microsoft.UI.Xaml.Data.2.h | 184 + .../impl/Microsoft.UI.Xaml.Documents.0.h | 2270 + .../impl/Microsoft.UI.Xaml.Documents.1.h | 273 + .../impl/Microsoft.UI.Xaml.Documents.2.h | 593 + .../winrt/impl/Microsoft.UI.Xaml.Hosting.0.h | 875 + .../winrt/impl/Microsoft.UI.Xaml.Hosting.1.h | 153 + .../winrt/impl/Microsoft.UI.Xaml.Hosting.2.h | 127 + .../winrt/impl/Microsoft.UI.Xaml.Input.0.h | 3428 + .../winrt/impl/Microsoft.UI.Xaml.Input.1.h | 442 + .../winrt/impl/Microsoft.UI.Xaml.Input.2.h | 814 + .../winrt/impl/Microsoft.UI.Xaml.Interop.0.h | 438 + .../winrt/impl/Microsoft.UI.Xaml.Interop.1.h | 85 + .../winrt/impl/Microsoft.UI.Xaml.Interop.2.h | 77 + .../winrt/impl/Microsoft.UI.Xaml.Markup.0.h | 1054 + .../winrt/impl/Microsoft.UI.Xaml.Markup.1.h | 186 + .../winrt/impl/Microsoft.UI.Xaml.Markup.2.h | 196 + .../winrt/impl/Microsoft.UI.Xaml.Media.0.h | 5883 + .../winrt/impl/Microsoft.UI.Xaml.Media.1.h | 1030 + .../winrt/impl/Microsoft.UI.Xaml.Media.2.h | 1064 + .../Microsoft.UI.Xaml.Media.Animation.0.h | 7612 + .../Microsoft.UI.Xaml.Media.Animation.1.h | 1259 + .../Microsoft.UI.Xaml.Media.Animation.2.h | 1428 + .../impl/Microsoft.UI.Xaml.Media.Imaging.0.h | 1320 + .../impl/Microsoft.UI.Xaml.Media.Imaging.1.h | 207 + .../impl/Microsoft.UI.Xaml.Media.Imaging.2.h | 218 + .../impl/Microsoft.UI.Xaml.Media.Media3D.0.h | 489 + .../impl/Microsoft.UI.Xaml.Media.Media3D.1.h | 75 + .../impl/Microsoft.UI.Xaml.Media.Media3D.2.h | 117 + .../impl/Microsoft.UI.Xaml.Navigation.0.h | 542 + .../impl/Microsoft.UI.Xaml.Navigation.1.h | 75 + .../impl/Microsoft.UI.Xaml.Navigation.2.h | 154 + .../winrt/impl/Microsoft.UI.Xaml.Printing.0.h | 420 + .../winrt/impl/Microsoft.UI.Xaml.Printing.1.h | 58 + .../winrt/impl/Microsoft.UI.Xaml.Printing.2.h | 115 + .../impl/Microsoft.UI.Xaml.Resources.0.h | 175 + .../impl/Microsoft.UI.Xaml.Resources.1.h | 45 + .../impl/Microsoft.UI.Xaml.Resources.2.h | 35 + .../winrt/impl/Microsoft.UI.Xaml.Shapes.0.h | 693 + .../winrt/impl/Microsoft.UI.Xaml.Shapes.1.h | 130 + .../winrt/impl/Microsoft.UI.Xaml.Shapes.2.h | 164 + .../impl/Microsoft.UI.Xaml.XamlTypeInfo.0.h | 101 + .../impl/Microsoft.UI.Xaml.XamlTypeInfo.1.h | 29 + .../impl/Microsoft.UI.Xaml.XamlTypeInfo.2.h | 24 + .../impl/Microsoft.Web.WebView2.Core.0.h | 11246 ++ .../impl/Microsoft.Web.WebView2.Core.1.h | 1662 + .../impl/Microsoft.Web.WebView2.Core.2.h | 913 + .../winrt/impl/Microsoft.Windows.AI.0.h | 95 + .../winrt/impl/Microsoft.Windows.AI.1.h | 18 + .../winrt/impl/Microsoft.Windows.AI.2.h | 17 + ...t.Windows.AI.ContentModerationInternal.0.h | 227 + ...t.Windows.AI.ContentModerationInternal.1.h | 46 + ...t.Windows.AI.ContentModerationInternal.2.h | 51 + .../Microsoft.Windows.AI.ContentSafety.0.h | 330 + .../Microsoft.Windows.AI.ContentSafety.1.h | 52 + .../Microsoft.Windows.AI.ContentSafety.2.h | 42 + .../impl/Microsoft.Windows.AI.Foundation.0.h | 103 + .../impl/Microsoft.Windows.AI.Foundation.1.h | 26 + .../impl/Microsoft.Windows.AI.Foundation.2.h | 19 + ...icrosoft.Windows.AI.FoundationInternal.0.h | 112 + ...icrosoft.Windows.AI.FoundationInternal.1.h | 26 + ...icrosoft.Windows.AI.FoundationInternal.2.h | 19 + ...icrosoft.Windows.AI.GenerativeInternal.0.h | 1154 + ...icrosoft.Windows.AI.GenerativeInternal.1.h | 308 + ...icrosoft.Windows.AI.GenerativeInternal.2.h | 80 + .../impl/Microsoft.Windows.AI.Imaging.0.h | 904 + .../impl/Microsoft.Windows.AI.Imaging.1.h | 140 + .../impl/Microsoft.Windows.AI.Imaging.2.h | 134 + .../Microsoft.Windows.AI.MachineLearning.0.h | 700 + .../Microsoft.Windows.AI.MachineLearning.1.h | 99 + .../Microsoft.Windows.AI.MachineLearning.2.h | 85 + .../winrt/impl/Microsoft.Windows.AI.Text.0.h | 1111 + .../winrt/impl/Microsoft.Windows.AI.Text.1.h | 187 + .../winrt/impl/Microsoft.Windows.AI.Text.2.h | 135 + .../impl/Microsoft.Windows.AppLifecycle.0.h | 351 + .../impl/Microsoft.Windows.AppLifecycle.1.h | 51 + .../impl/Microsoft.Windows.AppLifecycle.2.h | 47 + .../Microsoft.Windows.AppNotifications.0.h | 602 + .../Microsoft.Windows.AppNotifications.1.h | 95 + .../Microsoft.Windows.AppNotifications.2.h | 57 + ...osoft.Windows.AppNotifications.Builder.0.h | 768 + ...osoft.Windows.AppNotifications.Builder.1.h | 85 + ...osoft.Windows.AppNotifications.Builder.2.h | 59 + ...ft.Windows.ApplicationModel.Background.0.h | 97 + ...ft.Windows.ApplicationModel.Background.1.h | 18 + ...ft.Windows.ApplicationModel.Background.2.h | 19 + ...cationModel.Background.UniversalBGTask.0.h | 70 + ...cationModel.Background.UniversalBGTask.1.h | 19 + ...cationModel.Background.UniversalBGTask.2.h | 24 + ...ows.ApplicationModel.DynamicDependency.0.h | 555 + ...ows.ApplicationModel.DynamicDependency.1.h | 77 + ...ows.ApplicationModel.DynamicDependency.2.h | 82 + ...oft.Windows.ApplicationModel.Resources.0.h | 710 + ...oft.Windows.ApplicationModel.Resources.1.h | 115 + ...oft.Windows.ApplicationModel.Resources.2.h | 86 + ...ows.ApplicationModel.WindowsAppRuntime.0.h | 574 + ...ows.ApplicationModel.WindowsAppRuntime.1.h | 83 + ...ows.ApplicationModel.WindowsAppRuntime.2.h | 79 + .../Microsoft.Windows.BadgeNotifications.0.h | 135 + .../Microsoft.Windows.BadgeNotifications.1.h | 27 + .../Microsoft.Windows.BadgeNotifications.2.h | 19 + .../impl/Microsoft.Windows.Foundation.0.h | 328 + .../impl/Microsoft.Windows.Foundation.1.h | 18 + .../impl/Microsoft.Windows.Foundation.2.h | 129 + .../impl/Microsoft.Windows.Globalization.0.h | 63 + .../impl/Microsoft.Windows.Globalization.1.h | 18 + .../impl/Microsoft.Windows.Globalization.2.h | 17 + ....Windows.Internal.AI.ContentModeration.0.h | 70 + ....Windows.Internal.AI.ContentModeration.1.h | 10 + ....Windows.Internal.AI.ContentModeration.2.h | 71 + ...crosoft.Windows.Internal.AI.Generative.0.h | 253 + ...crosoft.Windows.Internal.AI.Generative.1.h | 35 + ...crosoft.Windows.Internal.AI.Generative.2.h | 273 + .../Microsoft.Windows.Internal.Vision.0.h | 64 + .../Microsoft.Windows.Internal.Vision.1.h | 9 + .../Microsoft.Windows.Internal.Vision.2.h | 77 + ...icrosoft.Windows.Management.Deployment.0.h | 1586 + ...icrosoft.Windows.Management.Deployment.1.h | 173 + ...icrosoft.Windows.Management.Deployment.2.h | 155 + .../impl/Microsoft.Windows.Media.Capture.0.h | 327 + .../impl/Microsoft.Windows.Media.Capture.1.h | 44 + .../impl/Microsoft.Windows.Media.Capture.2.h | 41 + ...ndows.Private.Workloads.SessionManager.0.h | 196 + ...ndows.Private.Workloads.SessionManager.1.h | 43 + ...ndows.Private.Workloads.SessionManager.2.h | 31 + .../impl/Microsoft.Windows.PrivateCommon.0.h | 463 + .../impl/Microsoft.Windows.PrivateCommon.1.h | 92 + .../impl/Microsoft.Windows.PrivateCommon.2.h | 76 + .../Microsoft.Windows.PushNotifications.0.h | 371 + .../Microsoft.Windows.PushNotifications.1.h | 53 + .../Microsoft.Windows.PushNotifications.2.h | 65 + ...crosoft.Windows.Security.AccessControl.0.h | 108 + ...crosoft.Windows.Security.AccessControl.1.h | 19 + ...crosoft.Windows.Security.AccessControl.2.h | 36 + .../impl/Microsoft.Windows.SemanticSearch.0.h | 103 + .../impl/Microsoft.Windows.SemanticSearch.1.h | 26 + .../impl/Microsoft.Windows.SemanticSearch.2.h | 19 + .../winrt/impl/Microsoft.Windows.Storage.0.h | 225 + .../winrt/impl/Microsoft.Windows.Storage.1.h | 34 + .../winrt/impl/Microsoft.Windows.Storage.2.h | 32 + .../Microsoft.Windows.Storage.Pickers.0.h | 449 + .../Microsoft.Windows.Storage.Pickers.1.h | 74 + .../Microsoft.Windows.Storage.Pickers.2.h | 49 + .../winrt/impl/Microsoft.Windows.System.0.h | 146 + .../winrt/impl/Microsoft.Windows.System.1.h | 34 + .../winrt/impl/Microsoft.Windows.System.2.h | 23 + .../impl/Microsoft.Windows.System.Power.0.h | 408 + .../impl/Microsoft.Windows.System.Power.1.h | 26 + .../impl/Microsoft.Windows.System.Power.2.h | 164 + .../winrt/impl/Microsoft.Windows.Vision.0.h | 55 + .../winrt/impl/Microsoft.Windows.Vision.1.h | 9 + .../winrt/impl/Microsoft.Windows.Vision.2.h | 25 + .../impl/Microsoft.Windows.VisionInternal.0.h | 625 + .../impl/Microsoft.Windows.VisionInternal.1.h | 134 + .../impl/Microsoft.Windows.VisionInternal.2.h | 141 + .../winrt/impl/Microsoft.Windows.Widgets.0.h | 28 + .../winrt/impl/Microsoft.Windows.Widgets.1.h | 9 + .../winrt/impl/Microsoft.Windows.Widgets.2.h | 9 + ...rosoft.Windows.Widgets.Feeds.Providers.0.h | 1293 + ...rosoft.Windows.Widgets.Feeds.Providers.1.h | 216 + ...rosoft.Windows.Widgets.Feeds.Providers.2.h | 138 + ...icrosoft.Windows.Widgets.Notifications.0.h | 246 + ...icrosoft.Windows.Widgets.Notifications.1.h | 34 + ...icrosoft.Windows.Widgets.Notifications.2.h | 31 + .../Microsoft.Windows.Widgets.Providers.0.h | 1338 + .../Microsoft.Windows.Widgets.Providers.1.h | 239 + .../Microsoft.Windows.Widgets.Providers.2.h | 131 + .../impl/Microsoft.Windows.Workloads.0.h | 29 + .../impl/Microsoft.Windows.Workloads.1.h | 9 + .../impl/Microsoft.Windows.Workloads.2.h | 9 + .../winrt/impl/Windows.AI.Actions.0.h | 2048 + .../winrt/impl/Windows.AI.Actions.1.h | 366 + .../winrt/impl/Windows.AI.Actions.2.h | 296 + .../winrt/impl/Windows.AI.Actions.Hosting.0.h | 606 + .../winrt/impl/Windows.AI.Actions.Hosting.1.h | 114 + .../winrt/impl/Windows.AI.Actions.Hosting.2.h | 68 + .../impl/Windows.AI.Actions.Provider.0.h | 84 + .../impl/Windows.AI.Actions.Provider.1.h | 26 + .../impl/Windows.AI.Actions.Provider.2.h | 9 + .../winrt/impl/Windows.AI.Agents.Mcp.0.h | 516 + .../winrt/impl/Windows.AI.Agents.Mcp.1.h | 98 + .../winrt/impl/Windows.AI.Agents.Mcp.2.h | 68 + .../winrt/impl/Windows.ApplicationModel.0.h | 23 - .../winrt/impl/Windows.ApplicationModel.1.h | 7 - .../winrt/impl/Windows.ApplicationModel.2.h | 5 - .../Windows.ApplicationModel.Activation.0.h | 343 +- .../Windows.ApplicationModel.Background.0.h | 131 +- .../Windows.ApplicationModel.Background.1.h | 20 + .../Windows.ApplicationModel.Background.2.h | 42 +- .../impl/Windows.ApplicationModel.Calls.0.h | 931 +- .../impl/Windows.ApplicationModel.Calls.1.h | 105 + .../impl/Windows.ApplicationModel.Calls.2.h | 120 +- .../Windows.ApplicationModel.Contacts.0.h | 18 +- .../Windows.ApplicationModel.DataTransfer.0.h | 540 + .../Windows.ApplicationModel.DataTransfer.1.h | 69 + .../Windows.ApplicationModel.DataTransfer.2.h | 50 + .../winrt/impl/Windows.Devices.Bluetooth.0.h | 45 +- .../winrt/impl/Windows.Devices.Bluetooth.1.h | 8 + .../winrt/impl/Windows.Devices.Bluetooth.2.h | 23 +- ...indows.Devices.Bluetooth.Advertisement.0.h | 368 +- ...indows.Devices.Bluetooth.Advertisement.1.h | 48 + ...indows.Devices.Bluetooth.Advertisement.2.h | 81 +- .../Windows.Devices.Bluetooth.Background.0.h | 50 +- .../Windows.Devices.Bluetooth.Background.1.h | 9 + .../Windows.Devices.Bluetooth.Background.2.h | 17 +- ...ices.Bluetooth.GenericAttributeProfile.0.h | 112 +- ...ices.Bluetooth.GenericAttributeProfile.1.h | 18 + ...ices.Bluetooth.GenericAttributeProfile.2.h | 38 +- .../winrt/impl/Windows.Devices.Input.0.h | 86 +- .../winrt/impl/Windows.Devices.Printers.0.h | 592 +- .../winrt/impl/Windows.Devices.Printers.1.h | 82 + .../winrt/impl/Windows.Devices.Printers.2.h | 101 +- .../winrt/impl/Windows.Devices.Sensors.0.h | 460 +- .../winrt/impl/Windows.Devices.Sensors.1.h | 57 + .../winrt/impl/Windows.Devices.Sensors.2.h | 152 +- .../impl/Windows.Embedded.DeviceLockdown.0.h | 71 - .../impl/Windows.Embedded.DeviceLockdown.1.h | 24 - .../impl/Windows.Embedded.DeviceLockdown.2.h | 23 - ...Windows.Graphics.Printing.PrintSupport.0.h | 320 +- ...Windows.Graphics.Printing.PrintSupport.1.h | 38 + ...Windows.Graphics.Printing.PrintSupport.2.h | 42 +- .../Windows.Graphics.Printing.PrintTicket.0.h | 51 +- .../Windows.Graphics.Printing.PrintTicket.1.h | 8 + .../Windows.Graphics.Printing.PrintTicket.2.h | 5 + ...ndows.Graphics.Printing.ProtectedPrint.0.h | 62 + ...ndows.Graphics.Printing.ProtectedPrint.1.h | 19 + ...ndows.Graphics.Printing.ProtectedPrint.2.h | 14 + .../Windows.Graphics.Printing.Workflow.0.h | 359 +- .../Windows.Graphics.Printing.Workflow.1.h | 56 + .../Windows.Graphics.Printing.Workflow.2.h | 106 +- .../impl/Windows.Management.Deployment.0.h | 170 +- .../impl/Windows.Management.Deployment.1.h | 16 + .../impl/Windows.Management.Deployment.2.h | 115 +- .../winrt/impl/Windows.Management.Update.0.h | 2326 +- .../winrt/impl/Windows.Management.Update.1.h | 332 + .../winrt/impl/Windows.Management.Update.2.h | 300 +- .../winrt/impl/Windows.Media.Capture.0.h | 82 - .../winrt/impl/Windows.Media.Capture.1.h | 21 - .../winrt/impl/Windows.Media.Capture.2.h | 11 - .../winrt/impl/Windows.Media.Core.0.h | 39 +- .../winrt/impl/Windows.Media.Core.1.h | 8 + .../winrt/impl/Windows.Media.Core.2.h | 1 + .../winrt/impl/Windows.Media.Effects.0.h | 26 - .../winrt/impl/Windows.Media.Effects.1.h | 8 - .../winrt/impl/Windows.Media.Effects.2.h | 6 - .../impl/Windows.Media.SpeechRecognition.0.h | 53 - .../impl/Windows.Media.SpeechRecognition.1.h | 14 - .../impl/Windows.Media.SpeechRecognition.2.h | 11 - .../Windows.Networking.NetworkOperators.0.h | 25 - .../Windows.Networking.NetworkOperators.1.h | 7 - .../Windows.Networking.NetworkOperators.2.h | 5 - .../impl/Windows.Phone.ApplicationModel.0.h | 42 - .../impl/Windows.Phone.ApplicationModel.1.h | 17 - .../impl/Windows.Phone.ApplicationModel.2.h | 15 - .../Windows.Phone.Devices.Notification.0.h | 61 - .../Windows.Phone.Devices.Notification.1.h | 24 - .../Windows.Phone.Devices.Notification.2.h | 16 - .../impl/Windows.Phone.Devices.Power.0.h | 69 - .../impl/Windows.Phone.Devices.Power.1.h | 24 - .../impl/Windows.Phone.Devices.Power.2.h | 16 - .../Windows.Phone.Management.Deployment.0.h | 236 - .../Windows.Phone.Management.Deployment.1.h | 59 - .../Windows.Phone.Management.Deployment.2.h | 50 - .../impl/Windows.Phone.Media.Devices.0.h | 93 - .../impl/Windows.Phone.Media.Devices.1.h | 24 - .../impl/Windows.Phone.Media.Devices.2.h | 16 - .../Windows.Phone.Notification.Management.0.h | 1082 - .../Windows.Phone.Notification.Management.1.h | 216 - .../Windows.Phone.Notification.Management.2.h | 179 - .../Windows.Phone.PersonalInformation.0.h | 521 - .../Windows.Phone.PersonalInformation.1.h | 102 - .../Windows.Phone.PersonalInformation.2.h | 95 - ...Phone.PersonalInformation.Provisioning.0.h | 99 - ...Phone.PersonalInformation.Provisioning.1.h | 31 - ...Phone.PersonalInformation.Provisioning.2.h | 27 - .../impl/Windows.Phone.Speech.Recognition.0.h | 22 - .../impl/Windows.Phone.Speech.Recognition.1.h | 10 - .../impl/Windows.Phone.Speech.Recognition.2.h | 10 - .../winrt/impl/Windows.Phone.StartScreen.0.h | 108 - .../winrt/impl/Windows.Phone.StartScreen.1.h | 31 - .../winrt/impl/Windows.Phone.StartScreen.2.h | 24 - .../winrt/impl/Windows.Phone.System.0.h | 55 - .../winrt/impl/Windows.Phone.System.1.h | 24 - .../winrt/impl/Windows.Phone.System.2.h | 16 - .../winrt/impl/Windows.Phone.System.Power.0.h | 73 - .../winrt/impl/Windows.Phone.System.Power.1.h | 24 - .../winrt/impl/Windows.Phone.System.Power.2.h | 21 - .../impl/Windows.Phone.System.Profile.0.h | 35 - .../impl/Windows.Phone.System.Profile.1.h | 17 - .../impl/Windows.Phone.System.Profile.2.h | 15 - ...e.System.UserProfile.GameServices.Core.0.h | 119 - ...e.System.UserProfile.GameServices.Core.1.h | 31 - ...e.System.UserProfile.GameServices.Core.2.h | 31 - .../winrt/impl/Windows.Phone.UI.Input.0.h | 128 - .../winrt/impl/Windows.Phone.UI.Input.1.h | 38 - .../winrt/impl/Windows.Phone.UI.Input.2.h | 41 - ...ndows.Security.Authentication.Web.Core.0.h | 391 +- ...ndows.Security.Authentication.Web.Core.1.h | 58 + ...ndows.Security.Authentication.Web.Core.2.h | 44 + .../impl/Windows.Security.Credentials.0.h | 404 +- .../impl/Windows.Security.Credentials.1.h | 51 + .../impl/Windows.Security.Credentials.2.h | 71 +- .../winrt/impl/Windows.Storage.Provider.0.h | 820 +- .../winrt/impl/Windows.Storage.Provider.1.h | 101 + .../winrt/impl/Windows.Storage.Provider.2.h | 52 + .../impl/Windows.System.Power.Thermal.0.h | 623 + .../impl/Windows.System.Power.Thermal.1.h | 94 + .../impl/Windows.System.Power.Thermal.2.h | 103 + .../impl/Windows.System.RemoteSystems.0.h | 8 +- .../generated/winrt/impl/Windows.UI.Input.0.h | 561 +- .../generated/winrt/impl/Windows.UI.Input.1.h | 43 + .../generated/winrt/impl/Windows.UI.Input.2.h | 50 +- .../impl/Windows.UI.Input.Preview.Text.0.h | 1474 + .../impl/Windows.UI.Input.Preview.Text.1.h | 134 + .../impl/Windows.UI.Input.Preview.Text.2.h | 164 + .../winrt/impl/Windows.UI.ViewManagement.0.h | 176 +- .../winrt/impl/Windows.UI.ViewManagement.1.h | 31 +- .../winrt/impl/Windows.UI.ViewManagement.2.h | 26 +- .../impl/Windows.UI.ViewManagement.Core.0.h | 104 +- .../winrt/impl/Windows.UI.WebUI.Core.0.h | 412 - .../winrt/impl/Windows.UI.WebUI.Core.1.h | 98 - .../winrt/impl/Windows.UI.WebUI.Core.2.h | 92 - .../windows/generated/winrt/winrt.ixx | 112 +- 554 files changed, 742842 insertions(+), 21534 deletions(-) create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.DirectX.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Display.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Imaging.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Internal.Imaging.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Security.Authentication.OAuth.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Core.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Diagnostics.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Effects.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Interactions.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Scenes.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.SystemBackdrops.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Content.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Dispatching.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.DragDrop.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.Interop.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.System.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Text.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Windowing.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Peers.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Provider.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Text.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.AnimatedVisuals.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.Primitives.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Data.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Documents.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Hosting.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Input.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Interop.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Markup.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Animation.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Imaging.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Media3D.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Navigation.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Printing.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Resources.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Shapes.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.XamlTypeInfo.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.UI.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Web.WebView2.Core.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.ContentModerationInternal.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.ContentSafety.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.Foundation.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.FoundationInternal.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.GenerativeInternal.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.Imaging.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.MachineLearning.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.Text.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AI.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AppLifecycle.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AppNotifications.Builder.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.AppNotifications.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.ApplicationModel.Background.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.ApplicationModel.DynamicDependency.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.ApplicationModel.Resources.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.ApplicationModel.WindowsAppRuntime.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.BadgeNotifications.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Foundation.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Globalization.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Internal.AI.ContentModeration.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Internal.AI.Generative.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Internal.Vision.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Management.Deployment.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Media.Capture.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Private.Workloads.SessionManager.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.PrivateCommon.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.PushNotifications.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Security.AccessControl.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.SemanticSearch.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Storage.Pickers.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Storage.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.System.Power.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.System.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Vision.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.VisionInternal.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Widgets.Feeds.Providers.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Widgets.Notifications.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Widgets.Providers.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Widgets.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Microsoft.Windows.Workloads.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.AI.Actions.Hosting.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.AI.Actions.Provider.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.AI.Actions.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.AI.Agents.Mcp.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Embedded.DeviceLockdown.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Graphics.Printing.ProtectedPrint.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.ApplicationModel.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.Devices.Notification.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.Devices.Power.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.Management.Deployment.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.Media.Devices.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.Notification.Management.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.PersonalInformation.Provisioning.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.PersonalInformation.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.Speech.Recognition.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.StartScreen.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.System.Power.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.System.Profile.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.System.UserProfile.GameServices.Core.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.System.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.Phone.UI.Input.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.System.Power.Thermal.h create mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.UI.Input.Preview.Text.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/Windows.UI.WebUI.Core.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.DirectX.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.DirectX.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.DirectX.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Display.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Display.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Display.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Imaging.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Imaging.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Imaging.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.ImagingInternal.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.ImagingInternal.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.ImagingInternal.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Internal.Imaging.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Internal.Imaging.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Graphics.Internal.Imaging.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Security.Authentication.OAuth.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Security.Authentication.OAuth.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Security.Authentication.OAuth.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Core.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Core.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Core.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Diagnostics.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Diagnostics.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Diagnostics.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Effects.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Effects.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Effects.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Interactions.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Interactions.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Interactions.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Scenes.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Scenes.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.Scenes.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.SystemBackdrops.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.SystemBackdrops.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Composition.SystemBackdrops.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Content.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Content.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Content.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Dispatching.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Dispatching.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Dispatching.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.DragDrop.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.DragDrop.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.DragDrop.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.Interop.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.Interop.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Input.Interop.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.System.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.System.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.System.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Text.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Text.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Text.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Windowing.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Windowing.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Windowing.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Peers.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Peers.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Provider.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Provider.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Provider.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Text.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Text.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Automation.Text.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.AnimatedVisuals.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.AnimatedVisuals.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.AnimatedVisuals.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Data.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Data.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Data.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Documents.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Documents.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Documents.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Hosting.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Hosting.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Hosting.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Input.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Input.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Input.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Interop.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Interop.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Interop.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Markup.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Markup.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Markup.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Animation.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Animation.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Animation.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Imaging.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Imaging.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Imaging.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Media3D.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Media3D.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Media.Media3D.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Navigation.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Navigation.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Navigation.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Printing.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Printing.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Printing.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Resources.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Resources.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Resources.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Shapes.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Shapes.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.Shapes.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.XamlTypeInfo.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.XamlTypeInfo.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.UI.Xaml.XamlTypeInfo.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Web.WebView2.Core.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Web.WebView2.Core.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Web.WebView2.Core.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.ContentModerationInternal.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.ContentModerationInternal.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.ContentModerationInternal.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.ContentSafety.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.ContentSafety.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.ContentSafety.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Foundation.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Foundation.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Foundation.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.FoundationInternal.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.FoundationInternal.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.FoundationInternal.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.GenerativeInternal.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.GenerativeInternal.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.GenerativeInternal.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Imaging.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Imaging.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Imaging.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.MachineLearning.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.MachineLearning.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.MachineLearning.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Text.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Text.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AI.Text.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppLifecycle.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppLifecycle.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppLifecycle.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppNotifications.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppNotifications.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppNotifications.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppNotifications.Builder.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppNotifications.Builder.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppNotifications.Builder.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Background.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Background.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Background.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.DynamicDependency.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.DynamicDependency.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.DynamicDependency.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Resources.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Resources.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.Resources.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.WindowsAppRuntime.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.WindowsAppRuntime.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.ApplicationModel.WindowsAppRuntime.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.BadgeNotifications.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.BadgeNotifications.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.BadgeNotifications.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Foundation.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Foundation.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Foundation.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Globalization.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Globalization.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Globalization.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.AI.ContentModeration.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.AI.ContentModeration.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.AI.ContentModeration.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.AI.Generative.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.AI.Generative.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.AI.Generative.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.Vision.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.Vision.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Internal.Vision.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Management.Deployment.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Management.Deployment.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Management.Deployment.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Media.Capture.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Media.Capture.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Media.Capture.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Private.Workloads.SessionManager.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Private.Workloads.SessionManager.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Private.Workloads.SessionManager.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.PrivateCommon.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.PrivateCommon.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.PrivateCommon.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.PushNotifications.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.PushNotifications.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.PushNotifications.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Security.AccessControl.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Security.AccessControl.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Security.AccessControl.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.SemanticSearch.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.SemanticSearch.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.SemanticSearch.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Storage.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Storage.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Storage.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Storage.Pickers.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Storage.Pickers.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Storage.Pickers.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.System.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.System.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.System.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.System.Power.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.System.Power.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.System.Power.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Vision.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Vision.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Vision.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.VisionInternal.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.VisionInternal.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.VisionInternal.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Feeds.Providers.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Feeds.Providers.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Feeds.Providers.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Notifications.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Notifications.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Notifications.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Providers.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Providers.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Widgets.Providers.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Workloads.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Workloads.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.Workloads.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.Hosting.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.Hosting.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.Hosting.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.Provider.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.Provider.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Actions.Provider.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Agents.Mcp.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Agents.Mcp.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.AI.Agents.Mcp.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Embedded.DeviceLockdown.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Embedded.DeviceLockdown.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Embedded.DeviceLockdown.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Graphics.Printing.ProtectedPrint.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Graphics.Printing.ProtectedPrint.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Graphics.Printing.ProtectedPrint.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.ApplicationModel.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.ApplicationModel.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.ApplicationModel.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Devices.Notification.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Devices.Notification.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Devices.Notification.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Devices.Power.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Devices.Power.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Devices.Power.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Management.Deployment.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Management.Deployment.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Management.Deployment.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Media.Devices.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Media.Devices.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Media.Devices.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Notification.Management.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Notification.Management.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Notification.Management.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.PersonalInformation.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.PersonalInformation.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.PersonalInformation.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.PersonalInformation.Provisioning.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.PersonalInformation.Provisioning.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.PersonalInformation.Provisioning.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Speech.Recognition.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Speech.Recognition.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.Speech.Recognition.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.StartScreen.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.StartScreen.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.StartScreen.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.Power.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.Power.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.Power.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.Profile.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.Profile.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.Profile.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.UserProfile.GameServices.Core.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.UserProfile.GameServices.Core.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.System.UserProfile.GameServices.Core.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.UI.Input.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.UI.Input.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.Phone.UI.Input.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.System.Power.Thermal.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.System.Power.Thermal.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.System.Power.Thermal.2.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.UI.Input.Preview.Text.0.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.UI.Input.Preview.Text.1.h create mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.UI.Input.Preview.Text.2.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.UI.WebUI.Core.0.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.UI.WebUI.Core.1.h delete mode 100644 internal/platform/implementation/windows/generated/winrt/impl/Windows.UI.WebUI.Core.2.h diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.DirectX.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.DirectX.h new file mode 100644 index 00000000..f6c3056c --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.DirectX.h @@ -0,0 +1,20 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Graphics_DirectX_H +#define WINRT_Microsoft_Graphics_DirectX_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/impl/Microsoft.Graphics.DirectX.2.h" +namespace winrt::impl {} +WINRT_EXPORT namespace winrt::Microsoft::Graphics::DirectX {} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Display.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Display.h new file mode 100644 index 00000000..a408bd05 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Display.h @@ -0,0 +1,990 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Graphics_Display_H +#define WINRT_Microsoft_Graphics_Display_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/impl/Microsoft.Graphics.Display.2.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Storage.Streams.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::CurrentAdvancedColorKind() const { + winrt::Microsoft::Graphics::Display::DisplayAdvancedColorKind value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentAdvancedColorKind( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentAdvancedColorKind( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::RedPrimary() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RedPrimary(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RedPrimary(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::GreenPrimary() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GreenPrimary(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GreenPrimary(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::BluePrimary() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BluePrimary(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BluePrimary(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::WhitePoint() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WhitePoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WhitePoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::MaxLuminanceInNits() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLuminanceInNits(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLuminanceInNits(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::MinLuminanceInNits() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinLuminanceInNits(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinLuminanceInNits(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::MaxAverageFullFrameLuminanceInNits() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_MaxAverageFullFrameLuminanceInNits(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_MaxAverageFullFrameLuminanceInNits(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo< + D>::SdrWhiteLevelInNits() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SdrWhiteLevelInNits(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SdrWhiteLevelInNits(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo:: + IsHdrMetadataFormatCurrentlySupported( + winrt::Microsoft::Graphics::Display::DisplayHdrMetadataFormat const& + format) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsHdrMetadataFormatCurrentlySupported( + static_cast(format), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IsHdrMetadataFormatCurrentlySupported( + static_cast(format), &result)); + } + return result; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayAdvancedColorInfo:: + IsAdvancedColorKindAvailable( + winrt::Microsoft::Graphics::Display::DisplayAdvancedColorKind const& + kind) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsAdvancedColorKindAvailable( + static_cast(kind), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IsAdvancedColorKindAvailable( + static_cast(kind), &result)); + } + return result; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::IsStereoEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStereoEnabled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStereoEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + IsStereoEnabledChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsStereoEnabledChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_IsStereoEnabledChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + IsStereoEnabledChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, IsStereoEnabledChanged(handler)); +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::IsStereoEnabledChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsStereoEnabledChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_IsStereoEnabledChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::GetColorProfileAsync() const { + void* operation{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetColorProfileAsync(&operation)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetColorProfileAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::Storage::Streams::IRandomAccessStream>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::GetColorProfile() const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetColorProfile(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetColorProfile(&result)); + } + return winrt::Windows::Storage::Streams::IRandomAccessStream{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + ColorProfileChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ColorProfileChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_ColorProfileChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + ColorProfileChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, ColorProfileChanged(handler)); +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::ColorProfileChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ColorProfileChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_ColorProfileChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation< + D>::GetAdvancedColorInfo() const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAdvancedColorInfo(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetAdvancedColorInfo(&result)); + } + return winrt::Microsoft::Graphics::Display::DisplayAdvancedColorInfo{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + AdvancedColorInfoChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AdvancedColorInfoChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_AdvancedColorInfoChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + AdvancedColorInfoChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, AdvancedColorInfoChanged(handler)); +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation:: + AdvancedColorInfoChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AdvancedColorInfoChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_AdvancedColorInfoChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation::Destroyed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Destroyed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_Destroyed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation::Destroyed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::Graphics::Display::DisplayInformation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, + Destroyed(handler)); +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformation::Destroyed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Display::IDisplayInformation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Destroyed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_Destroyed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformationStatics:: + CreateForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateForWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateForWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::Graphics::Display::DisplayInformation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Display_IDisplayInformationStatics:: + CreateForDisplayId(winrt::Microsoft::UI::DisplayId const& displayId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Display::IDisplayInformationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateForDisplayId(impl::bind_in(displayId), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateForDisplayId(impl::bind_in(displayId), &result)); + } + return winrt::Microsoft::Graphics::Display::DisplayInformation{ + result, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::Graphics::Display::IDisplayAdvancedColorInfo> { + int32_t __stdcall get_CurrentAdvancedColorKind(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Graphics::Display::DisplayAdvancedColorKind>( + this->shim().CurrentAdvancedColorKind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RedPrimary( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RedPrimary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GreenPrimary( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GreenPrimary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BluePrimary( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BluePrimary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WhitePoint( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WhitePoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxLuminanceInNits(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLuminanceInNits()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinLuminanceInNits(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinLuminanceInNits()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxAverageFullFrameLuminanceInNits( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().MaxAverageFullFrameLuminanceInNits()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SdrWhiteLevelInNits(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SdrWhiteLevelInNits()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsHdrMetadataFormatCurrentlySupported( + int32_t format, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().IsHdrMetadataFormatCurrentlySupported( + *reinterpret_cast(&format))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsAdvancedColorKindAvailable(int32_t kind, + bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsAdvancedColorKindAvailable( + *reinterpret_cast(&kind))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsStereoEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStereoEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_IsStereoEnabledChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().IsStereoEnabledChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_IsStereoEnabledChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().IsStereoEnabledChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetColorProfileAsync(void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().GetColorProfileAsync()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetColorProfile(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetColorProfile()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ColorProfileChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ColorProfileChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ColorProfileChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ColorProfileChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetAdvancedColorInfo(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Graphics::Display::DisplayAdvancedColorInfo>( + this->shim().GetAdvancedColorInfo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_AdvancedColorInfoChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().AdvancedColorInfoChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AdvancedColorInfoChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AdvancedColorInfoChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Destroyed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Destroyed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Destroyed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Destroyed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::Graphics::Display::IDisplayInformationStatics> { + int32_t __stdcall CreateForWindowId( + struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateForWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForDisplayId( + struct struct_Microsoft_UI_DisplayId displayId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateForDisplayId( + *reinterpret_cast( + &displayId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::Graphics::Display { + inline auto DisplayInformation::CreateForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IDisplayInformationStatics const& f) { + return f.CreateForWindowId(windowId); + }); + } + inline auto DisplayInformation::CreateForDisplayId( + winrt::Microsoft::UI::DisplayId const& displayId) { + return impl::call_factory( + [&](IDisplayInformationStatics const& f) { + return f.CreateForDisplayId(displayId); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Imaging.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Imaging.h new file mode 100644 index 00000000..c1bcd926 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Imaging.h @@ -0,0 +1,365 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Graphics_Imaging_H +#define WINRT_Microsoft_Graphics_Imaging_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/impl/Microsoft.Graphics.Imaging.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Graphics.Imaging.2.h" +#include "winrt/impl/Windows.Storage.Streams.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::Buffer() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Buffer(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Buffer(&value)); + } + return winrt::Windows::Storage::Streams::IBuffer{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::PixelFormat() const { + winrt::Microsoft::Graphics::Imaging::ImageBufferPixelFormat value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PixelFormat(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PixelFormat(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::PixelHeight() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::PixelWidth() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::RowStride() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowStride(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowStride(&value)); + } + return value; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::CopyToByteArray( + array_view values) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CopyToByteArray(values.size(), put_abi(values))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CopyToByteArray(values.size(), put_abi(values))); + } +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBuffer::CopyToSoftwareBitmap() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::Imaging::IImageBuffer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBuffer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CopyToSoftwareBitmap(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CopyToSoftwareBitmap(&result)); + } + return winrt::Windows::Graphics::Imaging::SoftwareBitmap{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBufferStatics::CreateForBuffer( + winrt::Windows::Storage::Streams::IBuffer const& buffer, + winrt::Microsoft::Graphics::Imaging::ImageBufferPixelFormat const& + pixelFormat, + int32_t width, int32_t height, int32_t rowStride) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Imaging::IImageBufferStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBufferStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForBuffer( + *(void**)(&buffer), static_cast(pixelFormat), width, height, + rowStride, &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateForBuffer( + *(void**)(&buffer), static_cast(pixelFormat), width, height, + rowStride, &result)); + } + return winrt::Microsoft::Graphics::Imaging::ImageBuffer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_Imaging_IImageBufferStatics:: + CreateForSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::Graphics::Imaging::IImageBufferStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::Imaging::IImageBufferStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForSoftwareBitmap( + *(void**)(&softwareBitmap), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateForSoftwareBitmap( + *(void**)(&softwareBitmap), &result)); + } + return winrt::Microsoft::Graphics::Imaging::ImageBuffer{ + result, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Buffer(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Buffer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelFormat(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Graphics::Imaging::ImageBufferPixelFormat>( + this->shim().PixelFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelHeight(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PixelHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelWidth(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PixelWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowStride(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowStride()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CopyToByteArray(uint32_t __valuesSize, + uint8_t* values) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CopyToByteArray( + array_view(reinterpret_cast(values), + reinterpret_cast(values) + __valuesSize)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CopyToSoftwareBitmap(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CopyToSoftwareBitmap()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForBuffer(void* buffer, int32_t pixelFormat, + int32_t width, int32_t height, + int32_t rowStride, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForBuffer( + *reinterpret_cast( + &buffer), + *reinterpret_cast(&pixelFormat), + width, height, rowStride)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForSoftwareBitmap(void* softwareBitmap, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>( + &softwareBitmap))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::Graphics::Imaging { + inline auto ImageBuffer::CreateForBuffer( + winrt::Windows::Storage::Streams::IBuffer const& buffer, + winrt::Microsoft::Graphics::Imaging::ImageBufferPixelFormat const& + pixelFormat, + int32_t width, int32_t height, int32_t rowStride) { + return impl::call_factory( + [&](IImageBufferStatics const& f) { + return f.CreateForBuffer(buffer, pixelFormat, width, height, + rowStride); + }); + } + inline auto ImageBuffer::CreateForSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) { + return impl::call_factory( + [&](IImageBufferStatics const& f) { + return f.CreateForSoftwareBitmap(softwareBitmap); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.h new file mode 100644 index 00000000..9c66b660 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.h @@ -0,0 +1,89 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Graphics_ImagingInternal_ImageObjectRemover_H +#define WINRT_Microsoft_Graphics_ImagingInternal_ImageObjectRemover_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.Graphics.ImagingInternal.h" +#include "winrt/impl/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.2.h" +#include "winrt/impl/Microsoft.Windows.PrivateCommon.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_Graphics_ImagingInternal_ImageObjectRemover_IImageObjectRemoverSession< + D>:: + Process(winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferMaskResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + outputImageBufferResource, + uint32_t priority, uint32_t frequency) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::Graphics::ImagingInternal:: + ImageObjectRemover::IImageObjectRemoverSession>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::ImageObjectRemover:: + IImageObjectRemoverSession, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Process( + *(void**)(&inputImageBufferResource), + *(void**)(&inputImageBufferMaskResource), + *(void**)(&outputImageBufferResource), priority, frequency)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Process( + *(void**)(&inputImageBufferResource), + *(void**)(&inputImageBufferMaskResource), + *(void**)(&outputImageBufferResource), priority, frequency)); + } +} +template +struct produce + : produce_base { + int32_t __stdcall Process(void* inputImageBufferResource, + void* inputImageBufferMaskResource, + void* outputImageBufferResource, uint32_t priority, + uint32_t frequency) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Process( + *reinterpret_cast( + &inputImageBufferResource), + *reinterpret_cast( + &inputImageBufferMaskResource), + *reinterpret_cast( + &outputImageBufferResource), + priority, frequency); + return 0; + } catch (...) { + return to_hresult(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::Graphics::ImagingInternal:: + ImageObjectRemover {} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.h new file mode 100644 index 00000000..a41125d9 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.ImagingInternal.h @@ -0,0 +1,1034 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Graphics_ImagingInternal_H +#define WINRT_Microsoft_Graphics_ImagingInternal_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/impl/Microsoft.Graphics.ImagingInternal.2.h" +#include "winrt/impl/Microsoft.Windows.PrivateCommon.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Graphics.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_Graphics_ImagingInternal_IDepthMapCreatorSession:: + CreateAsync( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + inputBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + inputBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + outputBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + outputBufferViewData) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IDepthMapCreatorSession, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateAsync( + impl::bind_in(inputBufferView), impl::bind_in(inputBufferViewData), + impl::bind_in(outputBufferView), impl::bind_in(outputBufferViewData), + &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateAsync( + impl::bind_in(inputBufferView), impl::bind_in(inputBufferViewData), + impl::bind_in(outputBufferView), impl::bind_in(outputBufferViewData), + &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IDepthMapCreatorSession2:: + Create(winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + outputImageBufferResource, + uint32_t priority, uint32_t frequency) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IDepthMapCreatorSession2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource), + priority, frequency)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource), + priority, frequency)); + } +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IImageObjectExtractorSession< + D>::InitializeWithImageBuffer(winrt::Microsoft::Windows::PrivateCommon:: + ImageBufferResource const& + inputImageBufferResource, + uint32_t priority, uint32_t frequency, + array_view encoding) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InitializeWithImageBuffer( + *(void**)(&inputImageBufferResource), priority, frequency, + encoding.size(), put_abi(encoding))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InitializeWithImageBuffer( + *(void**)(&inputImageBufferResource), priority, frequency, + encoding.size(), put_abi(encoding))); + } +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IImageObjectExtractorSession< + D>:: + GetBackground( + array_view encoding, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + outputImageBufferResource, + array_view rects, + array_view inclusionPoints, + array_view exclusionPoints, + uint32_t priority, uint32_t frequency) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBackground( + encoding.size(), get_abi(encoding), + *(void**)(&outputImageBufferResource), rects.size(), get_abi(rects), + inclusionPoints.size(), get_abi(inclusionPoints), + exclusionPoints.size(), get_abi(exclusionPoints), priority, frequency)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBackground( + encoding.size(), get_abi(encoding), + *(void**)(&outputImageBufferResource), rects.size(), get_abi(rects), + inclusionPoints.size(), get_abi(inclusionPoints), + exclusionPoints.size(), get_abi(exclusionPoints), priority, frequency)); + } +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IImageObjectExtractorSession< + D>::GetModelProperties() const { + winrt::Microsoft::Graphics::ImagingInternal::ModelProperties result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetModelProperties(put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetModelProperties(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IImageScalerSession:: + ScaleImage( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + outputImageBufferResource, + int32_t width, int32_t height, uint32_t priority, + uint32_t frequency) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IImageScalerSession, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ScaleImage(*(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource), + width, height, priority, frequency)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ScaleImage(*(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource), + width, height, priority, frequency)); + } +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IImageScalerSession< + D>::MaxSupportedScaleFactor() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IImageScalerSession, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MaxSupportedScaleFactor(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MaxSupportedScaleFactor(&result)); + } + return result; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IImageSegmenterSession:: + RemoveBackground( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + outputImageBufferResource) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IImageSegmenterSession, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveBackground( + *(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveBackground( + *(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource))); + } +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IParallaxCreatorSession:: + CreateParallaxImagesAsync( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + inputView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + inputViewData, + param::async_vector_view< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView> const& + outputViews, + param::async_vector_view const& outputViewData, + winrt::Microsoft::Graphics::ImagingInternal::ParallaxImageOptions const& + options) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateParallaxImagesAsync( + impl::bind_in(inputView), impl::bind_in(inputViewData), + *(void**)(&outputViews), *(void**)(&outputViewData), + impl::bind_in(options), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateParallaxImagesAsync( + impl::bind_in(inputView), impl::bind_in(inputViewData), + *(void**)(&outputViews), *(void**)(&outputViewData), + impl::bind_in(options), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IParallaxCreatorSession2:: + CreateParallaxImagesAsync( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + inputView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + inputViewData, + param::async_vector_view< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView> const& + outputViews, + param::async_vector_view const& outputViewData, + winrt::Microsoft::Graphics::ImagingInternal::ParallaxImageOptions const& + options, + uint32_t priority, uint32_t frequency) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateParallaxImagesAsync( + impl::bind_in(inputView), impl::bind_in(inputViewData), + *(void**)(&outputViews), *(void**)(&outputViewData), + impl::bind_in(options), priority, frequency, &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateParallaxImagesAsync( + impl::bind_in(inputView), impl::bind_in(inputViewData), + *(void**)(&outputViews), *(void**)(&outputViewData), + impl::bind_in(options), priority, frequency, &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_IParallaxCreatorSession3:: + CreateParallaxImages( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferResource, + array_view< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const> + outputImageBufferResources, + winrt::Microsoft::Graphics::ImagingInternal::ParallaxImageOptions const& + options, + uint32_t priority, uint32_t frequency) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateParallaxImages( + *(void**)(&inputImageBufferResource), outputImageBufferResources.size(), + get_abi(outputImageBufferResources), impl::bind_in(options), priority, + frequency)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateParallaxImages( + *(void**)(&inputImageBufferResource), outputImageBufferResources.size(), + get_abi(outputImageBufferResources), impl::bind_in(options), priority, + frequency)); + } +} +template +auto consume_Microsoft_Graphics_ImagingInternal_ITrimapImageSegmenterSession< + D>:: + RemoveBackgroundAsync( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + inputImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + inputImageBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + outputImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + outputImageBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + fgMaskImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + fgMaskImageBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + bgMaskImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + bgMaskImageBufferViewData) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveBackgroundAsync( + impl::bind_in(inputImageBufferView), + impl::bind_in(inputImageBufferViewData), + impl::bind_in(outputImageBufferView), + impl::bind_in(outputImageBufferViewData), + impl::bind_in(fgMaskImageBufferView), + impl::bind_in(fgMaskImageBufferViewData), + impl::bind_in(bgMaskImageBufferView), + impl::bind_in(bgMaskImageBufferViewData), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveBackgroundAsync( + impl::bind_in(inputImageBufferView), + impl::bind_in(inputImageBufferViewData), + impl::bind_in(outputImageBufferView), + impl::bind_in(outputImageBufferViewData), + impl::bind_in(fgMaskImageBufferView), + impl::bind_in(fgMaskImageBufferViewData), + impl::bind_in(bgMaskImageBufferView), + impl::bind_in(bgMaskImageBufferViewData), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_ITrimapImageSegmenterSession2< + D>:: + RemoveBackgroundAsync( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + inputImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + inputImageBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + outputImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + outputImageBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + fgMaskImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + fgMaskImageBufferViewData, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const& + bgMaskImageBufferView, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferViewData const& + bgMaskImageBufferViewData, + uint32_t priority, uint32_t frequency) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveBackgroundAsync( + impl::bind_in(inputImageBufferView), + impl::bind_in(inputImageBufferViewData), + impl::bind_in(outputImageBufferView), + impl::bind_in(outputImageBufferViewData), + impl::bind_in(fgMaskImageBufferView), + impl::bind_in(fgMaskImageBufferViewData), + impl::bind_in(bgMaskImageBufferView), + impl::bind_in(bgMaskImageBufferViewData), priority, frequency, + &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveBackgroundAsync( + impl::bind_in(inputImageBufferView), + impl::bind_in(inputImageBufferViewData), + impl::bind_in(outputImageBufferView), + impl::bind_in(outputImageBufferViewData), + impl::bind_in(fgMaskImageBufferView), + impl::bind_in(fgMaskImageBufferViewData), + impl::bind_in(bgMaskImageBufferView), + impl::bind_in(bgMaskImageBufferViewData), priority, frequency, + &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Graphics_ImagingInternal_ITrimapImageSegmenterSession3< + D>:: + RemoveBackground( + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + inputImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + outputImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + fgMaskImageBufferResource, + winrt::Microsoft::Windows::PrivateCommon::ImageBufferResource const& + bgMaskImageBufferResource, + uint32_t priority, uint32_t frequency) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveBackground( + *(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource), + *(void**)(&fgMaskImageBufferResource), + *(void**)(&bgMaskImageBufferResource), priority, frequency)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveBackground( + *(void**)(&inputImageBufferResource), + *(void**)(&outputImageBufferResource), + *(void**)(&fgMaskImageBufferResource), + *(void**)(&bgMaskImageBufferResource), priority, frequency)); + } +} +template +struct produce< + D, winrt::Microsoft::Graphics::ImagingInternal::IDepthMapCreatorSession> + : produce_base { + int32_t __stdcall CreateAsync( + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + inputBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + inputBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + outputBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + outputBufferViewData, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from< + winrt::Windows::Foundation::IAsyncAction>(this->shim().CreateAsync( + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &inputBufferView), + *reinterpret_cast(&inputBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &outputBufferView), + *reinterpret_cast( + &outputBufferViewData))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::Graphics::ImagingInternal::IDepthMapCreatorSession2> + : produce_base { + int32_t __stdcall Create(void* inputImageBufferResource, + void* outputImageBufferResource, uint32_t priority, + uint32_t frequency) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Create( + *reinterpret_cast( + &inputImageBufferResource), + *reinterpret_cast( + &outputImageBufferResource), + priority, frequency); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::Graphics::ImagingInternal::IImageObjectExtractorSession> + : produce_base { + int32_t __stdcall InitializeWithImageBuffer( + void* inputImageBufferResource, uint32_t priority, uint32_t frequency, + uint32_t __encodingSize, float* encoding) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitializeWithImageBuffer( + *reinterpret_cast( + &inputImageBufferResource), + priority, frequency, + array_view(reinterpret_cast(encoding), + reinterpret_cast(encoding) + __encodingSize)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBackground( + uint32_t __encodingSize, float* encoding, void* outputImageBufferResource, + uint32_t __rectsSize, struct struct_Windows_Graphics_RectInt32* rects, + uint32_t __inclusionPointsSize, + struct struct_Windows_Graphics_PointInt32* inclusionPoints, + uint32_t __exclusionPointsSize, + struct struct_Windows_Graphics_PointInt32* exclusionPoints, + uint32_t priority, uint32_t frequency) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GetBackground( + array_view( + reinterpret_cast(encoding), + reinterpret_cast(encoding) + __encodingSize), + *reinterpret_cast( + &outputImageBufferResource), + array_view( + reinterpret_cast(rects), + reinterpret_cast( + rects) + + __rectsSize), + array_view( + reinterpret_cast( + inclusionPoints), + reinterpret_cast( + inclusionPoints) + + __inclusionPointsSize), + array_view( + reinterpret_cast( + exclusionPoints), + reinterpret_cast( + exclusionPoints) + + __exclusionPointsSize), + priority, frequency); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetModelProperties( + struct struct_Microsoft_Graphics_ImagingInternal_ModelProperties* + result) noexcept final try { + zero_abi( + result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Graphics::ImagingInternal::ModelProperties>( + this->shim().GetModelProperties()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::Graphics::ImagingInternal::IImageScalerSession> { + int32_t __stdcall ScaleImage(void* inputImageBufferResource, + void* outputImageBufferResource, int32_t width, + int32_t height, uint32_t priority, + uint32_t frequency) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleImage( + *reinterpret_cast( + &inputImageBufferResource), + *reinterpret_cast( + &outputImageBufferResource), + width, height, priority, frequency); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MaxSupportedScaleFactor(int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MaxSupportedScaleFactor()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::Graphics::ImagingInternal::IImageSegmenterSession> + : produce_base< + D, + winrt::Microsoft::Graphics::ImagingInternal::IImageSegmenterSession> { + int32_t __stdcall RemoveBackground( + void* inputImageBufferResource, + void* outputImageBufferResource) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveBackground( + *reinterpret_cast( + &inputImageBufferResource), + *reinterpret_cast( + &outputImageBufferResource)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession> + : produce_base { + int32_t __stdcall CreateParallaxImagesAsync( + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView inputView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + inputViewData, + void* outputViews, void* outputViewData, + struct struct_Microsoft_Graphics_ImagingInternal_ParallaxImageOptions + options, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from< + winrt::Windows::Foundation:: + IAsyncAction>(this->shim().CreateParallaxImagesAsync( + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &inputView), + *reinterpret_cast(&inputViewData), + *reinterpret_cast const*>( + &outputViews), + *reinterpret_cast const*>(&outputViewData), + *reinterpret_cast(&options))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession2> + : produce_base { + int32_t __stdcall CreateParallaxImagesAsync( + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView inputView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + inputViewData, + void* outputViews, void* outputViewData, + struct struct_Microsoft_Graphics_ImagingInternal_ParallaxImageOptions + options, + uint32_t priority, uint32_t frequency, void** operation) noexcept final + try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from< + winrt::Windows::Foundation:: + IAsyncAction>(this->shim().CreateParallaxImagesAsync( + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &inputView), + *reinterpret_cast(&inputViewData), + *reinterpret_cast const*>( + &outputViews), + *reinterpret_cast const*>(&outputViewData), + *reinterpret_cast(&options), + priority, frequency)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession3> + : produce_base { + int32_t __stdcall CreateParallaxImages( + void* inputImageBufferResource, uint32_t __outputImageBufferResourcesSize, + void** outputImageBufferResources, + struct struct_Microsoft_Graphics_ImagingInternal_ParallaxImageOptions + options, + uint32_t priority, uint32_t frequency) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CreateParallaxImages( + *reinterpret_cast( + &inputImageBufferResource), + array_view( + reinterpret_cast( + outputImageBufferResources), + reinterpret_cast( + outputImageBufferResources) + + __outputImageBufferResourcesSize), + *reinterpret_cast(&options), + priority, frequency); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::Graphics::ImagingInternal::ITrimapImageSegmenterSession> + : produce_base { + int32_t __stdcall RemoveBackgroundAsync( + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + inputImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + inputImageBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + outputImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + outputImageBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + fgMaskImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + fgMaskImageBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + bgMaskImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + bgMaskImageBufferViewData, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from< + winrt::Windows::Foundation:: + IAsyncAction>(this->shim().RemoveBackgroundAsync( + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &inputImageBufferView), + *reinterpret_cast( + &inputImageBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &outputImageBufferView), + *reinterpret_cast( + &outputImageBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &fgMaskImageBufferView), + *reinterpret_cast( + &fgMaskImageBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &bgMaskImageBufferView), + *reinterpret_cast( + &bgMaskImageBufferViewData))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::Graphics::ImagingInternal::ITrimapImageSegmenterSession2> + : produce_base { + int32_t __stdcall RemoveBackgroundAsync( + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + inputImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + inputImageBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + outputImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + outputImageBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + fgMaskImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + fgMaskImageBufferViewData, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferView + bgMaskImageBufferView, + struct struct_Microsoft_Windows_PrivateCommon_ImageBufferViewData + bgMaskImageBufferViewData, + uint32_t priority, uint32_t frequency, void** operation) noexcept final + try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from< + winrt::Windows::Foundation:: + IAsyncAction>(this->shim().RemoveBackgroundAsync( + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &inputImageBufferView), + *reinterpret_cast( + &inputImageBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &outputImageBufferView), + *reinterpret_cast( + &outputImageBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &fgMaskImageBufferView), + *reinterpret_cast( + &fgMaskImageBufferViewData), + *reinterpret_cast< + winrt::Microsoft::Windows::PrivateCommon::ImageBufferView const*>( + &bgMaskImageBufferView), + *reinterpret_cast( + &bgMaskImageBufferViewData), + priority, frequency)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::Graphics::ImagingInternal::ITrimapImageSegmenterSession3> + : produce_base { + int32_t __stdcall RemoveBackground(void* inputImageBufferResource, + void* outputImageBufferResource, + void* fgMaskImageBufferResource, + void* bgMaskImageBufferResource, + uint32_t priority, + uint32_t frequency) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveBackground( + *reinterpret_cast( + &inputImageBufferResource), + *reinterpret_cast( + &outputImageBufferResource), + *reinterpret_cast( + &fgMaskImageBufferResource), + *reinterpret_cast( + &bgMaskImageBufferResource), + priority, frequency); + return 0; + } catch (...) { + return to_hresult(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::Graphics::ImagingInternal {} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::IDepthMapCreatorSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::IDepthMapCreatorSession2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::IImageObjectExtractorSession> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::IParallaxCreatorSession3> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::ITrimapImageSegmenterSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::ITrimapImageSegmenterSession2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::ImagingInternal::ITrimapImageSegmenterSession3> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Internal.Imaging.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Internal.Imaging.h new file mode 100644 index 00000000..c5451cbb --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Graphics.Internal.Imaging.h @@ -0,0 +1,118 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Graphics_Internal_Imaging_H +#define WINRT_Microsoft_Graphics_Internal_Imaging_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/impl/Microsoft.Graphics.ImagingInternal.2.h" +#include "winrt/impl/Microsoft.Graphics.ImagingInternal.ImageObjectRemover.2.h" +#include "winrt/impl/Microsoft.Graphics.Internal.Imaging.2.h" +#include "winrt/impl/Microsoft.Windows.PrivateCommon.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +namespace winrt::impl {} +WINRT_EXPORT namespace winrt::Microsoft::Graphics::Internal::Imaging { + inline DepthMapCreatorSession::DepthMapCreatorSession() + : DepthMapCreatorSession( + impl::call_factory_cast< + DepthMapCreatorSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DepthMapCreatorSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ImageObjectExtractorSession::ImageObjectExtractorSession() + : ImageObjectExtractorSession( + impl::call_factory_cast< + ImageObjectExtractorSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ImageObjectExtractorSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline ImageObjectRemoverSession::ImageObjectRemoverSession() + : ImageObjectRemoverSession( + impl::call_factory_cast< + ImageObjectRemoverSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ImageObjectRemoverSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline ImageScalerSession::ImageScalerSession() + : ImageScalerSession( + impl::call_factory_cast< + ImageScalerSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ImageScalerSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ImageSegmenterSession::ImageSegmenterSession() + : ImageSegmenterSession( + impl::call_factory_cast< + ImageSegmenterSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ImageSegmenterSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ParallaxCreatorSession::ParallaxCreatorSession() + : ParallaxCreatorSession( + impl::call_factory_cast< + ParallaxCreatorSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ParallaxCreatorSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline TrimapImageSegmenterSession::TrimapImageSegmenterSession() + : TrimapImageSegmenterSession( + impl::call_factory_cast< + TrimapImageSegmenterSession (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TrimapImageSegmenterSession>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::Graphics::Internal::Imaging::DepthMapCreatorSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::Internal::Imaging::ImageObjectExtractorSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::Internal::Imaging::ImageObjectRemoverSession> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::Internal::Imaging::ImageSegmenterSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::Internal::Imaging::ParallaxCreatorSession> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Graphics::Internal::Imaging::TrimapImageSegmenterSession> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.Security.Authentication.OAuth.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.Security.Authentication.OAuth.h new file mode 100644 index 00000000..cd944598 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.Security.Authentication.OAuth.h @@ -0,0 +1,3197 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_Security_Authentication_OAuth_H +#define WINRT_Microsoft_Security_Authentication_OAuth_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/impl/Microsoft.Security.Authentication.OAuth.2.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Windows.Data.Json.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Web.Http.2.h" +#include "winrt/impl/Windows.Web.Http.Headers.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthFailure::Error() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Error(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Error(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthFailure< + D>::ErrorDescription() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorDescription(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorDescription(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthFailure::ErrorUri() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthFailure::State() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_State(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_State(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthFailure< + D>::AdditionalParams() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } + return winrt::Windows::Foundation::Collections::IMapView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::ResponseType() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ResponseType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ResponseType(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::ResponseType(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ResponseType(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ResponseType(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::ClientId() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClientId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClientId(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::ClientId(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClientId(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClientId(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::RedirectUri() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RedirectUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RedirectUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::RedirectUri(winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RedirectUri(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RedirectUri(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::State() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_State(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_State(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::State(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_State(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_State(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::Scope() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::Scope(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scope(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scope(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::CodeChallenge() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CodeChallenge(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CodeChallenge(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::CodeChallenge(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CodeChallenge(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CodeChallenge(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::CodeChallengeMethod() const { + winrt::Microsoft::Security::Authentication::OAuth::CodeChallengeMethodKind + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CodeChallengeMethod( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CodeChallengeMethod( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::CodeChallengeMethod(winrt::Microsoft::Security::Authentication::OAuth:: + CodeChallengeMethodKind const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CodeChallengeMethod(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CodeChallengeMethod(static_cast(value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParams< + D>::AdditionalParams() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } + return winrt::Windows::Foundation::Collections::IMap{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParamsFactory< + D>::CreateInstance(param::hstring const& responseType, + param::hstring const& clientId) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&responseType), *(void**)(&clientId), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&responseType), *(void**)(&clientId), &value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParamsFactory< + D>::CreateInstance2(param::hstring const& responseType, + param::hstring const& clientId, + winrt::Windows::Foundation::Uri const& redirectUri) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance2( + *(void**)(&responseType), *(void**)(&clientId), *(void**)(&redirectUri), + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance2( + *(void**)(&responseType), *(void**)(&clientId), *(void**)(&redirectUri), + &value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParamsStatics< + D>::CreateForAuthorizationCodeRequest(param::hstring const& clientId) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForAuthorizationCodeRequest( + *(void**)(&clientId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForAuthorizationCodeRequest( + *(void**)(&clientId), &result)); + } + return winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestParamsStatics< + D>::CreateForAuthorizationCodeRequest(param::hstring const& clientId, + winrt::Windows::Foundation::Uri const& + redirectUri) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForAuthorizationCodeRequest2( + *(void**)(&clientId), *(void**)(&redirectUri), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForAuthorizationCodeRequest2( + *(void**)(&clientId), *(void**)(&redirectUri), &result)); + } + return winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestResult< + D>::ResponseUri() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ResponseUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ResponseUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestResult< + D>::Response() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Response(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Response(&value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::AuthResponse{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthRequestResult< + D>::Failure() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Failure(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Failure(&value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::AuthFailure{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse::State() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_State(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_State(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse::Code() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Code(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Code(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse< + D>::AccessToken() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessToken(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessToken(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse< + D>::TokenType() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TokenType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TokenType(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse< + D>::ExpiresIn() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpiresIn(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpiresIn(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse::Scope() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IAuthResponse< + D>::AdditionalParams() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } + return winrt::Windows::Foundation::Collections::IMapView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthentication< + D>::Authorization() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Authorization(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Authorization(&value)); + } + return winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthentication:: + Authorization( + winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Authorization(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Authorization(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthentication< + D>::ProxyAuthorization() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProxyAuthorization(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProxyAuthorization(&value)); + } + return winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthentication:: + ProxyAuthorization( + winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProxyAuthorization(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProxyAuthorization(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthentication< + D>::AdditionalHeaders() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalHeaders(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalHeaders(&value)); + } + return winrt::Windows::Foundation::Collections::IMap{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthenticationFactory< + D>::CreateInstance(winrt::Windows::Web::Http::Headers:: + HttpCredentialsHeaderValue const& authorization) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&authorization), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&authorization), &value)); + } + return winrt::Microsoft::Security::Authentication::OAuth:: + ClientAuthentication{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IClientAuthenticationStatics< + D>::CreateForBasicAuthorization(param::hstring const& clientId, + param::hstring const& clientSecret) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForBasicAuthorization( + *(void**)(&clientId), *(void**)(&clientSecret), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForBasicAuthorization( + *(void**)(&clientId), *(void**)(&clientSecret), &result)); + } + return winrt::Microsoft::Security::Authentication::OAuth:: + ClientAuthentication{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IOAuth2ManagerStatics:: + RequestAuthWithParamsAsync( + winrt::Microsoft::UI::WindowId const& parentWindowId, + winrt::Windows::Foundation::Uri const& authEndpoint, + winrt::Microsoft::Security::Authentication::OAuth:: + AuthRequestParams const& params) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestAuthWithParamsAsync( + impl::bind_in(parentWindowId), *(void**)(&authEndpoint), + *(void**)(¶ms), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestAuthWithParamsAsync( + impl::bind_in(parentWindowId), *(void**)(&authEndpoint), + *(void**)(¶ms), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IOAuth2ManagerStatics< + D>::CompleteAuthRequest(winrt::Windows::Foundation::Uri const& responseUri) + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CompleteAuthRequest(*(void**)(&responseUri), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CompleteAuthRequest(*(void**)(&responseUri), &result)); + } + return result; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IOAuth2ManagerStatics< + D>::RequestTokenAsync(winrt::Windows::Foundation::Uri const& tokenEndpoint, + winrt::Microsoft::Security::Authentication::OAuth:: + TokenRequestParams const& params) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestTokenAsync( + *(void**)(&tokenEndpoint), *(void**)(¶ms), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestTokenAsync( + *(void**)(&tokenEndpoint), *(void**)(¶ms), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_IOAuth2ManagerStatics< + D>::RequestTokenAsync(winrt::Windows::Foundation::Uri const& tokenEndpoint, + winrt::Microsoft::Security::Authentication::OAuth:: + TokenRequestParams const& params, + winrt::Microsoft::Security::Authentication::OAuth:: + ClientAuthentication const& clientAuth) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestTokenAsync2( + *(void**)(&tokenEndpoint), *(void**)(¶ms), *(void**)(&clientAuth), + &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestTokenAsync2( + *(void**)(&tokenEndpoint), *(void**)(¶ms), *(void**)(&clientAuth), + &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenFailure::Kind() + const { + winrt::Microsoft::Security::Authentication::OAuth::TokenFailureKind value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenFailure< + D>::ErrorCode() const { + winrt::hresult value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorCode(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorCode(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenFailure::Error() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Error(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Error(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenFailure< + D>::ErrorDescription() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorDescription(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorDescription(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenFailure< + D>::ErrorUri() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenFailure< + D>::AdditionalParams() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } + return winrt::Windows::Foundation::Collections::IMapView< + hstring, winrt::Windows::Data::Json::IJsonValue>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::GrantType() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GrantType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GrantType(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::GrantType(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GrantType(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GrantType(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Code() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Code(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Code(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Code(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Code(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Code(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::RedirectUri() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RedirectUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RedirectUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::RedirectUri(winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RedirectUri(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RedirectUri(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::CodeVerifier() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CodeVerifier(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CodeVerifier(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::CodeVerifier(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CodeVerifier(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CodeVerifier(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::ClientId() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClientId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClientId(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::ClientId(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClientId(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClientId(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Username() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Username(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Username(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Username(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Username(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Username(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Password() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Password(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Password(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Password(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Password(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Password(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Scope() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::Scope(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scope(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scope(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::RefreshToken() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RefreshToken(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RefreshToken(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::RefreshToken(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RefreshToken(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RefreshToken(*(void**)(&value))); + } +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParams< + D>::AdditionalParams() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } + return winrt::Windows::Foundation::Collections::IMap{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParamsFactory< + D>::CreateInstance(param::hstring const& grantType) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&grantType), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&grantType), &value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParamsStatics< + D>:: + CreateForAuthorizationCodeRequest( + winrt::Microsoft::Security::Authentication::OAuth::AuthResponse const& + authResponse) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForAuthorizationCodeRequest( + *(void**)(&authResponse), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForAuthorizationCodeRequest( + *(void**)(&authResponse), &result)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParamsStatics< + D>::CreateForClientCredentials() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForClientCredentials(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForClientCredentials(&result)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParamsStatics< + D>::CreateForExtension(winrt::Windows::Foundation::Uri const& extensionUri) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateForExtension(*(void**)(&extensionUri), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateForExtension(*(void**)(&extensionUri), &result)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestParamsStatics< + D>::CreateForRefreshToken(param::hstring const& refreshToken) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForRefreshToken( + *(void**)(&refreshToken), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForRefreshToken( + *(void**)(&refreshToken), &result)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestResult< + D>::ResponseMessage() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ResponseMessage(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ResponseMessage(&value)); + } + return winrt::Windows::Web::Http::HttpResponseMessage{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestResult< + D>::Response() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Response(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Response(&value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenResponse{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenRequestResult< + D>::Failure() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Failure(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Failure(&value)); + } + return winrt::Microsoft::Security::Authentication::OAuth::TokenFailure{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenResponse< + D>::AccessToken() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessToken(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessToken(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenResponse< + D>::TokenType() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TokenType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TokenType(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenResponse< + D>::ExpiresIn() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpiresIn(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpiresIn(&value)); + } + return value; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenResponse< + D>::RefreshToken() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RefreshToken(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RefreshToken(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenResponse::Scope() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scope(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_Security_Authentication_OAuth_ITokenResponse< + D>::AdditionalParams() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AdditionalParams(&value)); + } + return winrt::Windows::Foundation::Collections::IMapView< + hstring, winrt::Windows::Data::Json::IJsonValue>{value, + take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::Security::Authentication::OAuth::IAuthFailure> { + int32_t __stdcall get_Error(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Error()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ErrorDescription(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ErrorDescription()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ErrorUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ErrorUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_State(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalParams(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::Collections::IMapView>( + this->shim().AdditionalParams()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams> + : produce_base { + int32_t __stdcall get_ResponseType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ResponseType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ResponseType(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResponseType(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClientId(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClientId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClientId(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClientId(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RedirectUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RedirectUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RedirectUri(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RedirectUri( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_State(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_State(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().State(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scope(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scope()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scope(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scope(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CodeChallenge(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CodeChallenge()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CodeChallenge(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CodeChallenge(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CodeChallengeMethod(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CodeChallengeMethod()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CodeChallengeMethod(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CodeChallengeMethod( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalParams(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::Collections::IMap>( + this->shim().AdditionalParams()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* responseType, void* clientId, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams>( + this->shim().CreateInstance( + *reinterpret_cast(&responseType), + *reinterpret_cast(&clientId))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstance2(void* responseType, void* clientId, + void* redirectUri, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams>( + this->shim().CreateInstance2( + *reinterpret_cast(&responseType), + *reinterpret_cast(&clientId), + *reinterpret_cast( + &redirectUri))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForAuthorizationCodeRequest( + void* clientId, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams>( + this->shim().CreateForAuthorizationCodeRequest( + *reinterpret_cast(&clientId))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForAuthorizationCodeRequest2( + void* clientId, void* redirectUri, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams>( + this->shim().CreateForAuthorizationCodeRequest( + *reinterpret_cast(&clientId), + *reinterpret_cast( + &redirectUri))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestResult> + : produce_base { + int32_t __stdcall get_ResponseUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ResponseUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Response(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::AuthResponse>( + this->shim().Response()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Failure(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::AuthFailure>( + this->shim().Failure()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::Security::Authentication::OAuth::IAuthResponse> { + int32_t __stdcall get_State(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Code(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Code()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessToken(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AccessToken()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TokenType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TokenType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpiresIn(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpiresIn()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scope(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scope()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalParams(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::Collections::IMapView>( + this->shim().AdditionalParams()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::IClientAuthentication> + : produce_base { + int32_t __stdcall get_Authorization(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue>( + this->shim().Authorization()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Authorization(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Authorization( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProxyAuthorization(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue>( + this->shim().ProxyAuthorization()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProxyAuthorization(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProxyAuthorization( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalHeaders(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::Collections::IMap>( + this->shim().AdditionalHeaders()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* authorization, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance( + *reinterpret_cast( + &authorization))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForBasicAuthorization(void* clientId, + void* clientSecret, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForBasicAuthorization( + *reinterpret_cast(&clientId), + *reinterpret_cast(&clientSecret))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::IOAuth2ManagerStatics> + : produce_base { + int32_t __stdcall RequestAuthWithParamsAsync( + struct struct_Microsoft_UI_WindowId parentWindowId, void* authEndpoint, + void* params, void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().RequestAuthWithParamsAsync( + *reinterpret_cast( + &parentWindowId), + *reinterpret_cast( + &authEndpoint), + *reinterpret_cast(¶ms))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CompleteAuthRequest(void* responseUri, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CompleteAuthRequest( + *reinterpret_cast( + &responseUri))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RequestTokenAsync(void* tokenEndpoint, void* params, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().RequestTokenAsync( + *reinterpret_cast( + &tokenEndpoint), + *reinterpret_cast(¶ms))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RequestTokenAsync2(void* tokenEndpoint, void* params, + void* clientAuth, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().RequestTokenAsync( + *reinterpret_cast( + &tokenEndpoint), + *reinterpret_cast(¶ms), + *reinterpret_cast( + &clientAuth))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::Security::Authentication::OAuth::ITokenFailure> { + int32_t __stdcall get_Kind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenFailureKind>( + this->shim().Kind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ErrorCode(winrt::hresult* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ErrorCode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Error(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Error()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ErrorDescription(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ErrorDescription()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ErrorUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ErrorUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalParams(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().AdditionalParams()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams> + : produce_base { + int32_t __stdcall get_GrantType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GrantType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GrantType(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GrantType(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Code(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Code()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Code(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Code(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RedirectUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RedirectUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RedirectUri(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RedirectUri( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CodeVerifier(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CodeVerifier()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CodeVerifier(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CodeVerifier(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClientId(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClientId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClientId(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClientId(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Username(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Username()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Username(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Username(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Password(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Password()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Password(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Password(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scope(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scope()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scope(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scope(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RefreshToken(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RefreshToken()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RefreshToken(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RefreshToken(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalParams(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::Collections::IMap>( + this->shim().AdditionalParams()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* grantType, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams>( + this->shim().CreateInstance( + *reinterpret_cast(&grantType))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForAuthorizationCodeRequest( + void* authResponse, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams>( + this->shim().CreateForAuthorizationCodeRequest( + *reinterpret_cast(&authResponse))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForClientCredentials(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams>( + this->shim().CreateForClientCredentials()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForExtension(void* extensionUri, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams>( + this->shim().CreateForExtension( + *reinterpret_cast( + &extensionUri))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForRefreshToken(void* refreshToken, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams>( + this->shim().CreateForRefreshToken( + *reinterpret_cast(&refreshToken))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestResult> + : produce_base { + int32_t __stdcall get_ResponseMessage(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ResponseMessage()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Response(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenResponse>( + this->shim().Response()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Failure(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Security::Authentication::OAuth::TokenFailure>( + this->shim().Failure()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse> + : produce_base< + D, + winrt::Microsoft::Security::Authentication::OAuth::ITokenResponse> { + int32_t __stdcall get_AccessToken(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AccessToken()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TokenType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TokenType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpiresIn(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpiresIn()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RefreshToken(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RefreshToken()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scope(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scope()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AdditionalParams(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().AdditionalParams()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::Security::Authentication::OAuth { + inline AuthRequestParams::AuthRequestParams( + param::hstring const& responseType, param::hstring const& clientId) + : AuthRequestParams( + impl::call_factory( + [&](IAuthRequestParamsFactory const& f) { + return f.CreateInstance(responseType, clientId); + })) {} + inline AuthRequestParams::AuthRequestParams( + param::hstring const& responseType, param::hstring const& clientId, + winrt::Windows::Foundation::Uri const& redirectUri) + : AuthRequestParams( + impl::call_factory( + [&](IAuthRequestParamsFactory const& f) { + return f.CreateInstance2(responseType, clientId, redirectUri); + })) {} + inline auto AuthRequestParams::CreateForAuthorizationCodeRequest( + param::hstring const& clientId) { + return impl::call_factory( + [&](IAuthRequestParamsStatics const& f) { + return f.CreateForAuthorizationCodeRequest(clientId); + }); + } + inline auto AuthRequestParams::CreateForAuthorizationCodeRequest( + param::hstring const& clientId, + winrt::Windows::Foundation::Uri const& redirectUri) { + return impl::call_factory( + [&](IAuthRequestParamsStatics const& f) { + return f.CreateForAuthorizationCodeRequest(clientId, redirectUri); + }); + } + inline ClientAuthentication::ClientAuthentication() + : ClientAuthentication( + impl::call_factory_cast< + ClientAuthentication (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ClientAuthentication>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ClientAuthentication::ClientAuthentication( + winrt::Windows::Web::Http::Headers::HttpCredentialsHeaderValue const& + authorization) + : ClientAuthentication(impl::call_factory( + [&](IClientAuthenticationFactory const& f) { + return f.CreateInstance(authorization); + })) {} + inline auto ClientAuthentication::CreateForBasicAuthorization( + param::hstring const& clientId, param::hstring const& clientSecret) { + return impl::call_factory( + [&](IClientAuthenticationStatics const& f) { + return f.CreateForBasicAuthorization(clientId, clientSecret); + }); + } + inline auto OAuth2Manager::RequestAuthWithParamsAsync( + winrt::Microsoft::UI::WindowId const& parentWindowId, + winrt::Windows::Foundation::Uri const& authEndpoint, + winrt::Microsoft::Security::Authentication::OAuth:: + AuthRequestParams const& params) { + return impl::call_factory( + [&](IOAuth2ManagerStatics const& f) { + return f.RequestAuthWithParamsAsync(parentWindowId, authEndpoint, + params); + }); + } + inline auto OAuth2Manager::CompleteAuthRequest( + winrt::Windows::Foundation::Uri const& responseUri) { + return impl::call_factory( + [&](IOAuth2ManagerStatics const& f) { + return f.CompleteAuthRequest(responseUri); + }); + } + inline auto OAuth2Manager::RequestTokenAsync( + winrt::Windows::Foundation::Uri const& tokenEndpoint, + winrt::Microsoft::Security::Authentication::OAuth:: + TokenRequestParams const& params) { + return impl::call_factory( + [&](IOAuth2ManagerStatics const& f) { + return f.RequestTokenAsync(tokenEndpoint, params); + }); + } + inline auto OAuth2Manager::RequestTokenAsync( + winrt::Windows::Foundation::Uri const& tokenEndpoint, + winrt::Microsoft::Security::Authentication::OAuth:: + TokenRequestParams const& params, + winrt::Microsoft::Security::Authentication::OAuth:: + ClientAuthentication const& clientAuth) { + return impl::call_factory( + [&](IOAuth2ManagerStatics const& f) { + return f.RequestTokenAsync(tokenEndpoint, params, clientAuth); + }); + } + inline TokenRequestParams::TokenRequestParams(param::hstring const& grantType) + : TokenRequestParams( + impl::call_factory( + [&](ITokenRequestParamsFactory const& f) { + return f.CreateInstance(grantType); + })) {} + inline auto TokenRequestParams::CreateForAuthorizationCodeRequest( + winrt::Microsoft::Security::Authentication::OAuth::AuthResponse const& + authResponse) { + return impl::call_factory( + [&](ITokenRequestParamsStatics const& f) { + return f.CreateForAuthorizationCodeRequest(authResponse); + }); + } + inline auto TokenRequestParams::CreateForClientCredentials() { + return impl::call_factory_cast< + winrt::Microsoft::Security::Authentication::OAuth:: + TokenRequestParams (*)(ITokenRequestParamsStatics const&), + TokenRequestParams, ITokenRequestParamsStatics>( + [](ITokenRequestParamsStatics const& f) { + return f.CreateForClientCredentials(); + }); + } + inline auto TokenRequestParams::CreateForExtension( + winrt::Windows::Foundation::Uri const& extensionUri) { + return impl::call_factory( + [&](ITokenRequestParamsStatics const& f) { + return f.CreateForExtension(extensionUri); + }); + } + inline auto TokenRequestParams::CreateForRefreshToken( + param::hstring const& refreshToken) { + return impl::call_factory( + [&](ITokenRequestParamsStatics const& f) { + return f.CreateForRefreshToken(refreshToken); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestParams> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::IAuthRequestResult> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::IClientAuthentication> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::IOAuth2ManagerStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestParams> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::ITokenRequestResult> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestParams> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::AuthRequestResult> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::ClientAuthentication> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestParams> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::Security::Authentication::OAuth::TokenRequestResult> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Core.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Core.h new file mode 100644 index 00000000..5e1d9620 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Core.h @@ -0,0 +1,224 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_Core_H +#define WINRT_Microsoft_UI_Composition_Core_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Composition.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Composition.Core.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_Core_ICompositorController< + D>::Compositor() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Core::ICompositorController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Compositor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Compositor(&value)); + } + return winrt::Microsoft::UI::Composition::Compositor{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Core_ICompositorController::Commit() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Core::ICompositorController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Commit()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Commit()); + } +} +template +auto consume_Microsoft_UI_Composition_Core_ICompositorController< + D>::EnsurePreviousCommitCompletedAsync() const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Core::ICompositorController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->EnsurePreviousCommitCompletedAsync(&operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->EnsurePreviousCommitCompletedAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Core_ICompositorController:: + CommitNeeded( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::Core::CompositorController, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Core::ICompositorController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_CommitNeeded(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_CommitNeeded(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Composition_Core_ICompositorController:: + CommitNeeded( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::Core::CompositorController, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, CommitNeeded(handler)); +} +template +auto consume_Microsoft_UI_Composition_Core_ICompositorController< + D>::CommitNeeded(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Core::ICompositorController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CommitNeeded(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CommitNeeded(impl::bind_in(token)); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Core::ICompositorController> { + int32_t __stdcall get_Compositor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Compositor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Commit() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Commit(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall EnsurePreviousCommitCompletedAsync( + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().EnsurePreviousCommitCompletedAsync()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_CommitNeeded(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CommitNeeded( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CommitNeeded( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CommitNeeded( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::Core { + inline CompositorController::CompositorController() + : CompositorController( + impl::call_factory_cast< + CompositorController (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CompositorController>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Diagnostics.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Diagnostics.h new file mode 100644 index 00000000..66862ab8 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Diagnostics.h @@ -0,0 +1,338 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_Diagnostics_H +#define WINRT_Microsoft_UI_Composition_Diagnostics_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Composition.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Composition.Diagnostics.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_Diagnostics_ICompositionDebugHeatMaps< + D>::Hide(winrt::Microsoft::UI::Composition::Visual const& subtree) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide(*(void**)(&subtree))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide(*(void**)(&subtree))); + } +} +template +auto consume_Microsoft_UI_Composition_Diagnostics_ICompositionDebugHeatMaps< + D>::ShowMemoryUsage(winrt::Microsoft::UI::Composition::Visual const& + subtree) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowMemoryUsage(*(void**)(&subtree))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowMemoryUsage(*(void**)(&subtree))); + } +} +template +auto consume_Microsoft_UI_Composition_Diagnostics_ICompositionDebugHeatMaps< + D>::ShowOverdraw(winrt::Microsoft::UI::Composition::Visual const& subtree, + winrt::Microsoft::UI::Composition::Diagnostics:: + CompositionDebugOverdrawContentKinds const& + contentKinds) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowOverdraw( + *(void**)(&subtree), static_cast(contentKinds))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowOverdraw( + *(void**)(&subtree), static_cast(contentKinds))); + } +} +template +auto consume_Microsoft_UI_Composition_Diagnostics_ICompositionDebugHeatMaps:: + ShowRedraw(winrt::Microsoft::UI::Composition::Visual const& subtree) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowRedraw(*(void**)(&subtree))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowRedraw(*(void**)(&subtree))); + } +} +template +auto consume_Microsoft_UI_Composition_Diagnostics_ICompositionDebugSettings< + D>::HeatMaps() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeatMaps(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeatMaps(&value)); + } + return winrt::Microsoft::UI::Composition::Diagnostics:: + CompositionDebugHeatMaps{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Diagnostics_ICompositionDebugSettingsStatics< + D>::TryGetSettings(winrt::Microsoft::UI::Composition::Compositor const& + compositor) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Diagnostics:: + ICompositionDebugSettingsStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TryGetSettings(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TryGetSettings(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Diagnostics:: + CompositionDebugSettings{result, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Diagnostics::ICompositionDebugHeatMaps> + : produce_base { + int32_t __stdcall Hide(void* subtree) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Hide( + *reinterpret_cast( + &subtree)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowMemoryUsage(void* subtree) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowMemoryUsage( + *reinterpret_cast( + &subtree)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowOverdraw(void* subtree, + uint32_t contentKinds) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowOverdraw( + *reinterpret_cast( + &subtree), + *reinterpret_cast( + &contentKinds)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowRedraw(void* subtree) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowRedraw( + *reinterpret_cast( + &subtree)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Diagnostics::ICompositionDebugSettings> + : produce_base { + int32_t __stdcall get_HeatMaps(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeatMaps()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall TryGetSettings(void* compositor, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Diagnostics:: + CompositionDebugSettings>(this->shim().TryGetSettings( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::Diagnostics { + constexpr auto operator|( + CompositionDebugOverdrawContentKinds const left, + CompositionDebugOverdrawContentKinds const right) noexcept { + return static_cast( + impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=( + CompositionDebugOverdrawContentKinds& left, + CompositionDebugOverdrawContentKinds const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&( + CompositionDebugOverdrawContentKinds const left, + CompositionDebugOverdrawContentKinds const right) noexcept { + return static_cast( + impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=( + CompositionDebugOverdrawContentKinds& left, + CompositionDebugOverdrawContentKinds const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~( + CompositionDebugOverdrawContentKinds const value) noexcept { + return static_cast( + ~impl::to_underlying_type(value)); + } + constexpr auto operator^( + CompositionDebugOverdrawContentKinds const left, + CompositionDebugOverdrawContentKinds const right) noexcept { + return static_cast( + impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=( + CompositionDebugOverdrawContentKinds& left, + CompositionDebugOverdrawContentKinds const right) noexcept { + left = left ^ right; + return left; + } + inline auto CompositionDebugSettings::TryGetSettings( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ICompositionDebugSettingsStatics const& f) { + return f.TryGetSettings(compositor); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::UI::Composition::Diagnostics::ICompositionDebugHeatMaps> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Diagnostics::ICompositionDebugSettings> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Diagnostics::CompositionDebugHeatMaps> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Diagnostics::CompositionDebugSettings> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Effects.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Effects.h new file mode 100644 index 00000000..4a54e39a --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Effects.h @@ -0,0 +1,428 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_Effects_H +#define WINRT_Microsoft_UI_Composition_Effects_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Composition.h" +#include "winrt/impl/Microsoft.UI.Composition.Effects.2.h" +#include "winrt/impl/Windows.Graphics.Effects.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::AmbientAmount() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AmbientAmount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AmbientAmount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::AmbientAmount(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AmbientAmount(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AmbientAmount(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::DiffuseAmount() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DiffuseAmount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DiffuseAmount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::DiffuseAmount(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DiffuseAmount(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DiffuseAmount(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::NormalMapSource() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NormalMapSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NormalMapSource(&value)); + } + return winrt::Windows::Graphics::Effects::IGraphicsEffectSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect:: + NormalMapSource( + winrt::Windows::Graphics::Effects::IGraphicsEffectSource const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NormalMapSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NormalMapSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::SpecularAmount() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpecularAmount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpecularAmount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::SpecularAmount(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SpecularAmount(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SpecularAmount(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::SpecularShine() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpecularShine(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpecularShine(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect< + D>::SpecularShine(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SpecularShine(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SpecularShine(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect2< + D>::ReflectanceModel() const { + winrt::Microsoft::UI::Composition::Effects:: + SceneLightingEffectReflectanceModel value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReflectanceModel( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReflectanceModel( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Effects_ISceneLightingEffect2< + D>::ReflectanceModel(winrt::Microsoft::UI::Composition::Effects:: + SceneLightingEffectReflectanceModel const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ReflectanceModel(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ReflectanceModel(static_cast(value))); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect> { + int32_t __stdcall get_AmbientAmount(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AmbientAmount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AmbientAmount(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AmbientAmount(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DiffuseAmount(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DiffuseAmount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DiffuseAmount(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DiffuseAmount(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NormalMapSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().NormalMapSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NormalMapSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NormalMapSource( + *reinterpret_cast< + winrt::Windows::Graphics::Effects::IGraphicsEffectSource const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpecularAmount(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpecularAmount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpecularAmount(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpecularAmount(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpecularShine(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpecularShine()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpecularShine(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpecularShine(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect2> + : produce_base< + D, + winrt::Microsoft::UI::Composition::Effects::ISceneLightingEffect2> { + int32_t __stdcall get_ReflectanceModel(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ReflectanceModel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ReflectanceModel(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReflectanceModel( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::Effects { + inline SceneLightingEffect::SceneLightingEffect() + : SceneLightingEffect( + impl::call_factory_cast< + SceneLightingEffect (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SceneLightingEffect>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Interactions.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Interactions.h new file mode 100644 index 00000000..38bf9452 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Interactions.h @@ -0,0 +1,5715 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_Interactions_H +#define WINRT_Microsoft_UI_Composition_Interactions_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Composition.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Composition.Interactions.2.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionConditionalValue< + D>::Condition() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionConditionalValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionConditionalValue< + D>::Condition(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionConditionalValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionConditionalValue< + D>::Value() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionConditionalValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionConditionalValue< + D>::Value(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionConditionalValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionConditionalValueStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionConditionalValueStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionConditionalValueStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + CompositionConditionalValue{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionInteractionSourceCollection< + D>::Count() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionInteractionSourceCollection< + D>::Add(winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSource const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Add(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Add(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionInteractionSourceCollection< + D>::Remove(winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSource const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Remove(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_ICompositionInteractionSourceCollection< + D>::RemoveAll() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + ICompositionInteractionSourceCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionSourceConfiguration< + D>::PositionXSourceMode() const { + winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceRedirectionMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionXSourceMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionXSourceMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionSourceConfiguration< + D>::PositionXSourceMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceRedirectionMode const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PositionXSourceMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PositionXSourceMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionSourceConfiguration< + D>::PositionYSourceMode() const { + winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceRedirectionMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionYSourceMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionYSourceMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionSourceConfiguration< + D>::PositionYSourceMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceRedirectionMode const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PositionYSourceMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PositionYSourceMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionSourceConfiguration< + D>::ScaleSourceMode() const { + winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceRedirectionMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleSourceMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleSourceMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionSourceConfiguration< + D>::ScaleSourceMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceRedirectionMode const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionSourceConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ScaleSourceMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ScaleSourceMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::InteractionSources() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InteractionSources(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InteractionSources(&value)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + CompositionInteractionSourceCollection{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::IsPositionRoundingSuggested() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPositionRoundingSuggested(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPositionRoundingSuggested(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MaxPosition() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxPosition(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxPosition(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MaxPosition(winrt::Windows::Foundation::Numerics::float3 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxPosition(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxPosition(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MaxScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MaxScale(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MinPosition() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinPosition(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinPosition(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MinPosition(winrt::Windows::Foundation::Numerics::float3 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinPosition(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinPosition(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MinScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::MinScale(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::NaturalRestingPosition() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalRestingPosition(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalRestingPosition(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::NaturalRestingScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalRestingScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalRestingScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::Owner() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Owner(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Owner(&value)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerOwner{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::Position() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::PositionInertiaDecayRate() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionInertiaDecayRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionInertiaDecayRate(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + PositionInertiaDecayRate( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PositionInertiaDecayRate(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PositionInertiaDecayRate(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::PositionVelocityInPixelsPerSecond() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PositionVelocityInPixelsPerSecond(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PositionVelocityInPixelsPerSecond(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::Scale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::ScaleInertiaDecayRate() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleInertiaDecayRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleInertiaDecayRate(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + ScaleInertiaDecayRate( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ScaleInertiaDecayRate(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ScaleInertiaDecayRate(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::ScaleVelocityInPercentPerSecond() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleVelocityInPercentPerSecond(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleVelocityInPercentPerSecond(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::AdjustPositionXIfGreaterThanThreshold(float adjustment, + float positionThreshold) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AdjustPositionXIfGreaterThanThreshold( + adjustment, positionThreshold)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AdjustPositionXIfGreaterThanThreshold( + adjustment, positionThreshold)); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::AdjustPositionYIfGreaterThanThreshold(float adjustment, + float positionThreshold) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AdjustPositionYIfGreaterThanThreshold( + adjustment, positionThreshold)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AdjustPositionYIfGreaterThanThreshold( + adjustment, positionThreshold)); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + ConfigurePositionXInertiaModifiers( + param::iterable const& modifiers) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigurePositionXInertiaModifiers( + *(void**)(&modifiers))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigurePositionXInertiaModifiers( + *(void**)(&modifiers))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + ConfigurePositionYInertiaModifiers( + param::iterable const& modifiers) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigurePositionYInertiaModifiers( + *(void**)(&modifiers))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigurePositionYInertiaModifiers( + *(void**)(&modifiers))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + ConfigureScaleInertiaModifiers( + param::iterable const& modifiers) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ConfigureScaleInertiaModifiers(*(void**)(&modifiers))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ConfigureScaleInertiaModifiers(*(void**)(&modifiers))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::TryUpdatePosition(winrt::Windows::Foundation::Numerics::float3 const& + value) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TryUpdatePosition(impl::bind_in(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TryUpdatePosition(impl::bind_in(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::TryUpdatePositionBy(winrt::Windows::Foundation::Numerics::float3 const& + amount) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TryUpdatePositionBy(impl::bind_in(amount), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TryUpdatePositionBy(impl::bind_in(amount), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + TryUpdatePositionWithAnimation( + winrt::Microsoft::UI::Composition::CompositionAnimation const& + animation) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdatePositionWithAnimation( + *(void**)(&animation), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdatePositionWithAnimation( + *(void**)(&animation), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + TryUpdatePositionWithAdditionalVelocity( + winrt::Windows::Foundation::Numerics::float3 const& + velocityInPixelsPerSecond) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdatePositionWithAdditionalVelocity( + impl::bind_in(velocityInPixelsPerSecond), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdatePositionWithAdditionalVelocity( + impl::bind_in(velocityInPixelsPerSecond), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker< + D>::TryUpdateScale(float value, + winrt::Windows::Foundation::Numerics::float3 const& + centerPoint) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdateScale( + value, impl::bind_in(centerPoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdateScale( + value, impl::bind_in(centerPoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + TryUpdateScaleWithAnimation( + winrt::Microsoft::UI::Composition::CompositionAnimation const& + animation, + winrt::Windows::Foundation::Numerics::float3 const& centerPoint) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdateScaleWithAnimation( + *(void**)(&animation), impl::bind_in(centerPoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdateScaleWithAnimation( + *(void**)(&animation), impl::bind_in(centerPoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker:: + TryUpdateScaleWithAdditionalVelocity( + float velocityInPercentPerSecond, + winrt::Windows::Foundation::Numerics::float3 const& centerPoint) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdateScaleWithAdditionalVelocity( + velocityInPercentPerSecond, impl::bind_in(centerPoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdateScaleWithAdditionalVelocity( + velocityInPercentPerSecond, impl::bind_in(centerPoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker2:: + ConfigureCenterPointXInertiaModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureCenterPointXInertiaModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureCenterPointXInertiaModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker2:: + ConfigureCenterPointYInertiaModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureCenterPointYInertiaModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureCenterPointYInertiaModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker3:: + ConfigureVector2PositionInertiaModifiers( + param::iterable const& + modifiers) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureVector2PositionInertiaModifiers( + *(void**)(&modifiers))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureVector2PositionInertiaModifiers( + *(void**)(&modifiers))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker4:: + TryUpdatePosition( + winrt::Windows::Foundation::Numerics::float3 const& value, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerClampingOption const& option) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker4, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdatePositionWithOption( + impl::bind_in(value), static_cast(option), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdatePositionWithOption( + impl::bind_in(value), static_cast(option), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker4:: + TryUpdatePositionBy( + winrt::Windows::Foundation::Numerics::float3 const& amount, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerClampingOption const& option) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker4, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdatePositionByWithOption( + impl::bind_in(amount), static_cast(option), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdatePositionByWithOption( + impl::bind_in(amount), static_cast(option), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker4< + D>::IsInertiaFromImpulse() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker4, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInertiaFromImpulse(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInertiaFromImpulse(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTracker5:: + TryUpdatePosition(winrt::Windows::Foundation::Numerics::float3 const& value, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerClampingOption const& option, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerPositionUpdateOption const& + posUpdateOption) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker5, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryUpdatePositionWithOption( + impl::bind_in(value), static_cast(option), + static_cast(posUpdateOption), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryUpdatePositionWithOption( + impl::bind_in(value), static_cast(option), + static_cast(posUpdateOption), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerCustomAnimationStateEnteredArgs< + D>::RequestId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerCustomAnimationStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerCustomAnimationStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerCustomAnimationStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerCustomAnimationStateEnteredArgs2< + D>::IsFromBinding() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerCustomAnimationStateEnteredArgs2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerCustomAnimationStateEnteredArgs2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerCustomAnimationStateEnteredArgs2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerIdleStateEnteredArgs< + D>::RequestId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerIdleStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerIdleStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerIdleStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerIdleStateEnteredArgs2< + D>::IsFromBinding() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerIdleStateEnteredArgs2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerIdleStateEnteredArgs2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerIdleStateEnteredArgs2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaMotion< + D>::Condition() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaMotion< + D>::Condition(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaMotion< + D>::Motion() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Motion(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Motion(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaMotion< + D>::Motion(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Motion(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Motion(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaMotionStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotionStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaMotionStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaMotion{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaNaturalMotion< + D>::Condition() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaNaturalMotion< + D>::Condition(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaNaturalMotion< + D>::NaturalMotion() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalMotion(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalMotion(&value)); + } + return winrt::Microsoft::UI::Composition::ScalarNaturalMotionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaNaturalMotion< + D>::NaturalMotion(winrt::Microsoft::UI::Composition:: + ScalarNaturalMotionAnimation const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NaturalMotion(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NaturalMotion(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaNaturalMotionStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotionStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaNaturalMotionStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaNaturalMotion{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaRestingValue< + D>::Condition() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaRestingValue< + D>::Condition(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaRestingValue< + D>::RestingValue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RestingValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RestingValue(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaRestingValue< + D>::RestingValue(winrt::Microsoft::UI::Composition:: + ExpressionAnimation const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValue>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RestingValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RestingValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaRestingValueStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValueStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValueStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaRestingValueStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaRestingValue{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::ModifiedRestingPosition() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModifiedRestingPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ModifiedRestingPosition(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::ModifiedRestingScale() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModifiedRestingScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ModifiedRestingScale(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::NaturalRestingPosition() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalRestingPosition(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalRestingPosition(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::NaturalRestingScale() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalRestingScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalRestingScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::PositionVelocityInPixelsPerSecond() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PositionVelocityInPixelsPerSecond(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PositionVelocityInPixelsPerSecond(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::RequestId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs< + D>::ScaleVelocityInPercentPerSecond() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleVelocityInPercentPerSecond(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleVelocityInPercentPerSecond(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs2< + D>::IsInertiaFromImpulse() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInertiaFromImpulse(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInertiaFromImpulse(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInertiaStateEnteredArgs3< + D>::IsFromBinding() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInertiaStateEnteredArgs3>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInteractingStateEnteredArgs< + D>::RequestId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInteractingStateEnteredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInteractingStateEnteredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInteractingStateEnteredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerInteractingStateEnteredArgs2< + D>::IsFromBinding() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInteractingStateEnteredArgs2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInteractingStateEnteredArgs2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerInteractingStateEnteredArgs2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFromBinding(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerOwner:: + CustomAnimationStateEntered( + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& sender, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerCustomAnimationStateEnteredArgs const& args) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CustomAnimationStateEntered( + *(void**)(&sender), *(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CustomAnimationStateEntered( + *(void**)(&sender), *(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerOwner< + D>::IdleStateEntered(winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& sender, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerIdleStateEnteredArgs const& args) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IdleStateEntered(*(void**)(&sender), + *(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IdleStateEntered(*(void**)(&sender), + *(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerOwner< + D>::InertiaStateEntered(winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& sender, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaStateEnteredArgs const& + args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InertiaStateEntered(*(void**)(&sender), + *(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InertiaStateEntered(*(void**)(&sender), + *(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerOwner:: + InteractingStateEntered( + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& sender, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInteractingStateEnteredArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InteractingStateEntered(*(void**)(&sender), + *(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InteractingStateEntered(*(void**)(&sender), + *(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerOwner:: + RequestIgnored(winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& sender, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerRequestIgnoredArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->RequestIgnored(*(void**)(&sender), *(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->RequestIgnored(*(void**)(&sender), *(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerOwner:: + ValuesChanged(winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& sender, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerValuesChangedArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ValuesChanged(*(void**)(&sender), *(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ValuesChanged(*(void**)(&sender), *(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerRequestIgnoredArgs< + D>::RequestId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerRequestIgnoredArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerRequestIgnoredArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerRequestIgnoredArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions::InteractionTracker{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerStatics< + D>::CreateWithOwner(winrt::Microsoft::UI::Composition::Compositor const& + compositor, + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerOwner const& owner) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithOwner(*(void**)(&compositor), + *(void**)(&owner), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithOwner(*(void**)(&compositor), + *(void**)(&owner), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions::InteractionTracker{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerStatics2< + D>::SetBindingMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& boundTracker1, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& boundTracker2, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionBindingAxisModes const& axisMode) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetBindingMode( + *(void**)(&boundTracker1), *(void**)(&boundTracker2), + static_cast(axisMode))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetBindingMode( + *(void**)(&boundTracker1), *(void**)(&boundTracker2), + static_cast(axisMode))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerStatics2< + D>::GetBindingMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& boundTracker1, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTracker const& boundTracker2) const { + winrt::Microsoft::UI::Composition::Interactions::InteractionBindingAxisModes + result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBindingMode( + *(void**)(&boundTracker1), *(void**)(&boundTracker2), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBindingMode( + *(void**)(&boundTracker1), *(void**)(&boundTracker2), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerValuesChangedArgs< + D>::Position() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerValuesChangedArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerValuesChangedArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerValuesChangedArgs< + D>::RequestId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerValuesChangedArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerValuesChangedArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerValuesChangedArgs< + D>::Scale() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerValuesChangedArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerValuesChangedArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerVector2InertiaNaturalMotion< + D>::Condition() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Condition(&value)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerVector2InertiaNaturalMotion< + D>::Condition(winrt::Microsoft::UI::Composition::ExpressionAnimation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Condition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerVector2InertiaNaturalMotion< + D>::NaturalMotion() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalMotion(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalMotion(&value)); + } + return winrt::Microsoft::UI::Composition::Vector2NaturalMotionAnimation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerVector2InertiaNaturalMotion< + D>::NaturalMotion(winrt::Microsoft::UI::Composition:: + Vector2NaturalMotionAnimation const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotion>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NaturalMotion(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NaturalMotion(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IInteractionTrackerVector2InertiaNaturalMotionStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotionStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerVector2InertiaNaturalMotionStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerVector2InertiaNaturalMotion{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::IsPositionXRailsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPositionXRailsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPositionXRailsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::IsPositionXRailsEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPositionXRailsEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPositionXRailsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::IsPositionYRailsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPositionYRailsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPositionYRailsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::IsPositionYRailsEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPositionYRailsEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPositionYRailsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::ManipulationRedirectionMode() const { + winrt::Microsoft::UI::Composition::Interactions:: + VisualInteractionSourceRedirectionMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationRedirectionMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationRedirectionMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource:: + ManipulationRedirectionMode( + winrt::Microsoft::UI::Composition::Interactions:: + VisualInteractionSourceRedirectionMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ManipulationRedirectionMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ManipulationRedirectionMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionXChainingMode() const { + winrt::Microsoft::UI::Composition::Interactions::InteractionChainingMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionXChainingMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionXChainingMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionXChainingMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionChainingMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PositionXChainingMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PositionXChainingMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionXSourceMode() const { + winrt::Microsoft::UI::Composition::Interactions::InteractionSourceMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionXSourceMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionXSourceMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionXSourceMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PositionXSourceMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PositionXSourceMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionYChainingMode() const { + winrt::Microsoft::UI::Composition::Interactions::InteractionChainingMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionYChainingMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionYChainingMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionYChainingMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionChainingMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PositionYChainingMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PositionYChainingMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionYSourceMode() const { + winrt::Microsoft::UI::Composition::Interactions::InteractionSourceMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionYSourceMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionYSourceMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::PositionYSourceMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PositionYSourceMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PositionYSourceMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::ScaleChainingMode() const { + winrt::Microsoft::UI::Composition::Interactions::InteractionChainingMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleChainingMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleChainingMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::ScaleChainingMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionChainingMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ScaleChainingMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ScaleChainingMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::ScaleSourceMode() const { + winrt::Microsoft::UI::Composition::Interactions::InteractionSourceMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleSourceMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleSourceMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::ScaleSourceMode(winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ScaleSourceMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ScaleSourceMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource< + D>::Source() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource:: + TryRedirectForManipulation( + winrt::Microsoft::UI::Input::PointerPoint const& pointerPoint) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TryRedirectForManipulation(*(void**)(&pointerPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TryRedirectForManipulation(*(void**)(&pointerPoint))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>::DeltaPosition() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DeltaPosition(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DeltaPosition(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>::DeltaScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DeltaScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DeltaScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>::Position() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>::PositionVelocity() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionVelocity(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionVelocity(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>::Scale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>::ScaleVelocity() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleVelocity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleVelocity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>:: + ConfigureCenterPointXModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureCenterPointXModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureCenterPointXModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>:: + ConfigureCenterPointYModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureCenterPointYModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureCenterPointYModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>:: + ConfigureDeltaPositionXModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureDeltaPositionXModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureDeltaPositionXModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>:: + ConfigureDeltaPositionYModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureDeltaPositionYModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureDeltaPositionYModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource2< + D>:: + ConfigureDeltaScaleModifiers( + param::iterable const& + conditionalValues) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConfigureDeltaScaleModifiers( + *(void**)(&conditionalValues))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConfigureDeltaScaleModifiers( + *(void**)(&conditionalValues))); + } +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSource3< + D>::PointerWheelConfig() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerWheelConfig(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerWheelConfig(&value)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + InteractionSourceConfiguration{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSourceStatics< + D>::Create(winrt::Microsoft::UI::Composition::Visual const& source) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IVisualInteractionSourceStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IVisualInteractionSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&source), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&source), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + VisualInteractionSource{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Interactions_IVisualInteractionSourceStatics2< + D>::CreateFromIVisualElement(winrt::Microsoft::UI::Composition:: + IVisualElement const& source) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Interactions:: + IVisualInteractionSourceStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Interactions:: + IVisualInteractionSourceStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateFromIVisualElement(*(void**)(&source), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateFromIVisualElement(*(void**)(&source), &result)); + } + return winrt::Microsoft::UI::Composition::Interactions:: + VisualInteractionSource{result, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Condition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Condition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Condition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Condition( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Value(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base {}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Count(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Add(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Add( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Remove(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Remove( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAll() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PositionXSourceMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionXSourceMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionXSourceMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionXSourceMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionYSourceMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionYSourceMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionYSourceMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionYSourceMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleSourceMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleSourceMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleSourceMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleSourceMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker> + : produce_base { + int32_t __stdcall get_InteractionSources(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InteractionSources()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPositionRoundingSuggested(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPositionRoundingSuggested()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxPosition( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxPosition( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxPosition( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinPosition( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinPosition( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinPosition( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalRestingPosition( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NaturalRestingPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalRestingScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NaturalRestingScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Owner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Owner()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionInertiaDecayRate(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().PositionInertiaDecayRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionInertiaDecayRate(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionInertiaDecayRate( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionVelocityInPixelsPerSecond( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionVelocityInPixelsPerSecond()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleInertiaDecayRate(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().ScaleInertiaDecayRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleInertiaDecayRate(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleInertiaDecayRate( + *reinterpret_cast const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleVelocityInPercentPerSecond( + float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleVelocityInPercentPerSecond()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AdjustPositionXIfGreaterThanThreshold( + float adjustment, float positionThreshold) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AdjustPositionXIfGreaterThanThreshold(adjustment, + positionThreshold); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AdjustPositionYIfGreaterThanThreshold( + float adjustment, float positionThreshold) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AdjustPositionYIfGreaterThanThreshold(adjustment, + positionThreshold); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigurePositionXInertiaModifiers( + void* modifiers) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigurePositionXInertiaModifiers( + *reinterpret_cast const*>(&modifiers)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigurePositionYInertiaModifiers( + void* modifiers) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigurePositionYInertiaModifiers( + *reinterpret_cast const*>(&modifiers)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureScaleInertiaModifiers( + void* modifiers) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureScaleInertiaModifiers( + *reinterpret_cast const*>(&modifiers)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdatePosition( + winrt::Windows::Foundation::Numerics::float3 value, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdatePosition( + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdatePositionBy( + winrt::Windows::Foundation::Numerics::float3 amount, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdatePositionBy( + *reinterpret_cast( + &amount))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdatePositionWithAnimation( + void* animation, int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdatePositionWithAnimation( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &animation))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdatePositionWithAdditionalVelocity( + winrt::Windows::Foundation::Numerics::float3 velocityInPixelsPerSecond, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + int32_t>(this->shim().TryUpdatePositionWithAdditionalVelocity( + *reinterpret_cast( + &velocityInPixelsPerSecond))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdateScale( + float value, winrt::Windows::Foundation::Numerics::float3 centerPoint, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdateScale( + value, + *reinterpret_cast( + ¢erPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdateScaleWithAnimation( + void* animation, winrt::Windows::Foundation::Numerics::float3 centerPoint, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdateScaleWithAnimation( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &animation), + *reinterpret_cast( + ¢erPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdateScaleWithAdditionalVelocity( + float velocityInPercentPerSecond, + winrt::Windows::Foundation::Numerics::float3 centerPoint, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + int32_t>(this->shim().TryUpdateScaleWithAdditionalVelocity( + velocityInPercentPerSecond, + *reinterpret_cast( + ¢erPoint))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker2> + : produce_base { + int32_t __stdcall ConfigureCenterPointXInertiaModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureCenterPointXInertiaModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureCenterPointYInertiaModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureCenterPointYInertiaModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker3> + : produce_base { + int32_t __stdcall ConfigureVector2PositionInertiaModifiers( + void* modifiers) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureVector2PositionInertiaModifiers( + *reinterpret_cast const*>(&modifiers)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker4> + : produce_base { + int32_t __stdcall TryUpdatePositionWithOption( + winrt::Windows::Foundation::Numerics::float3 value, int32_t option, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdatePosition( + *reinterpret_cast( + &value), + *reinterpret_cast( + &option))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryUpdatePositionByWithOption( + winrt::Windows::Foundation::Numerics::float3 amount, int32_t option, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdatePositionBy( + *reinterpret_cast( + &amount), + *reinterpret_cast( + &option))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInertiaFromImpulse(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInertiaFromImpulse()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker5> + : produce_base { + int32_t __stdcall TryUpdatePositionWithOption( + winrt::Windows::Foundation::Numerics::float3 value, int32_t option, + int32_t posUpdateOption, int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryUpdatePosition( + *reinterpret_cast( + &value), + *reinterpret_cast(&option), + *reinterpret_cast( + &posUpdateOption))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RequestId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsFromBinding(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFromBinding()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RequestId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsFromBinding(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFromBinding()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Condition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Condition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Condition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Condition( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Motion(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Motion()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Motion(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Motion( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaMotion>(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Condition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Condition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Condition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Condition( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalMotion(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::ScalarNaturalMotionAnimation>( + this->shim().NaturalMotion()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NaturalMotion(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NaturalMotion( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaNaturalMotion>(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Condition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Condition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Condition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Condition( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RestingValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RestingValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RestingValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RestingValue( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInertiaRestingValue>(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ModifiedRestingPosition(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().ModifiedRestingPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ModifiedRestingScale(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().ModifiedRestingScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalRestingPosition( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NaturalRestingPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalRestingScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NaturalRestingScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionVelocityInPixelsPerSecond( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionVelocityInPixelsPerSecond()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleVelocityInPercentPerSecond( + float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleVelocityInPercentPerSecond()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsInertiaFromImpulse(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInertiaFromImpulse()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsFromBinding(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFromBinding()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RequestId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsFromBinding(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFromBinding()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Interactions::IInteractionTrackerOwner> + : produce_base { + int32_t __stdcall CustomAnimationStateEntered(void* sender, + void* args) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CustomAnimationStateEntered( + *reinterpret_cast(&sender), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerCustomAnimationStateEnteredArgs const*>( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IdleStateEntered(void* sender, void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().IdleStateEntered( + *reinterpret_cast(&sender), + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InertiaStateEntered(void* sender, void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaStateEntered( + *reinterpret_cast(&sender), + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InteractingStateEntered(void* sender, + void* args) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InteractingStateEntered( + *reinterpret_cast(&sender), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerInteractingStateEnteredArgs const*>(&args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RequestIgnored(void* sender, void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().RequestIgnored( + *reinterpret_cast(&sender), + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ValuesChanged(void* sender, void* args) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ValuesChanged( + *reinterpret_cast(&sender), + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RequestId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Interactions::IInteractionTrackerStatics> + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithOwner(void* compositor, void* owner, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CreateWithOwner( + *reinterpret_cast( + &compositor), + *reinterpret_cast(&owner))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetBindingMode(void* boundTracker1, void* boundTracker2, + uint32_t axisMode) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetBindingMode( + *reinterpret_cast(&boundTracker1), + *reinterpret_cast(&boundTracker2), + *reinterpret_cast(&axisMode)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBindingMode(void* boundTracker1, void* boundTracker2, + uint32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetBindingMode( + *reinterpret_cast(&boundTracker1), + *reinterpret_cast(&boundTracker2))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Condition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Condition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Condition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Condition( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ExpressionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalMotion(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Vector2NaturalMotionAnimation>( + this->shim().NaturalMotion()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NaturalMotion(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NaturalMotion( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Interactions:: + InteractionTrackerVector2InertiaNaturalMotion>(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Interactions::IVisualInteractionSource> + : produce_base { + int32_t __stdcall get_IsPositionXRailsEnabled(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPositionXRailsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsPositionXRailsEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsPositionXRailsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPositionYRailsEnabled(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPositionYRailsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsPositionYRailsEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsPositionYRailsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationRedirectionMode( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationRedirectionMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ManipulationRedirectionMode( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationRedirectionMode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionXChainingMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionXChainingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionXChainingMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionXChainingMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionXSourceMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Interactions::InteractionSourceMode>( + this->shim().PositionXSourceMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionXSourceMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionXSourceMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionYChainingMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionYChainingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionYChainingMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionYChainingMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionYSourceMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Interactions::InteractionSourceMode>( + this->shim().PositionYSourceMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PositionYSourceMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PositionYSourceMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleChainingMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleChainingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleChainingMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleChainingMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleSourceMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Interactions::InteractionSourceMode>( + this->shim().ScaleSourceMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleSourceMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleSourceMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryRedirectForManipulation( + void* pointerPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TryRedirectForManipulation( + *reinterpret_cast( + &pointerPoint)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Interactions::IVisualInteractionSource2> + : produce_base { + int32_t __stdcall get_DeltaPosition( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DeltaPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DeltaScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DeltaScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionVelocity( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionVelocity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleVelocity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleVelocity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureCenterPointXModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureCenterPointXModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureCenterPointYModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureCenterPointYModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureDeltaPositionXModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureDeltaPositionXModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureDeltaPositionYModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureDeltaPositionYModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConfigureDeltaScaleModifiers( + void* conditionalValues) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConfigureDeltaScaleModifiers( + *reinterpret_cast const*>(&conditionalValues)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Interactions::IVisualInteractionSource3> + : produce_base { + int32_t __stdcall get_PointerWheelConfig(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerWheelConfig()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* source, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Create( + *reinterpret_cast( + &source))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateFromIVisualElement(void* source, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateFromIVisualElement( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::IVisualElement const*>( + &source))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::Interactions { + constexpr auto operator|(InteractionBindingAxisModes const left, + InteractionBindingAxisModes const right) noexcept { + return static_cast( + impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=(InteractionBindingAxisModes& left, + InteractionBindingAxisModes const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(InteractionBindingAxisModes const left, + InteractionBindingAxisModes const right) noexcept { + return static_cast( + impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=(InteractionBindingAxisModes& left, + InteractionBindingAxisModes const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(InteractionBindingAxisModes const value) noexcept { + return static_cast( + ~impl::to_underlying_type(value)); + } + constexpr auto operator^(InteractionBindingAxisModes const left, + InteractionBindingAxisModes const right) noexcept { + return static_cast( + impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=(InteractionBindingAxisModes& left, + InteractionBindingAxisModes const right) noexcept { + left = left ^ right; + return left; + } + inline auto CompositionConditionalValue::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ICompositionConditionalValueStatics const& f) { + return f.Create(compositor); + }); + } + inline auto InteractionTracker::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](IInteractionTrackerStatics const& f) { + return f.Create(compositor); + }); + } + inline auto InteractionTracker::CreateWithOwner( + winrt::Microsoft::UI::Composition::Compositor const& compositor, + winrt::Microsoft::UI::Composition::Interactions:: + IInteractionTrackerOwner const& owner) { + return impl::call_factory( + [&](IInteractionTrackerStatics const& f) { + return f.CreateWithOwner(compositor, owner); + }); + } + inline auto InteractionTracker::SetBindingMode( + winrt::Microsoft::UI::Composition::Interactions::InteractionTracker const& + boundTracker1, + winrt::Microsoft::UI::Composition::Interactions::InteractionTracker const& + boundTracker2, + winrt::Microsoft::UI::Composition::Interactions:: + InteractionBindingAxisModes const& axisMode) { + impl::call_factory( + [&](IInteractionTrackerStatics2 const& f) { + return f.SetBindingMode(boundTracker1, boundTracker2, axisMode); + }); + } + inline auto InteractionTracker::GetBindingMode( + winrt::Microsoft::UI::Composition::Interactions::InteractionTracker const& + boundTracker1, + winrt::Microsoft::UI::Composition::Interactions::InteractionTracker const& + boundTracker2) { + return impl::call_factory( + [&](IInteractionTrackerStatics2 const& f) { + return f.GetBindingMode(boundTracker1, boundTracker2); + }); + } + inline auto InteractionTrackerInertiaMotion::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](IInteractionTrackerInertiaMotionStatics const& f) { + return f.Create(compositor); + }); + } + inline auto InteractionTrackerInertiaNaturalMotion::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](IInteractionTrackerInertiaNaturalMotionStatics const& f) { + return f.Create(compositor); + }); + } + inline auto InteractionTrackerInertiaRestingValue::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](IInteractionTrackerInertiaRestingValueStatics const& f) { + return f.Create(compositor); + }); + } + inline auto InteractionTrackerVector2InertiaNaturalMotion::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory< + InteractionTrackerVector2InertiaNaturalMotion, + IInteractionTrackerVector2InertiaNaturalMotionStatics>( + [&](IInteractionTrackerVector2InertiaNaturalMotionStatics const& f) { + return f.Create(compositor); + }); + } + inline auto VisualInteractionSource::Create( + winrt::Microsoft::UI::Composition::Visual const& source) { + return impl::call_factory( + [&](IVisualInteractionSourceStatics const& f) { + return f.Create(source); + }); + } + inline auto VisualInteractionSource::CreateFromIVisualElement( + winrt::Microsoft::UI::Composition::IVisualElement const& source) { + return impl::call_factory( + [&](IVisualInteractionSourceStatics2 const& f) { + return f.CreateFromIVisualElement(source); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker3> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker4> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTracker5> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTrackerOwner> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IInteractionTrackerStatics> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IVisualInteractionSource> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IVisualInteractionSource2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::IVisualInteractionSource3> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Interactions::VisualInteractionSource> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Scenes.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Scenes.h new file mode 100644 index 00000000..824c00e0 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.Scenes.h @@ -0,0 +1,2911 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_Scenes_H +#define WINRT_Microsoft_UI_Composition_Scenes_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Composition.h" +#include "winrt/impl/Microsoft.Graphics.DirectX.2.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Composition.Scenes.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneBoundingBox::Center() + const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneBoundingBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneBoundingBox::Extents() + const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneBoundingBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Extents(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Extents(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneBoundingBox::Max() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneBoundingBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Max(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Max(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneBoundingBox::Min() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneBoundingBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Min(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Min(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneBoundingBox::Size() + const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneBoundingBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneComponent::ComponentType() + const { + winrt::Microsoft::UI::Composition::Scenes::SceneComponentType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneComponent, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ComponentType(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Scenes::ISceneComponent>**)this; + check_hresult( + _winrt_abi_type->get_ComponentType(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMesh::Bounds() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMesh>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMesh, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounds(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounds(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneBoundingBox{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMesh::PrimitiveTopology() + const { + winrt::Microsoft::Graphics::DirectX::DirectXPrimitiveTopology value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMesh>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMesh, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimitiveTopology( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimitiveTopology( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMesh::PrimitiveTopology( + winrt::Microsoft::Graphics::DirectX::DirectXPrimitiveTopology const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMesh>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMesh, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PrimitiveTopology(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PrimitiveTopology(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMesh::FillMeshAttribute( + winrt::Microsoft::UI::Composition::Scenes::SceneAttributeSemantic const& + semantic, + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const& format, + winrt::Windows::Foundation::MemoryBuffer const& memory) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMesh>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMesh, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FillMeshAttribute( + static_cast(semantic), static_cast(format), + *(void**)(&memory))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FillMeshAttribute( + static_cast(semantic), static_cast(format), + *(void**)(&memory))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshRendererComponent< + D>::Material() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Material(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Material(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMaterial{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshRendererComponent< + D>::Material(winrt::Microsoft::UI::Composition::Scenes::SceneMaterial const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Material(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Material(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshRendererComponent< + D>::Mesh() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Mesh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Mesh(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMesh{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshRendererComponent< + D>::Mesh(winrt::Microsoft::UI::Composition::Scenes::SceneMesh const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mesh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Mesh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshRendererComponent< + D>::UVMappings() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UVMappings(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UVMappings(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes:: + SceneMeshMaterialAttributeMap{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshRendererComponentStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMeshRendererComponent{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMeshStatics::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMesh{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::BaseColorInput() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseColorInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseColorInput(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::BaseColorInput(winrt::Microsoft::UI::Composition::Scenes:: + SceneMaterialInput const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseColorInput(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseColorInput(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::BaseColorFactor() const { + winrt::Windows::Foundation::Numerics::float4 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseColorFactor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseColorFactor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::BaseColorFactor(winrt::Windows::Foundation::Numerics::float4 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseColorFactor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseColorFactor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::MetallicFactor() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MetallicFactor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MetallicFactor(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::MetallicFactor(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MetallicFactor(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MetallicFactor(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::MetallicRoughnessInput() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MetallicRoughnessInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MetallicRoughnessInput(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::MetallicRoughnessInput(winrt::Microsoft::UI::Composition::Scenes:: + SceneMaterialInput const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_MetallicRoughnessInput(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_MetallicRoughnessInput(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::RoughnessFactor() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RoughnessFactor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RoughnessFactor(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterial< + D>::RoughnessFactor(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RoughnessFactor(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RoughnessFactor(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneMetallicRoughnessMaterialStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::Scenes:: + ISceneMetallicRoughnessMaterialStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes:: + SceneMetallicRoughnessMaterial{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::Orientation() const { + winrt::Windows::Foundation::Numerics::quaternion value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::Orientation(winrt::Windows::Foundation::Numerics::quaternion const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::RotationAngle() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::RotationAngle(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::RotationAngleInDegrees() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::RotationAngleInDegrees(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::RotationAxis() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAxis(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAxis(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::RotationAxis(winrt::Windows::Foundation::Numerics::float3 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAxis(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAxis(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform::Scale() + const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform::Scale( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::Translation() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Translation(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Translation(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneModelTransform< + D>::Translation(winrt::Windows::Foundation::Numerics::float3 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Translation(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Translation(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneNode::Children() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNode>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneNode, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneNodeCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneNode::Components() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNode>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneNode, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Components(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Components(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneComponentCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneNode::Parent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNode>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneNode, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneNode{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneNode::Transform() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNode>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneNode, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transform(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneModelTransform{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneNode:: + FindFirstComponentOfType( + winrt::Microsoft::UI::Composition::Scenes::SceneComponentType const& + value) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNode>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneNode, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindFirstComponentOfType( + static_cast(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindFirstComponentOfType( + static_cast(value), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneComponent{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneNodeStatics::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneNodeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneNode{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::AlphaCutoff() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlphaCutoff(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlphaCutoff(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::AlphaCutoff( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlphaCutoff(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlphaCutoff(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::AlphaMode() + const { + winrt::Microsoft::UI::Composition::Scenes::SceneAlphaMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AlphaMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AlphaMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::AlphaMode( + winrt::Microsoft::UI::Composition::Scenes::SceneAlphaMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlphaMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlphaMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::EmissiveInput() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EmissiveInput(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EmissiveInput(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial:: + EmissiveInput( + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EmissiveInput(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EmissiveInput(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::EmissiveFactor() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EmissiveFactor(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EmissiveFactor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::EmissiveFactor(winrt::Windows::Foundation::Numerics::float3 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EmissiveFactor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EmissiveFactor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::IsDoubleSided() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDoubleSided(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDoubleSided(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::IsDoubleSided(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDoubleSided(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDoubleSided(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::NormalInput() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NormalInput(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NormalInput(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::NormalInput( + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NormalInput(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NormalInput(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::NormalScale() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NormalScale(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NormalScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial::NormalScale( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NormalScale(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NormalScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::OcclusionInput() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OcclusionInput(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OcclusionInput(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial:: + OcclusionInput( + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OcclusionInput(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OcclusionInput(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::OcclusionStrength() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OcclusionStrength(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OcclusionStrength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_IScenePbrMaterial< + D>::OcclusionStrength(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OcclusionStrength(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OcclusionStrength(value)); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput< + D>::BitmapInterpolationMode() const { + winrt::Microsoft::UI::Composition::CompositionBitmapInterpolationMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BitmapInterpolationMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BitmapInterpolationMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput< + D>::BitmapInterpolationMode(winrt::Microsoft::UI::Composition:: + CompositionBitmapInterpolationMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BitmapInterpolationMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BitmapInterpolationMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput< + D>::Surface() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Surface(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Surface(&value)); + } + return winrt::Microsoft::UI::Composition::ICompositionSurface{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput< + D>::Surface(winrt::Microsoft::UI::Composition::ICompositionSurface const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Surface(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Surface(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput< + D>::WrappingUMode() const { + winrt::Microsoft::UI::Composition::Scenes::SceneWrappingMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WrappingUMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WrappingUMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput:: + WrappingUMode( + winrt::Microsoft::UI::Composition::Scenes::SceneWrappingMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_WrappingUMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_WrappingUMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput< + D>::WrappingVMode() const { + winrt::Microsoft::UI::Composition::Scenes::SceneWrappingMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WrappingVMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WrappingVMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInput:: + WrappingVMode( + winrt::Microsoft::UI::Composition::Scenes::SceneWrappingMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_WrappingVMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_WrappingVMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneSurfaceMaterialInputStatics< + D>::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneSurfaceMaterialInput{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneVisual::Root() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Root(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Root(&value)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneNode{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneVisual::Root( + winrt::Microsoft::UI::Composition::Scenes::SceneNode const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Root(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Root(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_Scenes_ISceneVisualStatics::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::Scenes::ISceneVisualStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&compositor), &result)); + } + return winrt::Microsoft::UI::Composition::Scenes::SceneVisual{ + result, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneBoundingBox> { + int32_t __stdcall get_Center( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Center()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Extents( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Extents()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Max( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Max()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Min( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Min()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ComponentType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneComponentType>( + this->shim().ComponentType()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneComponentCollection> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneComponentFactory> + : produce_base< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneComponentFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMaterialFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMaterialInput> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMaterialInputFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Bounds(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneBoundingBox>( + this->shim().Bounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PrimitiveTopology(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::Graphics::DirectX::DirectXPrimitiveTopology>( + this->shim().PrimitiveTopology()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PrimitiveTopology(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PrimitiveTopology( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FillMeshAttribute(int32_t semantic, int32_t format, + void* memory) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillMeshAttribute( + *reinterpret_cast(&semantic), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const*>( + &format), + *reinterpret_cast( + &memory)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshMaterialAttributeMap> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent> + : produce_base { + int32_t __stdcall get_Material(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Material()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Material(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Material( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Scenes::SceneMaterial const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Mesh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Mesh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Mesh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Mesh( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Scenes::SceneMesh const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UVMappings(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UVMappings()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneMeshStatics> { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneMetallicRoughnessMaterial> + : produce_base { + int32_t __stdcall get_BaseColorInput(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput>( + this->shim().BaseColorInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseColorInput(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseColorInput( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseColorFactor( + winrt::Windows::Foundation::Numerics::float4* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BaseColorFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseColorFactor( + winrt::Windows::Foundation::Numerics::float4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseColorFactor( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MetallicFactor(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MetallicFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MetallicFactor(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MetallicFactor(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MetallicRoughnessInput(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput>( + this->shim().MetallicRoughnessInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MetallicRoughnessInput(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MetallicRoughnessInput( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RoughnessFactor(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RoughnessFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RoughnessFactor(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RoughnessFactor(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Scenes:: + SceneMetallicRoughnessMaterial>(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneModelTransform> { + int32_t __stdcall get_Orientation( + winrt::Windows::Foundation::Numerics::quaternion* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Orientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Orientation( + winrt::Windows::Foundation::Numerics::quaternion value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngleInDegrees(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAxis( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationAxis()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAxis( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAxis( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Translation( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Translation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Translation( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Translation( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Children(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneNodeCollection>( + this->shim().Children()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Components(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneComponentCollection>( + this->shim().Components()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Transform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneModelTransform>( + this->shim().Transform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindFirstComponentOfType(int32_t value, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().FindFirstComponentOfType( + *reinterpret_cast(&value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNodeCollection> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneNodeStatics> { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneObjectFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterial> { + int32_t __stdcall get_AlphaCutoff(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlphaCutoff()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AlphaCutoff(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AlphaCutoff(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlphaMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AlphaMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AlphaMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AlphaMode( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Scenes::SceneAlphaMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EmissiveInput(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput>( + this->shim().EmissiveInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EmissiveInput(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EmissiveInput( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EmissiveFactor( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EmissiveFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EmissiveFactor( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EmissiveFactor( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDoubleSided(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDoubleSided()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsDoubleSided(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsDoubleSided(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NormalInput(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput>( + this->shim().NormalInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NormalInput(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NormalInput( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NormalScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NormalScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NormalScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NormalScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OcclusionInput(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneMaterialInput>( + this->shim().OcclusionInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OcclusionInput(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OcclusionInput( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OcclusionStrength(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OcclusionStrength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OcclusionStrength(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OcclusionStrength(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterialFactory> + : produce_base< + D, + winrt::Microsoft::UI::Composition::Scenes::IScenePbrMaterialFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneRendererComponent> + : produce_base< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneRendererComponent> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::Scenes::ISceneRendererComponentFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput> + : produce_base { + int32_t __stdcall get_BitmapInterpolationMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionBitmapInterpolationMode>( + this->shim().BitmapInterpolationMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BitmapInterpolationMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().BitmapInterpolationMode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Surface(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Surface()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Surface(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Surface( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ICompositionSurface const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WrappingUMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneWrappingMode>( + this->shim().WrappingUMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_WrappingUMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().WrappingUMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WrappingVMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::Scenes::SceneWrappingMode>( + this->shim().WrappingVMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_WrappingVMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().WrappingVMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Create( + *reinterpret_cast( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Root(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Root()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Root(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Root( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Scenes::SceneNode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::Scenes::ISceneVisualStatics> { + int32_t __stdcall Create(void* compositor, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::Scenes { + inline auto SceneMesh::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ISceneMeshStatics const& f) { return f.Create(compositor); }); + } + inline auto SceneMeshRendererComponent::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ISceneMeshRendererComponentStatics const& f) { + return f.Create(compositor); + }); + } + inline auto SceneMetallicRoughnessMaterial::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ISceneMetallicRoughnessMaterialStatics const& f) { + return f.Create(compositor); + }); + } + inline auto SceneNode::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ISceneNodeStatics const& f) { return f.Create(compositor); }); + } + inline auto SceneSurfaceMaterialInput::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ISceneSurfaceMaterialInputStatics const& f) { + return f.Create(compositor); + }); + } + inline auto SceneVisual::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](ISceneVisualStatics const& f) { return f.Create(compositor); }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneComponentCollection> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneMaterialInputFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshMaterialAttributeMap> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneMeshRendererComponent> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneMetallicRoughnessMaterial> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneRendererComponentFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::ISceneSurfaceMaterialInput> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::SceneMeshMaterialAttributeMap> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::SceneMeshRendererComponent> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::SceneMetallicRoughnessMaterial> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::Scenes::SceneSurfaceMaterialInput> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.SystemBackdrops.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.SystemBackdrops.h new file mode 100644 index 00000000..f0cc82e9 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.SystemBackdrops.h @@ -0,0 +1,1583 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_SystemBackdrops_H +#define WINRT_Microsoft_UI_Composition_SystemBackdrops_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Composition.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Composition.SystemBackdrops.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.UI.2.h" +#include "winrt/impl/Windows.UI.Composition.2.h" +#include "winrt/impl/Windows.UI.Core.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::FallbackColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::FallbackColor(winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::LuminosityOpacity() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::LuminosityOpacity(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::TintColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::TintColor(winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::TintOpacity() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController< + D>::TintOpacity(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TintOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TintOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController2< + D>::ResetProperties() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ResetProperties()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ResetProperties()); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController3< + D>::Kind() const { + winrt::Microsoft::UI::Composition::SystemBackdrops::DesktopAcrylicKind + value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicController3< + D>::Kind(winrt::Microsoft::UI::Composition::SystemBackdrops:: + DesktopAcrylicKind const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicController3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IDesktopAcrylicControllerStatics< + D>::IsSupported() const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicControllerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + IDesktopAcrylicControllerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsSupported(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsSupported(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::FallbackColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::FallbackColor(winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::LuminosityOpacity() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LuminosityOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::LuminosityOpacity(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LuminosityOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::TintColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::TintColor(winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::TintOpacity() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController< + D>::TintOpacity(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TintOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TintOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2< + D>::Kind() const { + winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2::Kind( + winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaController2< + D>::ResetProperties() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ResetProperties()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ResetProperties()); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_IMicaControllerStatics< + D>::IsSupported() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsSupported(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsSupported(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::HighContrastBackgroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HighContrastBackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HighContrastBackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>:: + HighContrastBackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_HighContrastBackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_HighContrastBackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::IsHighContrast() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHighContrast(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHighContrast(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::IsHighContrast(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHighContrast(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHighContrast(value)); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::IsInputActive() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInputActive(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInputActive(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::IsInputActive(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsInputActive(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsInputActive(value)); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::Theme() const { + winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropTheme + value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Theme(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Theme(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropConfiguration< + D>::Theme(winrt::Microsoft::UI::Composition::SystemBackdrops:: + SystemBackdropTheme const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropConfiguration, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Theme(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Theme(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropController< + D>::SetTarget(winrt::Microsoft::UI::WindowId const& windowId, + winrt::Windows::UI::Composition::CompositionTarget const& + desktopWindowTarget) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTargetWithWindowId( + impl::bind_in(windowId), *(void**)(&desktopWindowTarget), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTargetWithWindowId( + impl::bind_in(windowId), *(void**)(&desktopWindowTarget), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropController< + D>::SetTarget(winrt::Windows::UI::Core::CoreWindow const& coreWindow, + winrt::Windows::UI::Composition::CompositionTarget const& + compositionTarget) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTargetWithCoreWindow( + *(void**)(&coreWindow), *(void**)(&compositionTarget), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTargetWithCoreWindow( + *(void**)(&coreWindow), *(void**)(&compositionTarget), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>::State() const { + winrt::Microsoft::UI::Composition::SystemBackdrops::SystemBackdropState + value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>::AddSystemBackdropTarget(winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& + systemBackdropTarget) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddSystemBackdropTarget( + *(void**)(&systemBackdropTarget), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddSystemBackdropTarget( + *(void**)(&systemBackdropTarget), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>::RemoveAllSystemBackdropTargets() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAllSystemBackdropTargets()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAllSystemBackdropTargets()); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>::RemoveSystemBackdropTarget(winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& + systemBackdropTarget) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveSystemBackdropTarget( + *(void**)(&systemBackdropTarget), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveSystemBackdropTarget( + *(void**)(&systemBackdropTarget), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>:: + SetSystemBackdropConfiguration( + winrt::Microsoft::UI::Composition::SystemBackdrops:: + SystemBackdropConfiguration const& configuration) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetSystemBackdropConfiguration( + *(void**)(&configuration))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetSystemBackdropConfiguration( + *(void**)(&configuration))); + } +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>:: + StateChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>::StateChanged(auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + winrt::Windows::Foundation::IInspectable> const& + handler) const { + return impl::make_event_revoker( + this, StateChanged(handler)); +} +template +auto consume_Microsoft_UI_Composition_SystemBackdrops_ISystemBackdropControllerWithTargets< + D>::StateChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::SystemBackdrops:: + ISystemBackdropControllerWithTargets, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FallbackColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().FallbackColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FallbackColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LuminosityOpacity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LuminosityOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LuminosityOpacity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LuminosityOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TintColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintOpacity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TintOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintOpacity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall ResetProperties() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResetProperties(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Kind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::SystemBackdrops::DesktopAcrylicKind>( + this->shim().Kind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Kind(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Kind( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall IsSupported(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsSupported()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController> + : produce_base< + D, + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController> { + int32_t __stdcall get_FallbackColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().FallbackColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FallbackColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LuminosityOpacity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LuminosityOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LuminosityOpacity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LuminosityOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TintColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintOpacity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TintOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintOpacity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2> + : produce_base { + int32_t __stdcall get_Kind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind>( + this->shim().Kind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Kind(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Kind( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ResetProperties() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResetProperties(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaControllerStatics> + : produce_base { + int32_t __stdcall IsSupported(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsSupported()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HighContrastBackgroundColor(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().HighContrastBackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HighContrastBackgroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HighContrastBackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHighContrast(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHighContrast()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsHighContrast(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsHighContrast(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInputActive(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInputActive()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsInputActive(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsInputActive(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Theme(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Theme()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Theme(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Theme( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall SetTargetWithWindowId( + struct struct_Microsoft_UI_WindowId windowId, void* desktopWindowTarget, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SetTarget( + *reinterpret_cast(&windowId), + *reinterpret_cast< + winrt::Windows::UI::Composition::CompositionTarget const*>( + &desktopWindowTarget))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTargetWithCoreWindow(void* coreWindow, + void* compositionTarget, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SetTarget( + *reinterpret_cast( + &coreWindow), + *reinterpret_cast< + winrt::Windows::UI::Composition::CompositionTarget const*>( + &compositionTarget))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_State(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddSystemBackdropTarget(void* systemBackdropTarget, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AddSystemBackdropTarget( + *reinterpret_cast( + &systemBackdropTarget))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAllSystemBackdropTargets() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAllSystemBackdropTargets(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveSystemBackdropTarget(void* systemBackdropTarget, + bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().RemoveSystemBackdropTarget( + *reinterpret_cast( + &systemBackdropTarget))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetSystemBackdropConfiguration( + void* configuration) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetSystemBackdropConfiguration( + *reinterpret_cast( + &configuration)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_StateChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().StateChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_StateChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().StateChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition::SystemBackdrops { + inline DesktopAcrylicController::DesktopAcrylicController() + : DesktopAcrylicController( + impl::call_factory_cast< + DesktopAcrylicController (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DesktopAcrylicController>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto DesktopAcrylicController::IsSupported() { + return impl::call_factory_cast< + bool (*)(IDesktopAcrylicControllerStatics const&), + DesktopAcrylicController, IDesktopAcrylicControllerStatics>( + [](IDesktopAcrylicControllerStatics const& f) { + return f.IsSupported(); + }); + } + inline MicaController::MicaController() + : MicaController( + impl::call_factory_cast< + MicaController (*)( + winrt::Windows::Foundation::IActivationFactory const&), + MicaController>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto MicaController::IsSupported() { + return impl::call_factory_cast( + [](IMicaControllerStatics const& f) { return f.IsSupported(); }); + } + inline SystemBackdropConfiguration::SystemBackdropConfiguration() + : SystemBackdropConfiguration( + impl::call_factory_cast< + SystemBackdropConfiguration (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SystemBackdropConfiguration>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaController2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::SystemBackdrops::IMicaControllerStatics> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.h new file mode 100644 index 00000000..3a4be225 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Composition.h @@ -0,0 +1,25100 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Composition_H +#define WINRT_Microsoft_UI_Composition_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.Graphics.DirectX.2.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +#include "winrt/impl/Windows.Graphics.2.h" +#include "winrt/impl/Windows.Graphics.Effects.2.h" +#include "winrt/impl/Windows.UI.2.h" +#include "winrt/impl/Windows.UI.Composition.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Composition_IAmbientLight::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IAmbientLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAmbientLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAmbientLight::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IAmbientLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAmbientLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IAmbientLight2::Intensity() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IAmbientLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAmbientLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Intensity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Intensity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAmbientLight2::Intensity( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IAmbientLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAmbientLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Intensity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Intensity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::PlaybackRate() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaybackRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaybackRate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::PlaybackRate( + float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaybackRate(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaybackRate(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::Progress() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Progress(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Progress(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::Progress( + float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Progress(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Progress(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationController< + D>::ProgressBehavior() const { + winrt::Microsoft::UI::Composition::AnimationControllerProgressBehavior + value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProgressBehavior( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProgressBehavior( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::ProgressBehavior( + winrt::Microsoft::UI::Composition:: + AnimationControllerProgressBehavior const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ProgressBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ProgressBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::Pause() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Pause()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Pause()); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationController::Resume() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IAnimationController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resume()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Resume()); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationControllerStatics< + D>::MaxPlaybackRate() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationControllerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxPlaybackRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxPlaybackRate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAnimationControllerStatics< + D>::MinPlaybackRate() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationControllerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinPlaybackRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinPlaybackRate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAnimationObject::PopulatePropertyInfo( + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const& + propertyInfo) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IAnimationObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationObject, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PopulatePropertyInfo( + *(void**)(&propertyName), *(void**)(&propertyInfo))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PopulatePropertyInfo( + *(void**)(&propertyName), *(void**)(&propertyInfo))); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationPropertyInfo::AccessMode() + const { + winrt::Microsoft::UI::Composition::AnimationPropertyAccessMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationPropertyInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AccessMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_AccessMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IAnimationPropertyInfo::AccessMode( + winrt::Microsoft::UI::Composition::AnimationPropertyAccessMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationPropertyInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AccessMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_AccessMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IAnimationPropertyInfo2< + D>::GetResolvedCompositionObject() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationPropertyInfo2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetResolvedCompositionObject(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IAnimationPropertyInfo2>**)this; + check_hresult(_winrt_abi_type->GetResolvedCompositionObject(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionObject{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IAnimationPropertyInfo2< + D>::GetResolvedCompositionObjectProperty() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IAnimationPropertyInfo2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetResolvedCompositionObjectProperty(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IAnimationPropertyInfo2>**)this; + check_hresult( + _winrt_abi_type->GetResolvedCompositionObjectProperty(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IBackEasingFunction::Mode() const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IBackEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBackEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBackEasingFunction::Amplitude() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IBackEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBackEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Amplitude(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Amplitude(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBooleanKeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBooleanKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->InsertKeyFrame(normalizedProgressKey, value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->InsertKeyFrame(normalizedProgressKey, value)); + } +} +template +auto consume_Microsoft_UI_Composition_IBounceEasingFunction::Mode() const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IBounceEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceEasingFunction::Bounces() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IBounceEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounces(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounces(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceEasingFunction::Bounciness() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IBounceEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounciness(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounciness(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceScalarNaturalMotionAnimation< + D>::Acceleration() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Acceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Acceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceScalarNaturalMotionAnimation< + D>::Acceleration(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Acceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Acceleration(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IBounceScalarNaturalMotionAnimation< + D>::Restitution() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Restitution(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Restitution(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceScalarNaturalMotionAnimation< + D>::Restitution(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Restitution(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Restitution(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IBounceVector2NaturalMotionAnimation< + D>::Acceleration() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Acceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Acceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceVector2NaturalMotionAnimation< + D>::Acceleration(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Acceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Acceleration(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IBounceVector2NaturalMotionAnimation< + D>::Restitution() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Restitution(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Restitution(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceVector2NaturalMotionAnimation< + D>::Restitution(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Restitution(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Restitution(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IBounceVector3NaturalMotionAnimation< + D>::Acceleration() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Acceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Acceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceVector3NaturalMotionAnimation< + D>::Acceleration(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Acceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Acceleration(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IBounceVector3NaturalMotionAnimation< + D>::Restitution() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Restitution(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Restitution(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IBounceVector3NaturalMotionAnimation< + D>::Restitution(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IBounceVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Restitution(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Restitution(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICircleEasingFunction::Mode() const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICircleEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICircleEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IColorKeyFrameAnimation< + D>::InterpolationColorSpace() const { + winrt::Microsoft::UI::Composition::CompositionColorSpace value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InterpolationColorSpace( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation>**)this; + check_hresult(_winrt_abi_type->get_InterpolationColorSpace( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IColorKeyFrameAnimation:: + InterpolationColorSpace( + winrt::Microsoft::UI::Composition::CompositionColorSpace const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InterpolationColorSpace( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation>**)this; + check_hresult(_winrt_abi_type->put_InterpolationColorSpace( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IColorKeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation>**)this; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IColorKeyFrameAnimation:: + InsertKeyFrame( + float normalizedProgressKey, winrt::Windows::UI::Color const& value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IColorKeyFrameAnimation>**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation< + D>::ClearAllParameters() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearAllParameters()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->ClearAllParameters()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation::ClearParameter( + param::hstring const& key) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearParameter(*(void**)(&key))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->ClearParameter(*(void**)(&key))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation< + D>::SetColorParameter(param::hstring const& key, + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetColorParameter(*(void**)(&key), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetColorParameter(*(void**)(&key), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation:: + SetMatrix3x2Parameter( + param::hstring const& key, + winrt::Windows::Foundation::Numerics::float3x2 const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMatrix3x2Parameter(*(void**)(&key), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetMatrix3x2Parameter(*(void**)(&key), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation:: + SetMatrix4x4Parameter( + param::hstring const& key, + winrt::Windows::Foundation::Numerics::float4x4 const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMatrix4x4Parameter(*(void**)(&key), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetMatrix4x4Parameter(*(void**)(&key), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation:: + SetQuaternionParameter( + param::hstring const& key, + winrt::Windows::Foundation::Numerics::quaternion const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetQuaternionParameter( + *(void**)(&key), impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetQuaternionParameter( + *(void**)(&key), impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation:: + SetReferenceParameter( + param::hstring const& key, + winrt::Microsoft::UI::Composition::CompositionObject const& + compositionObject) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetReferenceParameter( + *(void**)(&key), *(void**)(&compositionObject))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetReferenceParameter( + *(void**)(&key), *(void**)(&compositionObject))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation< + D>::SetScalarParameter(param::hstring const& key, float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetScalarParameter(*(void**)(&key), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetScalarParameter(*(void**)(&key), value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation< + D>::SetVector2Parameter(param::hstring const& key, + winrt::Windows::Foundation::Numerics::float2 const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVector2Parameter(*(void**)(&key), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetVector2Parameter(*(void**)(&key), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation< + D>::SetVector3Parameter(param::hstring const& key, + winrt::Windows::Foundation::Numerics::float3 const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVector3Parameter(*(void**)(&key), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetVector3Parameter(*(void**)(&key), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation< + D>::SetVector4Parameter(param::hstring const& key, + winrt::Windows::Foundation::Numerics::float4 const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVector4Parameter(*(void**)(&key), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetVector4Parameter(*(void**)(&key), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation2< + D>::SetBooleanParameter(param::hstring const& key, bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetBooleanParameter(*(void**)(&key), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetBooleanParameter(*(void**)(&key), value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation2::Target() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Target(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation2::Target( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation3< + D>::InitialValueExpressions() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialValueExpressions(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialValueExpressions(&value)); + } + return winrt::Microsoft::UI::Composition::InitialValueExpressionCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimation4:: + SetExpressionReferenceParameter( + param::hstring const& parameterName, + winrt::Microsoft::UI::Composition::IAnimationObject const& source) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimation4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetExpressionReferenceParameter( + *(void**)(¶meterName), *(void**)(&source))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetExpressionReferenceParameter( + *(void**)(¶meterName), *(void**)(&source))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimationGroup::Count() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimationGroup, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimationGroup::Add( + winrt::Microsoft::UI::Composition::CompositionAnimation const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimationGroup, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Add(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Add(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimationGroup::Remove( + winrt::Microsoft::UI::Composition::CompositionAnimation const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimationGroup, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Remove(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionAnimationGroup::RemoveAll() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionAnimationGroup, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionApiInformationStatics< + D>::ApiVersion() const { + uint64_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionApiInformationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ApiVersion(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ApiVersion(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCapabilities< + D>::AreEffectsSupported() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCapabilities, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AreEffectsSupported(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCapabilities>**)this; + check_hresult(_winrt_abi_type->AreEffectsSupported(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCapabilities< + D>::AreEffectsFast() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCapabilities, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AreEffectsFast(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCapabilities>**)this; + check_hresult(_winrt_abi_type->AreEffectsFast(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCapabilities::Changed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::CompositionCapabilities, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCapabilities, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCapabilities>**)this; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCapabilities::Changed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::CompositionCapabilities, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Changed(handler)); +} +template +auto consume_Microsoft_UI_Composition_ICompositionCapabilities::Changed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCapabilities, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCapabilities>**)this; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::AnchorPoint() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::CenterPoint() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::CenterPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::Offset() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::Offset( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::RotationAngle() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::RotationAngle( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2< + D>::RotationAngleInDegrees() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2< + D>::RotationAngleInDegrees(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::Scale() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::Scale( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::TransformMatrix() + const { + winrt::Windows::Foundation::Numerics::float3x2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionClip2::TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionClip2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionClip2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionColorBrush::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionColorBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionColorBrush::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionColorBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionColorGradientStop::Color() + const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionColorGradientStop, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionColorGradientStop::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionColorGradientStop, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionColorGradientStop::Offset() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionColorGradientStop, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionColorGradientStop::Offset( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionColorGradientStop, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionCommitBatch::IsActive() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch>**)this; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCommitBatch::IsEnded() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnded(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch>**)this; + check_hresult(_winrt_abi_type->get_IsEnded(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCommitBatch::Completed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Composition:: + CompositionBatchCompletedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch>**)this; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Composition_ICompositionCommitBatch::Completed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Composition:: + CompositionBatchCompletedEventArgs> const& handler) const { + return impl::make_event_revoker(this, + Completed(handler)); +} +template +auto consume_Microsoft_UI_Composition_ICompositionCommitBatch::Completed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionCommitBatch>**)this; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionContainerShape::Shapes() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionContainerShape, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Shapes(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Shapes(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionShapeCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface::AlphaMode() + const { + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AlphaMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AlphaMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface< + D>::PixelFormat() const { + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PixelFormat(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PixelFormat(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface::Size() + const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface2< + D>::SizeInt32() const { + winrt::Windows::Graphics::SizeInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizeInt32(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizeInt32(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface2::Resize( + winrt::Windows::Graphics::SizeInt32 const& sizePixels) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resize(impl::bind_in(sizePixels))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Resize(impl::bind_in(sizePixels))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface2::Scroll( + winrt::Windows::Graphics::PointInt32 const& offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Scroll(impl::bind_in(offset))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Scroll(impl::bind_in(offset))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface2::Scroll( + winrt::Windows::Graphics::PointInt32 const& offset, + winrt::Windows::Graphics::RectInt32 const& scrollRect) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollRect(impl::bind_in(offset), + impl::bind_in(scrollRect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollRect(impl::bind_in(offset), + impl::bind_in(scrollRect))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface2:: + ScrollWithClip(winrt::Windows::Graphics::PointInt32 const& offset, + winrt::Windows::Graphics::RectInt32 const& clipRect) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollWithClip(impl::bind_in(offset), + impl::bind_in(clipRect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollWithClip(impl::bind_in(offset), + impl::bind_in(clipRect))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionDrawingSurface2< + D>::ScrollWithClip(winrt::Windows::Graphics::PointInt32 const& offset, + winrt::Windows::Graphics::RectInt32 const& clipRect, + winrt::Windows::Graphics::RectInt32 const& scrollRect) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollRectWithClip( + impl::bind_in(offset), impl::bind_in(clipRect), + impl::bind_in(scrollRect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollRectWithClip( + impl::bind_in(offset), impl::bind_in(clipRect), + impl::bind_in(scrollRect))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateCubicBezierEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Windows::Foundation::Numerics::float2 const& controlPoint1, + winrt::Windows::Foundation::Numerics::float2 const& controlPoint2) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateCubicBezierEasingFunction( + *(void**)(&owner), impl::bind_in(controlPoint1), + impl::bind_in(controlPoint2), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateCubicBezierEasingFunction( + *(void**)(&owner), impl::bind_in(controlPoint1), + impl::bind_in(controlPoint2), &result)); + } + return winrt::Microsoft::UI::Composition::CubicBezierEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateLinearEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateLinearEasingFunction(*(void**)(&owner), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateLinearEasingFunction(*(void**)(&owner), + &result)); + } + return winrt::Microsoft::UI::Composition::LinearEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateStepEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateStepEasingFunction(*(void**)(&owner), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateStepEasingFunction(*(void**)(&owner), &result)); + } + return winrt::Microsoft::UI::Composition::StepEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateStepEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + int32_t stepCount) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateStepEasingFunctionWithStepCount( + *(void**)(&owner), stepCount, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateStepEasingFunctionWithStepCount( + *(void**)(&owner), stepCount, &result)); + } + return winrt::Microsoft::UI::Composition::StepEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateBackEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + float amplitude) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBackEasingFunction( + *(void**)(&owner), static_cast(mode), amplitude, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBackEasingFunction( + *(void**)(&owner), static_cast(mode), amplitude, &result)); + } + return winrt::Microsoft::UI::Composition::BackEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateBounceEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + int32_t bounces, float bounciness) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBounceEasingFunction( + *(void**)(&owner), static_cast(mode), bounces, bounciness, + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBounceEasingFunction( + *(void**)(&owner), static_cast(mode), bounces, bounciness, + &result)); + } + return winrt::Microsoft::UI::Composition::BounceEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateCircleEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateCircleEasingFunction( + *(void**)(&owner), static_cast(mode), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateCircleEasingFunction( + *(void**)(&owner), static_cast(mode), &result)); + } + return winrt::Microsoft::UI::Composition::CircleEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateElasticEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + int32_t oscillations, float springiness) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateElasticEasingFunction( + *(void**)(&owner), static_cast(mode), oscillations, + springiness, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateElasticEasingFunction( + *(void**)(&owner), static_cast(mode), oscillations, + springiness, &result)); + } + return winrt::Microsoft::UI::Composition::ElasticEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateExponentialEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + float exponent) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateExponentialEasingFunction( + *(void**)(&owner), static_cast(mode), exponent, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateExponentialEasingFunction( + *(void**)(&owner), static_cast(mode), exponent, &result)); + } + return winrt::Microsoft::UI::Composition::ExponentialEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreatePowerEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + float power) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreatePowerEasingFunction( + *(void**)(&owner), static_cast(mode), power, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreatePowerEasingFunction( + *(void**)(&owner), static_cast(mode), power, &result)); + } + return winrt::Microsoft::UI::Composition::PowerEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEasingFunctionStatics:: + CreateSineEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSineEasingFunction( + *(void**)(&owner), static_cast(mode), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSineEasingFunction( + *(void**)(&owner), static_cast(mode), &result)); + } + return winrt::Microsoft::UI::Composition::SineEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectBrush< + D>::GetSourceParameter(param::hstring const& name) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEffectBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetSourceParameter(*(void**)(&name), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionEffectBrush>**)this; + check_hresult( + _winrt_abi_type->GetSourceParameter(*(void**)(&name), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectBrush:: + SetSourceParameter( + param::hstring const& name, + winrt::Microsoft::UI::Composition::CompositionBrush const& source) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEffectBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetSourceParameter(*(void**)(&name), + *(void**)(&source))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionEffectBrush>**)this; + check_hresult(_winrt_abi_type->SetSourceParameter(*(void**)(&name), + *(void**)(&source))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectFactory< + D>::CreateBrush() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEffectFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBrush(&result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionEffectBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectFactory< + D>::ExtendedError() const { + winrt::hresult value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEffectFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtendedError(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtendedError(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectFactory::LoadStatus() + const { + winrt::Microsoft::UI::Composition::CompositionEffectFactoryLoadStatus value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEffectFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LoadStatus(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LoadStatus(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectSourceParameter< + D>::Name() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEffectSourceParameter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEffectSourceParameterFactory< + D>::Create(param::hstring const& name) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionEffectSourceParameterFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&name), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&name), &value)); + } + return winrt::Microsoft::UI::Composition::CompositionEffectSourceParameter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEllipseGeometry::Center() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEllipseGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEllipseGeometry::Center( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEllipseGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionEllipseGeometry::Radius() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEllipseGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Radius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Radius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionEllipseGeometry::Radius( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionEllipseGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Radius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Radius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometricClip::Geometry() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometricClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Geometry(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Geometry(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionGeometry{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometricClip::Geometry( + winrt::Microsoft::UI::Composition::CompositionGeometry const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometricClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Geometry(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Geometry(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometricClip::ViewBox() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometricClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewBox(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewBox(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionViewBox{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometricClip::ViewBox( + winrt::Microsoft::UI::Composition::CompositionViewBox const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometricClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ViewBox(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ViewBox(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometry::TrimEnd() const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TrimEnd(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TrimEnd(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometry::TrimEnd( + float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TrimEnd(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TrimEnd(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometry::TrimOffset() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TrimOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TrimOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometry::TrimOffset( + float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TrimOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TrimOffset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometry::TrimStart() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TrimStart(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TrimStart(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGeometry::TrimStart( + float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TrimStart(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TrimStart(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::AnchorPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::CenterPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::CenterPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::ColorStops() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorStops(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorStops(&value)); + } + return winrt::Microsoft::UI::Composition:: + CompositionColorGradientStopCollection{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::ExtendMode() + const { + winrt::Microsoft::UI::Composition::CompositionGradientExtendMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExtendMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExtendMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::ExtendMode( + winrt::Microsoft::UI::Composition::CompositionGradientExtendMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExtendMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExtendMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::InterpolationSpace() const { + winrt::Microsoft::UI::Composition::CompositionColorSpace value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InterpolationSpace( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InterpolationSpace( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush:: + InterpolationSpace( + winrt::Microsoft::UI::Composition::CompositionColorSpace const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_InterpolationSpace(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_InterpolationSpace(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::Offset() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::Offset( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::RotationAngle() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::RotationAngle(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::RotationAngleInDegrees() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::RotationAngleInDegrees(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::Scale() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush::Scale( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::TransformMatrix() const { + winrt::Windows::Foundation::Numerics::float3x2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush< + D>::TransformMatrix(winrt::Windows::Foundation::Numerics::float3x2 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush2< + D>::MappingMode() const { + winrt::Microsoft::UI::Composition::CompositionMappingMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_MappingMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_MappingMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGradientBrush2:: + MappingMode(winrt::Microsoft::UI::Composition::CompositionMappingMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGradientBrush2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_MappingMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_MappingMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice:: + CreateDrawingSurface( + winrt::Windows::Foundation::Size const& sizePixels, + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const& + pixelFormat, + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const& alphaMode) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateDrawingSurface( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateDrawingSurface( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionDrawingSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice:: + RenderingDeviceReplaced( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::CompositionGraphicsDevice, + winrt::Microsoft::UI::Composition:: + RenderingDeviceReplacedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_RenderingDeviceReplaced( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_RenderingDeviceReplaced( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice:: + RenderingDeviceReplaced( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Composition::CompositionGraphicsDevice, + winrt::Microsoft::UI::Composition:: + RenderingDeviceReplacedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, RenderingDeviceReplaced(handler)); +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice:: + RenderingDeviceReplaced(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RenderingDeviceReplaced(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_RenderingDeviceReplaced(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice2:: + CreateDrawingSurface2( + winrt::Windows::Graphics::SizeInt32 const& sizePixels, + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const& + pixelFormat, + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const& alphaMode) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateDrawingSurface2( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateDrawingSurface2( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionDrawingSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice2:: + CreateVirtualDrawingSurface( + winrt::Windows::Graphics::SizeInt32 const& sizePixels, + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const& + pixelFormat, + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const& alphaMode) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateVirtualDrawingSurface( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateVirtualDrawingSurface( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionVirtualDrawingSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice3:: + CreateMipmapSurface( + winrt::Windows::Graphics::SizeInt32 const& sizePixels, + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const& + pixelFormat, + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const& alphaMode) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateMipmapSurface( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateMipmapSurface( + impl::bind_in(sizePixels), static_cast(pixelFormat), + static_cast(alphaMode), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionMipmapSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice3::Trim() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Trim()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Trim()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionGraphicsDevice4:: + CaptureAsync( + winrt::Microsoft::UI::Composition::Visual const& captureVisual, + winrt::Windows::Graphics::SizeInt32 const& size, + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const& + pixelFormat, + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const& alphaMode, + float sdrBoost) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice4, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CaptureAsync( + *(void**)(&captureVisual), impl::bind_in(size), + static_cast(pixelFormat), static_cast(alphaMode), + sdrBoost, &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CaptureAsync( + *(void**)(&captureVisual), impl::bind_in(size), + static_cast(pixelFormat), static_cast(alphaMode), + sdrBoost, &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Composition::ICompositionSurface>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLight::Targets() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Targets(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Targets(&value)); + } + return winrt::Microsoft::UI::Composition::VisualUnorderedCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLight2< + D>::ExclusionsFromTargets() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExclusionsFromTargets(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExclusionsFromTargets(&value)); + } + return winrt::Microsoft::UI::Composition::VisualUnorderedCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLight3::IsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLight3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLight3::IsEnabled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLight3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionLineGeometry::Start() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Start(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry>**)this; + check_hresult(_winrt_abi_type->get_Start(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLineGeometry::Start( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Start(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry>**)this; + check_hresult(_winrt_abi_type->put_Start(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionLineGeometry::End() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_End(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry>**)this; + check_hresult(_winrt_abi_type->get_End(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLineGeometry::End( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_End(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionLineGeometry>**)this; + check_hresult(_winrt_abi_type->put_End(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionLinearGradientBrush< + D>::EndPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLinearGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLinearGradientBrush:: + EndPoint(winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLinearGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EndPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EndPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionLinearGradientBrush< + D>::StartPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLinearGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionLinearGradientBrush< + D>::StartPoint(winrt::Windows::Foundation::Numerics::float2 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionLinearGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionMaskBrush::Mask() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionMaskBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMaskBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Mask(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Mask(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionMaskBrush::Mask( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionMaskBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMaskBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mask(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Mask(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionMaskBrush::Source() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionMaskBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMaskBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionMaskBrush::Source( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionMaskBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMaskBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionMipmapSurface::LevelCount() + const { + uint32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMipmapSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LevelCount(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LevelCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionMipmapSurface::AlphaMode() + const { + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMipmapSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AlphaMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AlphaMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionMipmapSurface< + D>::PixelFormat() const { + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMipmapSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PixelFormat(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PixelFormat(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionMipmapSurface::SizeInt32() + const { + winrt::Windows::Graphics::SizeInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMipmapSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizeInt32(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizeInt32(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionMipmapSurface< + D>::GetDrawingSurfaceForLevel(uint32_t level) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionMipmapSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDrawingSurfaceForLevel(level, &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDrawingSurfaceForLevel(level, &result)); + } + return winrt::Microsoft::UI::Composition::CompositionDrawingSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::BottomInset() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomInset(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::BottomInset( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomInset(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::BottomInsetScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomInsetScale(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomInsetScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::BottomInsetScale(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomInsetScale(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomInsetScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::IsCenterHollow() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCenterHollow(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCenterHollow(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::IsCenterHollow(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsCenterHollow(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsCenterHollow(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::LeftInset() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftInset(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::LeftInset( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftInset(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::LeftInsetScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftInsetScale(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftInsetScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::LeftInsetScale(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftInsetScale(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftInsetScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::RightInset() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightInset(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::RightInset( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightInset(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::RightInsetScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightInsetScale(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightInsetScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::RightInsetScale(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightInsetScale(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightInsetScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::Source() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::Source( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::TopInset() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopInset(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::TopInset( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopInset(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::TopInsetScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopInsetScale(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopInsetScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::TopInsetScale(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopInsetScale(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopInsetScale(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::SetInsets( + float inset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetInsets(inset)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetInsets(inset)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush::SetInsets( + float left, float top, float right, float bottom) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetInsetsWithValues(left, top, right, bottom)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetInsetsWithValues(left, top, right, bottom)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::SetInsetScales(float scale) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetInsetScales(scale)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetInsetScales(scale)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionNineGridBrush< + D>::SetInsetScales(float left, float top, float right, float bottom) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionNineGridBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetInsetScalesWithValues(left, top, right, bottom)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetInsetScalesWithValues(left, top, right, bottom)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject::Compositor() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Compositor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Compositor(&value)); + } + return winrt::Microsoft::UI::Composition::Compositor{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject::Properties() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Properties(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Properties(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionPropertySet{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject::StartAnimation( + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::CompositionAnimation const& animation) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAnimation(*(void**)(&propertyName), + *(void**)(&animation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAnimation(*(void**)(&propertyName), + *(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject::StopAnimation( + param::hstring const& propertyName) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StopAnimation(*(void**)(&propertyName))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StopAnimation(*(void**)(&propertyName))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject2::Comment() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Comment(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Comment(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject2::Comment( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Comment(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Comment(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject2< + D>::ImplicitAnimations() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ImplicitAnimations(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ImplicitAnimations(&value)); + } + return winrt::Microsoft::UI::Composition::ImplicitAnimationCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject2:: + ImplicitAnimations( + winrt::Microsoft::UI::Composition::ImplicitAnimationCollection const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ImplicitAnimations(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ImplicitAnimations(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject2:: + StartAnimationGroup( + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAnimationGroup(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAnimationGroup(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject2:: + StopAnimationGroup( + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StopAnimationGroup(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StopAnimationGroup(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject3::DispatcherQueue() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject4< + D>::TryGetAnimationController(param::hstring const& propertyName) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetAnimationController( + *(void**)(&propertyName), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryGetAnimationController( + *(void**)(&propertyName), &result)); + } + return winrt::Microsoft::UI::Composition::AnimationController{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionObject5::StartAnimation( + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::CompositionAnimation const& animation, + winrt::Microsoft::UI::Composition::AnimationController const& + animationController) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionObject5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObject5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAnimationWithController( + *(void**)(&propertyName), *(void**)(&animation), + *(void**)(&animationController))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAnimationWithController( + *(void**)(&propertyName), *(void**)(&animation), + *(void**)(&animationController))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObjectStatics:: + StartAnimationWithIAnimationObject( + winrt::Microsoft::UI::Composition::IAnimationObject const& target, + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::CompositionAnimation const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObjectStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAnimationWithIAnimationObject( + *(void**)(&target), *(void**)(&propertyName), *(void**)(&animation))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAnimationWithIAnimationObject( + *(void**)(&target), *(void**)(&propertyName), *(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionObjectStatics:: + StartAnimationGroupWithIAnimationObject( + winrt::Microsoft::UI::Composition::IAnimationObject const& target, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionObjectStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAnimationGroupWithIAnimationObject( + *(void**)(&target), *(void**)(&animation))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAnimationGroupWithIAnimationObject( + *(void**)(&target), *(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPathFactory::Create( + winrt::Windows::Graphics::IGeometrySource2D const& source) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPathFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&source), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPathFactory>**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&source), &value)); + } + return winrt::Microsoft::UI::Composition::CompositionPath{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPathGeometry::Path() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPathGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Path(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPathGeometry>**)this; + check_hresult(_winrt_abi_type->get_Path(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionPath{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPathGeometry::Path( + winrt::Microsoft::UI::Composition::CompositionPath const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPathGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Path(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPathGeometry>**)this; + check_hresult(_winrt_abi_type->put_Path(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::BlurRadiusMultiplier() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlurRadiusMultiplier(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlurRadiusMultiplier(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::BlurRadiusMultiplier(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BlurRadiusMultiplier(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BlurRadiusMultiplier(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow::Casters() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Casters(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Casters(&value)); + } + return winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCasterCollection{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::LightSource() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightSource(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionLight{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::LightSource(winrt::Microsoft::UI::Composition::CompositionLight const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::MaxBlurRadius() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxBlurRadius(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxBlurRadius(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::MaxBlurRadius(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxBlurRadius(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxBlurRadius(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::MinBlurRadius() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinBlurRadius(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinBlurRadius(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::MinBlurRadius(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinBlurRadius(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinBlurRadius(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadow< + D>::Receivers() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Receivers(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Receivers(&value)); + } + return winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowReceiverUnorderedCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCaster< + D>::Brush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowCaster, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Brush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Brush(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCaster< + D>::Brush(winrt::Microsoft::UI::Composition::CompositionBrush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowCaster, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Brush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Brush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCaster< + D>::CastingVisual() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowCaster, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CastingVisual(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CastingVisual(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCaster< + D>::CastingVisual(winrt::Microsoft::UI::Composition::Visual const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowCaster, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CastingVisual(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CastingVisual(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::Count() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::InsertAbove(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& newCaster, + winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& reference) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAbove(*(void**)(&newCaster), + *(void**)(&reference))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAbove(*(void**)(&newCaster), + *(void**)(&reference))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::InsertAtBottom(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& newCaster) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAtBottom(*(void**)(&newCaster))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAtBottom(*(void**)(&newCaster))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::InsertAtTop(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& newCaster) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAtTop(*(void**)(&newCaster))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAtTop(*(void**)(&newCaster))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::InsertBelow(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& newCaster, + winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& reference) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertBelow(*(void**)(&newCaster), + *(void**)(&reference))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertBelow(*(void**)(&newCaster), + *(void**)(&reference))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::Remove(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowCaster const& caster) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(*(void**)(&caster))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Remove(*(void**)(&caster))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollection< + D>::RemoveAll() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowCasterCollectionStatics< + D>::MaxRespectedCasters() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollectionStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollectionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowCasterCollectionStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxRespectedCasters(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxRespectedCasters(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowReceiver< + D>::ReceivingVisual() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowReceiver, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReceivingVisual(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReceivingVisual(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowReceiver< + D>::ReceivingVisual(winrt::Microsoft::UI::Composition::Visual const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowReceiver, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ReceivingVisual(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ReceivingVisual(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowReceiverUnorderedCollection< + D>::Add(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowReceiver const& value) const { + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Add(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)this; + check_hresult(_winrt_abi_type->Add(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowReceiverUnorderedCollection< + D>::Count() const { + int32_t value{}; + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowReceiverUnorderedCollection< + D>::Remove(winrt::Microsoft::UI::Composition:: + CompositionProjectedShadowReceiver const& value) const { + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)this; + check_hresult(_winrt_abi_type->Remove(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionProjectedShadowReceiverUnorderedCollection< + D>::RemoveAll() const { + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition:: + ICompositionProjectedShadowReceiverUnorderedCollection>**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::InsertColor( + param::hstring const& propertyName, + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertColor(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertColor(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet< + D>::InsertMatrix3x2(param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float3x2 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertMatrix3x2(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertMatrix3x2(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet< + D>::InsertMatrix4x4(param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float4x4 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertMatrix4x4(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertMatrix4x4(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet< + D>::InsertQuaternion(param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::quaternion const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertQuaternion(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertQuaternion(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::InsertScalar( + param::hstring const& propertyName, float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->InsertScalar(*(void**)(&propertyName), value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult( + _winrt_abi_type->InsertScalar(*(void**)(&propertyName), value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::InsertVector2( + param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertVector2(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertVector2(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::InsertVector3( + param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertVector3(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertVector3(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::InsertVector4( + param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float4 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertVector4(*(void**)(&propertyName), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->InsertVector4(*(void**)(&propertyName), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::TryGetColor( + param::hstring const& propertyName, + winrt::Windows::UI::Color& value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetColor( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetColor( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet< + D>::TryGetMatrix3x2(param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float3x2& value) + const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetMatrix3x2( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetMatrix3x2( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet< + D>::TryGetMatrix4x4(param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float4x4& value) + const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetMatrix4x4( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetMatrix4x4( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet< + D>::TryGetQuaternion(param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::quaternion& + value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetQuaternion( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetQuaternion( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::TryGetScalar( + param::hstring const& propertyName, float& value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetScalar( + *(void**)(&propertyName), &value, reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetScalar( + *(void**)(&propertyName), &value, reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::TryGetVector2( + param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float2& value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetVector2( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetVector2( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::TryGetVector3( + param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float3& value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetVector3( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetVector3( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet::TryGetVector4( + param::hstring const& propertyName, + winrt::Windows::Foundation::Numerics::float4& value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetVector4( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet>**)this; + check_hresult(_winrt_abi_type->TryGetVector4( + *(void**)(&propertyName), impl::bind_out(value), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet2< + D>::InsertBoolean(param::hstring const& propertyName, bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->InsertBoolean(*(void**)(&propertyName), value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet2>**)this; + check_hresult( + _winrt_abi_type->InsertBoolean(*(void**)(&propertyName), value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionPropertySet2< + D>::TryGetBoolean(param::hstring const& propertyName, bool& value) const { + winrt::Microsoft::UI::Composition::CompositionGetValueStatus result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionPropertySet2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetBoolean( + *(void**)(&propertyName), &value, reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionPropertySet2>**)this; + check_hresult(_winrt_abi_type->TryGetBoolean( + *(void**)(&propertyName), &value, reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRadialGradientBrush< + D>::EllipseCenter() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseCenter(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseCenter(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRadialGradientBrush< + D>::EllipseCenter(winrt::Windows::Foundation::Numerics::float2 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EllipseCenter(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EllipseCenter(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRadialGradientBrush< + D>::EllipseRadius() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRadialGradientBrush< + D>::EllipseRadius(winrt::Windows::Foundation::Numerics::float2 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EllipseRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EllipseRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRadialGradientBrush< + D>::GradientOriginOffset() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GradientOriginOffset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GradientOriginOffset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRadialGradientBrush< + D>::GradientOriginOffset(winrt::Windows::Foundation::Numerics::float2 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_GradientOriginOffset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_GradientOriginOffset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRectangleGeometry::Offset() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRectangleGeometry::Offset( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRectangleGeometry::Size() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRectangleGeometry::Size( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRoundedRectangleGeometry< + D>::CornerRadius() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRoundedRectangleGeometry< + D>::CornerRadius(winrt::Windows::Foundation::Numerics::float2 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRoundedRectangleGeometry< + D>::Offset() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRoundedRectangleGeometry:: + Offset(winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionRoundedRectangleGeometry< + D>::Size() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionRoundedRectangleGeometry< + D>::Size(winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::IsActive() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::IsEnded() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnded(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + check_hresult(_winrt_abi_type->get_IsEnded(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::End() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->End()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + check_hresult(_winrt_abi_type->End()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::Resume() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resume()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + check_hresult(_winrt_abi_type->Resume()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::Suspend() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Suspend()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + check_hresult(_winrt_abi_type->Suspend()); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::Completed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Composition:: + CompositionBatchCompletedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::Completed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Composition:: + CompositionBatchCompletedEventArgs> const& handler) const { + return impl::make_event_revoker(this, + Completed(handler)); +} +template +auto consume_Microsoft_UI_Composition_ICompositionScopedBatch::Completed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionScopedBatch>**)this; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::CenterPoint() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::CenterPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::Offset() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::Offset( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::RotationAngle() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::RotationAngle( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape< + D>::RotationAngleInDegrees() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape< + D>::RotationAngleInDegrees(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::Scale() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::Scale( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::TransformMatrix() + const { + winrt::Windows::Foundation::Numerics::float3x2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionShape::TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositionShape>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::FillBrush() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_FillBrush(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::FillBrush( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FillBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_FillBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::Geometry() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Geometry(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_Geometry(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionGeometry{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::Geometry( + winrt::Microsoft::UI::Composition::CompositionGeometry const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Geometry(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_Geometry(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::IsStrokeNonScaling() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStrokeNonScaling(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_IsStrokeNonScaling(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::IsStrokeNonScaling(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsStrokeNonScaling(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_IsStrokeNonScaling(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::StrokeBrush() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeBrush(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::StrokeBrush( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_StrokeBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeDashArray() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashArray(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeDashArray(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionStrokeDashArray{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeDashCap() const { + winrt::Microsoft::UI::Composition::CompositionStrokeCap value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_StrokeDashCap(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult( + _winrt_abi_type->get_StrokeDashCap(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::StrokeDashCap( + winrt::Microsoft::UI::Composition::CompositionStrokeCap const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeDashCap(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult( + _winrt_abi_type->put_StrokeDashCap(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeDashOffset() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeDashOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeDashOffset(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeDashOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_StrokeDashOffset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::StrokeEndCap() + const { + winrt::Microsoft::UI::Composition::CompositionStrokeCap value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_StrokeEndCap(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult( + _winrt_abi_type->get_StrokeEndCap(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape::StrokeEndCap( + winrt::Microsoft::UI::Composition::CompositionStrokeCap const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeEndCap(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult( + _winrt_abi_type->put_StrokeEndCap(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeLineJoin() const { + winrt::Microsoft::UI::Composition::CompositionStrokeLineJoin value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeLineJoin( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeLineJoin( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape:: + StrokeLineJoin( + winrt::Microsoft::UI::Composition::CompositionStrokeLineJoin const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeLineJoin(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult( + _winrt_abi_type->put_StrokeLineJoin(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeMiterLimit() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeMiterLimit(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeMiterLimit(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeMiterLimit(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeMiterLimit(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_StrokeMiterLimit(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeStartCap() const { + winrt::Microsoft::UI::Composition::CompositionStrokeCap value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeStartCap( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeStartCap( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape:: + StrokeStartCap( + winrt::Microsoft::UI::Composition::CompositionStrokeCap const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeStartCap(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult( + _winrt_abi_type->put_StrokeStartCap(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeThickness() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeThickness(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->get_StrokeThickness(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSpriteShape< + D>::StrokeThickness(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeThickness(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSpriteShape>**)this; + check_hresult(_winrt_abi_type->put_StrokeThickness(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSupportsSystemBackdrop< + D>::SystemBackdrop() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSupportsSystemBackdrop, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Windows::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSupportsSystemBackdrop< + D>::SystemBackdrop(winrt::Windows::UI::Composition::CompositionBrush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSupportsSystemBackdrop, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush< + D>::BitmapInterpolationMode() const { + winrt::Microsoft::UI::Composition::CompositionBitmapInterpolationMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BitmapInterpolationMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->get_BitmapInterpolationMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush< + D>::BitmapInterpolationMode(winrt::Microsoft::UI::Composition:: + CompositionBitmapInterpolationMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BitmapInterpolationMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->put_BitmapInterpolationMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush< + D>::HorizontalAlignmentRatio() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush< + D>::HorizontalAlignmentRatio(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAlignmentRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->put_HorizontalAlignmentRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush::Stretch() + const { + winrt::Microsoft::UI::Composition::CompositionStretch value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush::Stretch( + winrt::Microsoft::UI::Composition::CompositionStretch const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush::Surface() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Surface(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->get_Surface(&value)); + } + return winrt::Microsoft::UI::Composition::ICompositionSurface{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush::Surface( + winrt::Microsoft::UI::Composition::ICompositionSurface const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Surface(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->put_Surface(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush< + D>::VerticalAlignmentRatio() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush< + D>::VerticalAlignmentRatio(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAlignmentRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush>**)this; + check_hresult(_winrt_abi_type->put_VerticalAlignmentRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::AnchorPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2::AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::CenterPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2::CenterPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2::Offset() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2::Offset( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::RotationAngle() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::RotationAngle(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::RotationAngleInDegrees() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::RotationAngleInDegrees(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2::Scale() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2::Scale( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::TransformMatrix() const { + winrt::Windows::Foundation::Numerics::float3x2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush2< + D>::TransformMatrix(winrt::Windows::Foundation::Numerics::float3x2 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush3< + D>::SnapToPixels() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SnapToPixels(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SnapToPixels(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceBrush3< + D>::SnapToPixels(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SnapToPixels(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SnapToPixels(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionSurfaceFacade< + D>::GetRealSurface() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionSurfaceFacade, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRealSurface(&result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRealSurface(&result)); + } + return winrt::Microsoft::UI::Composition::ICompositionSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox< + D>::HorizontalAlignmentRatio() const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox< + D>::HorizontalAlignmentRatio(float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAlignmentRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalAlignmentRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox::Offset() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox::Offset( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox::Size() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox::Size( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox::Stretch() const { + winrt::Microsoft::UI::Composition::CompositionStretch value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox::Stretch( + winrt::Microsoft::UI::Composition::CompositionStretch const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox< + D>::VerticalAlignmentRatio() const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionViewBox< + D>::VerticalAlignmentRatio(float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ICompositionViewBox>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionViewBox, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAlignmentRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalAlignmentRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionVirtualDrawingSurface:: + Trim(array_view rects) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVirtualDrawingSurface, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Trim(rects.size(), get_abi(rects))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Trim(rects.size(), get_abi(rects))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionVisualSurface< + D>::SourceVisual() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVisualSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceVisual(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceVisual(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositionVisualSurface:: + SourceVisual(winrt::Microsoft::UI::Composition::Visual const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVisualSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SourceVisual(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SourceVisual(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionVisualSurface< + D>::SourceOffset() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVisualSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceOffset(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceOffset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionVisualSurface< + D>::SourceOffset(winrt::Windows::Foundation::Numerics::float2 const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVisualSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SourceOffset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SourceOffset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositionVisualSurface::SourceSize() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVisualSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceSize(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositionVisualSurface::SourceSize( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositionVisualSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SourceSize(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SourceSize(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateColorKeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateColorKeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateColorKeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::ColorKeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateColorBrush() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateColorBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateColorBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionColorBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateColorBrush( + winrt::Windows::UI::Color const& color) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateColorBrushWithColor( + impl::bind_in(color), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateColorBrushWithColor( + impl::bind_in(color), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionColorBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateContainerVisual() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateContainerVisual(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateContainerVisual(&result)); + } + return winrt::Microsoft::UI::Composition::ContainerVisual{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor:: + CreateCubicBezierEasingFunction( + winrt::Windows::Foundation::Numerics::float2 const& controlPoint1, + winrt::Windows::Foundation::Numerics::float2 const& controlPoint2) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateCubicBezierEasingFunction( + impl::bind_in(controlPoint1), impl::bind_in(controlPoint2), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateCubicBezierEasingFunction( + impl::bind_in(controlPoint1), impl::bind_in(controlPoint2), &result)); + } + return winrt::Microsoft::UI::Composition::CubicBezierEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateEffectFactory( + winrt::Windows::Graphics::Effects::IGraphicsEffect const& graphicsEffect) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateEffectFactory( + *(void**)(&graphicsEffect), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateEffectFactory( + *(void**)(&graphicsEffect), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionEffectFactory{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateEffectFactory( + winrt::Windows::Graphics::Effects::IGraphicsEffect const& graphicsEffect, + param::iterable const& animatableProperties) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateEffectFactoryWithProperties( + *(void**)(&graphicsEffect), *(void**)(&animatableProperties), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateEffectFactoryWithProperties( + *(void**)(&graphicsEffect), *(void**)(&animatableProperties), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionEffectFactory{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateExpressionAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateExpressionAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateExpressionAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateExpressionAnimation( + param::hstring const& expression) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateExpressionAnimationWithExpression( + *(void**)(&expression), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateExpressionAnimationWithExpression( + *(void**)(&expression), &result)); + } + return winrt::Microsoft::UI::Composition::ExpressionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateInsetClip() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInsetClip(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInsetClip(&result)); + } + return winrt::Microsoft::UI::Composition::InsetClip{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateInsetClip( + float leftInset, float topInset, float rightInset, + float bottomInset) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInsetClipWithInsets( + leftInset, topInset, rightInset, bottomInset, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInsetClipWithInsets( + leftInset, topInset, rightInset, bottomInset, &result)); + } + return winrt::Microsoft::UI::Composition::InsetClip{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateLinearEasingFunction() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateLinearEasingFunction(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateLinearEasingFunction(&result)); + } + return winrt::Microsoft::UI::Composition::LinearEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreatePropertySet() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreatePropertySet(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreatePropertySet(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionPropertySet{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateQuaternionKeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateQuaternionKeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateQuaternionKeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::QuaternionKeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateScalarKeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateScalarKeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateScalarKeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::ScalarKeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateScopedBatch( + winrt::Microsoft::UI::Composition::CompositionBatchTypes const& batchType) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateScopedBatch( + static_cast(batchType), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateScopedBatch( + static_cast(batchType), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionScopedBatch{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateSpriteVisual() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpriteVisual(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpriteVisual(&result)); + } + return winrt::Microsoft::UI::Composition::SpriteVisual{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateSurfaceBrush() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSurfaceBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSurfaceBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionSurfaceBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::CreateSurfaceBrush( + winrt::Microsoft::UI::Composition::ICompositionSurface const& surface) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSurfaceBrushWithSurface( + *(void**)(&surface), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSurfaceBrushWithSurface( + *(void**)(&surface), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionSurfaceBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateVector2KeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateVector2KeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateVector2KeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::Vector2KeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateVector3KeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateVector3KeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateVector3KeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::Vector3KeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor< + D>::CreateVector4KeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateVector4KeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateVector4KeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::Vector4KeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor::GetCommitBatch( + winrt::Microsoft::UI::Composition::CompositionBatchTypes const& batchType) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCommitBatch( + static_cast(batchType), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCommitBatch( + static_cast(batchType), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionCommitBatch{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateAmbientLight() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateAmbientLight(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateAmbientLight(&result)); + } + return winrt::Microsoft::UI::Composition::AmbientLight{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateAnimationGroup() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateAnimationGroup(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateAnimationGroup(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionAnimationGroup{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateBackdropBrush() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBackdropBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBackdropBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionBackdropBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateDistantLight() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateDistantLight(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateDistantLight(&result)); + } + return winrt::Microsoft::UI::Composition::DistantLight{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateDropShadow() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateDropShadow(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateDropShadow(&result)); + } + return winrt::Microsoft::UI::Composition::DropShadow{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2< + D>::CreateImplicitAnimationCollection() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateImplicitAnimationCollection(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateImplicitAnimationCollection(&result)); + } + return winrt::Microsoft::UI::Composition::ImplicitAnimationCollection{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateLayerVisual() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateLayerVisual(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateLayerVisual(&result)); + } + return winrt::Microsoft::UI::Composition::LayerVisual{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateMaskBrush() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateMaskBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateMaskBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionMaskBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateNineGridBrush() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateNineGridBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateNineGridBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionNineGridBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreatePointLight() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreatePointLight(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreatePointLight(&result)); + } + return winrt::Microsoft::UI::Composition::PointLight{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateSpotLight() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpotLight(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpotLight(&result)); + } + return winrt::Microsoft::UI::Composition::SpotLight{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2< + D>::CreateStepEasingFunction() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateStepEasingFunction(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateStepEasingFunction(&result)); + } + return winrt::Microsoft::UI::Composition::StepEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor2::CreateStepEasingFunction( + int32_t stepCount) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateStepEasingFunctionWithStepCount( + stepCount, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateStepEasingFunctionWithStepCount( + stepCount, &result)); + } + return winrt::Microsoft::UI::Composition::StepEasingFunction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor4::CreateColorGradientStop() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateColorGradientStop(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateColorGradientStop(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionColorGradientStop{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor4::CreateColorGradientStop( + float offset, winrt::Windows::UI::Color const& color) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateColorGradientStopWithOffsetAndColor( + offset, impl::bind_in(color), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateColorGradientStopWithOffsetAndColor( + offset, impl::bind_in(color), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionColorGradientStop{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor4< + D>::CreateLinearGradientBrush() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateLinearGradientBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateLinearGradientBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionLinearGradientBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor4< + D>::CreateSpringScalarAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpringScalarAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpringScalarAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::SpringScalarNaturalMotionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor4< + D>::CreateSpringVector2Animation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpringVector2Animation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpringVector2Animation(&result)); + } + return winrt::Microsoft::UI::Composition::SpringVector2NaturalMotionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor4< + D>::CreateSpringVector3Animation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor4>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor4, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpringVector3Animation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpringVector3Animation(&result)); + } + return winrt::Microsoft::UI::Composition::SpringVector3NaturalMotionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::Comment() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Comment(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Comment(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::Comment( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Comment(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Comment(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::GlobalPlaybackRate() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalPlaybackRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlobalPlaybackRate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::GlobalPlaybackRate( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlobalPlaybackRate(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlobalPlaybackRate(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ICompositor5< + D>::CreateBounceScalarAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBounceScalarAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBounceScalarAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::BounceScalarNaturalMotionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5< + D>::CreateBounceVector2Animation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBounceVector2Animation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBounceVector2Animation(&result)); + } + return winrt::Microsoft::UI::Composition::BounceVector2NaturalMotionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5< + D>::CreateBounceVector3Animation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBounceVector3Animation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBounceVector3Animation(&result)); + } + return winrt::Microsoft::UI::Composition::BounceVector3NaturalMotionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateContainerShape() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateContainerShape(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateContainerShape(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionContainerShape{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateEllipseGeometry() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateEllipseGeometry(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateEllipseGeometry(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionEllipseGeometry{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateLineGeometry() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateLineGeometry(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateLineGeometry(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionLineGeometry{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreatePathGeometry() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreatePathGeometry(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreatePathGeometry(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionPathGeometry{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreatePathGeometry( + winrt::Microsoft::UI::Composition::CompositionPath const& path) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreatePathGeometryWithPath(*(void**)(&path), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreatePathGeometryWithPath(*(void**)(&path), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionPathGeometry{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5< + D>::CreatePathKeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreatePathKeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreatePathKeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::PathKeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateRectangleGeometry() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRectangleGeometry(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRectangleGeometry(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionRectangleGeometry{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5< + D>::CreateRoundedRectangleGeometry() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRoundedRectangleGeometry(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRoundedRectangleGeometry(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionRoundedRectangleGeometry{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateShapeVisual() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateShapeVisual(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateShapeVisual(&result)); + } + return winrt::Microsoft::UI::Composition::ShapeVisual{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateSpriteShape() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpriteShape(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpriteShape(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionSpriteShape{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateSpriteShape( + winrt::Microsoft::UI::Composition::CompositionGeometry const& geometry) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateSpriteShapeWithGeometry( + *(void**)(&geometry), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateSpriteShapeWithGeometry( + *(void**)(&geometry), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionSpriteShape{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::CreateViewBox() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateViewBox(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateViewBox(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionViewBox{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor5::RequestCommitAsync() + const { + void* operation{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor5>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor5, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestCommitAsync(&operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestCommitAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor6::CreateGeometricClip() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor6>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor6, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateGeometricClip(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateGeometricClip(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionGeometricClip{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor6::CreateGeometricClip( + winrt::Microsoft::UI::Composition::CompositionGeometry const& geometry) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor6>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor6, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateGeometricClipWithGeometry( + *(void**)(&geometry), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateGeometricClipWithGeometry( + *(void**)(&geometry), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionGeometricClip{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor6::CreateRedirectVisual() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor6>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor6, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRedirectVisual(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRedirectVisual(&result)); + } + return winrt::Microsoft::UI::Composition::RedirectVisual{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor6::CreateRedirectVisual( + winrt::Microsoft::UI::Composition::Visual const& source) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor6>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor6, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRedirectVisualWithSourceVisual( + *(void**)(&source), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRedirectVisualWithSourceVisual( + *(void**)(&source), &result)); + } + return winrt::Microsoft::UI::Composition::RedirectVisual{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor6< + D>::CreateBooleanKeyFrameAnimation() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor6>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor6, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateBooleanKeyFrameAnimation(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateBooleanKeyFrameAnimation(&result)); + } + return winrt::Microsoft::UI::Composition::BooleanKeyFrameAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor7::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor7>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor7, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor7< + D>::CreateAnimationPropertyInfo() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor7>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor7, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateAnimationPropertyInfo(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateAnimationPropertyInfo(&result)); + } + return winrt::Microsoft::UI::Composition::AnimationPropertyInfo{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor7::CreateRectangleClip() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor7>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor7, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRectangleClip(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRectangleClip(&result)); + } + return winrt::Microsoft::UI::Composition::RectangleClip{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor7::CreateRectangleClip( + float left, float top, float right, float bottom) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor7>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor7, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRectangleClipWithSides( + left, top, right, bottom, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRectangleClipWithSides( + left, top, right, bottom, &result)); + } + return winrt::Microsoft::UI::Composition::RectangleClip{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor7::CreateRectangleClip( + float left, float top, float right, float bottom, + winrt::Windows::Foundation::Numerics::float2 const& topLeftRadius, + winrt::Windows::Foundation::Numerics::float2 const& topRightRadius, + winrt::Windows::Foundation::Numerics::float2 const& bottomRightRadius, + winrt::Windows::Foundation::Numerics::float2 const& bottomLeftRadius) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor7>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor7, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRectangleClipWithSidesAndRadius( + left, top, right, bottom, impl::bind_in(topLeftRadius), + impl::bind_in(topRightRadius), impl::bind_in(bottomRightRadius), + impl::bind_in(bottomLeftRadius), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRectangleClipWithSidesAndRadius( + left, top, right, bottom, impl::bind_in(topLeftRadius), + impl::bind_in(topRightRadius), impl::bind_in(bottomRightRadius), + impl::bind_in(bottomLeftRadius), &result)); + } + return winrt::Microsoft::UI::Composition::RectangleClip{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositor8< + D>::CreateAnimationController() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositor8>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositor8, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateAnimationController(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateAnimationController(&result)); + } + return winrt::Microsoft::UI::Composition::AnimationController{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositorStatics< + D>::MaxGlobalPlaybackRate() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositorStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxGlobalPlaybackRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxGlobalPlaybackRate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositorStatics< + D>::MinGlobalPlaybackRate() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ICompositorStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinGlobalPlaybackRate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinGlobalPlaybackRate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICompositorWithProjectedShadow< + D>::CreateProjectedShadowCaster() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorWithProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateProjectedShadowCaster(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateProjectedShadowCaster(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionProjectedShadowCaster{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositorWithProjectedShadow< + D>::CreateProjectedShadow() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorWithProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateProjectedShadow(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateProjectedShadow(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionProjectedShadow{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositorWithProjectedShadow< + D>::CreateProjectedShadowReceiver() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorWithProjectedShadow, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateProjectedShadowReceiver(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateProjectedShadowReceiver(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionProjectedShadowReceiver{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositorWithRadialGradient< + D>::CreateRadialGradientBrush() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorWithRadialGradient, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateRadialGradientBrush(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateRadialGradientBrush(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionRadialGradientBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICompositorWithVisualSurface< + D>::CreateVisualSurface() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICompositorWithVisualSurface, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateVisualSurface(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateVisualSurface(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionVisualSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IContainerVisual::Children() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IContainerVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IContainerVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Microsoft::UI::Composition::VisualCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ICubicBezierEasingFunction< + D>::ControlPoint1() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICubicBezierEasingFunction, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlPoint1(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlPoint1(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ICubicBezierEasingFunction< + D>::ControlPoint2() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ICubicBezierEasingFunction, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlPoint2(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlPoint2(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDistantLight::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDistantLight::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IDistantLight::CoordinateSpace() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateSpace(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateSpace(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IDistantLight::CoordinateSpace( + winrt::Microsoft::UI::Composition::Visual const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CoordinateSpace(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CoordinateSpace(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IDistantLight::Direction() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Direction(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Direction(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDistantLight::Direction( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Direction(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Direction(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IDistantLight2::Intensity() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Intensity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Intensity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDistantLight2::Intensity( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDistantLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDistantLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Intensity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Intensity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::BlurRadius() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlurRadius(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlurRadius(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::BlurRadius( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BlurRadius(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BlurRadius(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Mask() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Mask(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Mask(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Mask( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mask(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Mask(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Offset() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Offset( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Opacity() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDropShadow::Opacity( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IDropShadow2::SourcePolicy() const { + winrt::Microsoft::UI::Composition::CompositionDropShadowSourcePolicy value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDropShadow2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SourcePolicy(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SourcePolicy(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IDropShadow2::SourcePolicy( + winrt::Microsoft::UI::Composition::CompositionDropShadowSourcePolicy const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IDropShadow2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IDropShadow2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SourcePolicy(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SourcePolicy(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IElasticEasingFunction::Mode() const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IElasticEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IElasticEasingFunction::Oscillations() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IElasticEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Oscillations(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Oscillations(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IElasticEasingFunction::Springiness() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IElasticEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Springiness(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Springiness(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IExponentialEasingFunction::Mode() + const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IExponentialEasingFunction, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IExponentialEasingFunction::Exponent() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IExponentialEasingFunction, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Exponent(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Exponent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IExpressionAnimation::Expression() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IExpressionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IExpressionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Expression(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Expression(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IExpressionAnimation::Expression( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IExpressionAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IExpressionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Expression(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Expression(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::BottomInset() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomInset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::BottomInset( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomInset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::LeftInset() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftInset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::LeftInset( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftInset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::RightInset() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightInset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::RightInset( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightInset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::TopInset() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopInset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IInsetClip::TopInset( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IInsetClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopInset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopInset(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::DelayTime() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DelayTime(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DelayTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::DelayTime( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DelayTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DelayTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::Duration() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::Duration( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::IterationBehavior() + const { + winrt::Microsoft::UI::Composition::AnimationIterationBehavior value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IterationBehavior( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IterationBehavior( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::IterationBehavior( + winrt::Microsoft::UI::Composition::AnimationIterationBehavior const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IterationBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_IterationBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::IterationCount() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IterationCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IterationCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::IterationCount( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IterationCount(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IterationCount(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::KeyFrameCount() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyFrameCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyFrameCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::StopBehavior() + const { + winrt::Microsoft::UI::Composition::AnimationStopBehavior value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_StopBehavior(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_StopBehavior(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation::StopBehavior( + winrt::Microsoft::UI::Composition::AnimationStopBehavior const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StopBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_StopBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation< + D>::InsertExpressionKeyFrame(float normalizedProgressKey, + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertExpressionKeyFrame( + normalizedProgressKey, *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertExpressionKeyFrame( + normalizedProgressKey, *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation:: + InsertExpressionKeyFrame( + float normalizedProgressKey, param::hstring const& value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertExpressionKeyFrameWithEasingFunction( + normalizedProgressKey, *(void**)(&value), *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertExpressionKeyFrameWithEasingFunction( + normalizedProgressKey, *(void**)(&value), *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation2::Direction() + const { + winrt::Microsoft::UI::Composition::AnimationDirection value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IKeyFrameAnimation2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation2::Direction( + winrt::Microsoft::UI::Composition::AnimationDirection const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IKeyFrameAnimation2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Direction(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Direction(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation3::DelayBehavior() + const { + winrt::Microsoft::UI::Composition::AnimationDelayBehavior value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IKeyFrameAnimation3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DelayBehavior(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DelayBehavior(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IKeyFrameAnimation3::DelayBehavior( + winrt::Microsoft::UI::Composition::AnimationDelayBehavior const& value) + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IKeyFrameAnimation3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IKeyFrameAnimation3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_DelayBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_DelayBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ILayerVisual::Effect() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ILayerVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ILayerVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Effect(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Effect(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionEffectBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ILayerVisual::Effect( + winrt::Microsoft::UI::Composition::CompositionEffectBrush const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ILayerVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ILayerVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Effect(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Effect(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ILayerVisual2::Shadow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ILayerVisual2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ILayerVisual2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Shadow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Shadow(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionShadow{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ILayerVisual2::Shadow( + winrt::Microsoft::UI::Composition::CompositionShadow const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ILayerVisual2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ILayerVisual2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Shadow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Shadow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_INaturalMotionAnimation< + D>::DelayBehavior() const { + winrt::Microsoft::UI::Composition::AnimationDelayBehavior value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DelayBehavior(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation>**)this; + check_hresult( + _winrt_abi_type->get_DelayBehavior(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_INaturalMotionAnimation::DelayBehavior( + winrt::Microsoft::UI::Composition::AnimationDelayBehavior const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_DelayBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation>**)this; + check_hresult( + _winrt_abi_type->put_DelayBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_INaturalMotionAnimation::DelayTime() + const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DelayTime(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation>**)this; + check_hresult(_winrt_abi_type->get_DelayTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_INaturalMotionAnimation::DelayTime( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DelayTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation>**)this; + check_hresult(_winrt_abi_type->put_DelayTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_INaturalMotionAnimation::StopBehavior() + const { + winrt::Microsoft::UI::Composition::AnimationStopBehavior value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_StopBehavior(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation>**)this; + check_hresult( + _winrt_abi_type->get_StopBehavior(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_INaturalMotionAnimation::StopBehavior( + winrt::Microsoft::UI::Composition::AnimationStopBehavior const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StopBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::INaturalMotionAnimation>**)this; + check_hresult( + _winrt_abi_type->put_StopBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IPathKeyFrameAnimation::InsertKeyFrame( + float normalizedProgressKey, + winrt::Microsoft::UI::Composition::CompositionPath const& path) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPathKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + *(void**)(&path))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + *(void**)(&path))); + } +} +template +auto consume_Microsoft_UI_Composition_IPathKeyFrameAnimation::InsertKeyFrame( + float normalizedProgressKey, + winrt::Microsoft::UI::Composition::CompositionPath const& path, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPathKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, *(void**)(&path), *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, *(void**)(&path), *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight::ConstantAttenuation() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConstantAttenuation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConstantAttenuation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight::ConstantAttenuation( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ConstantAttenuation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ConstantAttenuation(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight::CoordinateSpace() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateSpace(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateSpace(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IPointLight::CoordinateSpace( + winrt::Microsoft::UI::Composition::Visual const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CoordinateSpace(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CoordinateSpace(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight::LinearAttenuation() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LinearAttenuation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LinearAttenuation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight::LinearAttenuation( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LinearAttenuation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LinearAttenuation(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight::Offset() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight::Offset( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight::QuadraticAttenuation() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_QuadraticAttenuation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_QuadraticAttenuation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight::QuadraticAttenuation( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_QuadraticAttenuation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_QuadraticAttenuation(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight2::Intensity() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPointLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Intensity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Intensity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight2::Intensity( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPointLight2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Intensity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Intensity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight3::MinAttenuationCutoff() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPointLight3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinAttenuationCutoff(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinAttenuationCutoff(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight3::MinAttenuationCutoff( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPointLight3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinAttenuationCutoff(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinAttenuationCutoff(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IPointLight3::MaxAttenuationCutoff() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPointLight3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxAttenuationCutoff(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxAttenuationCutoff(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPointLight3::MaxAttenuationCutoff( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IPointLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPointLight3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxAttenuationCutoff(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxAttenuationCutoff(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IPowerEasingFunction::Mode() const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IPowerEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPowerEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IPowerEasingFunction::Power() const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IPowerEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IPowerEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Power(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Power(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IQuaternionKeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::quaternion const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IQuaternionKeyFrameAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IQuaternionKeyFrameAnimation:: + InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::quaternion const& value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IQuaternionKeyFrameAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Bottom() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bottom(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bottom(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Bottom( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Bottom(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Bottom(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::BottomLeftRadius() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomLeftRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomLeftRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::BottomLeftRadius( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomLeftRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomLeftRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::BottomRightRadius() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomRightRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomRightRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::BottomRightRadius( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomRightRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomRightRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Left() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Left(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Left(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Left( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Left(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Left(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Right() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Right(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Right(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Right( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Right(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Right(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Top() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Top(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Top(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::Top( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Top(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Top(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::TopLeftRadius() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopLeftRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopLeftRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::TopLeftRadius( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopLeftRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopLeftRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::TopRightRadius() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopRightRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopRightRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IRectangleClip::TopRightRadius( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRectangleClip>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRectangleClip, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopRightRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopRightRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IRedirectVisual::Source() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRedirectVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRedirectVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IRedirectVisual::Source( + winrt::Microsoft::UI::Composition::Visual const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IRedirectVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRedirectVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IRenderingDeviceReplacedEventArgs< + D>::GraphicsDevice() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IRenderingDeviceReplacedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GraphicsDevice(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GraphicsDevice(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionGraphicsDevice{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IScalarKeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->InsertKeyFrame(normalizedProgressKey, value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IScalarKeyFrameAnimation>**)this; + check_hresult( + _winrt_abi_type->InsertKeyFrame(normalizedProgressKey, value)); + } +} +template +auto consume_Microsoft_UI_Composition_IScalarKeyFrameAnimation:: + InsertKeyFrame( + float normalizedProgressKey, float value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarKeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, value, *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IScalarKeyFrameAnimation>**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, value, *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IScalarNaturalMotionAnimation< + D>::FinalValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FinalValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FinalValue(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IScalarNaturalMotionAnimation< + D>::FinalValue(winrt::Windows::Foundation::IReference const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FinalValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FinalValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IScalarNaturalMotionAnimation< + D>::InitialValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialValue(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IScalarNaturalMotionAnimation< + D>::InitialValue(winrt::Windows::Foundation::IReference const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IScalarNaturalMotionAnimation< + D>::InitialVelocity() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialVelocity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialVelocity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IScalarNaturalMotionAnimation< + D>::InitialVelocity(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialVelocity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialVelocity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IShapeVisual::Shapes() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IShapeVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IShapeVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Shapes(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Shapes(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionShapeCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IShapeVisual::ViewBox() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IShapeVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IShapeVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewBox(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewBox(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionViewBox{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IShapeVisual::ViewBox( + winrt::Microsoft::UI::Composition::CompositionViewBox const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IShapeVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IShapeVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ViewBox(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ViewBox(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISineEasingFunction::Mode() const { + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::ISineEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISineEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::ConstantAttenuation() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConstantAttenuation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConstantAttenuation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::ConstantAttenuation( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ConstantAttenuation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ConstantAttenuation(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::CoordinateSpace() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateSpace(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateSpace(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::CoordinateSpace( + winrt::Microsoft::UI::Composition::Visual const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CoordinateSpace(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CoordinateSpace(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::Direction() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Direction(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Direction(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::Direction( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Direction(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Direction(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::InnerConeAngle() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InnerConeAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InnerConeAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::InnerConeAngle( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InnerConeAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InnerConeAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::InnerConeAngleInDegrees() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InnerConeAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InnerConeAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::InnerConeAngleInDegrees( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InnerConeAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InnerConeAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::InnerConeColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InnerConeColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InnerConeColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::InnerConeColor( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InnerConeColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InnerConeColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::LinearAttenuation() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LinearAttenuation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LinearAttenuation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::LinearAttenuation( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LinearAttenuation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LinearAttenuation(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::Offset() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::Offset( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::OuterConeAngle() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OuterConeAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OuterConeAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::OuterConeAngle( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OuterConeAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OuterConeAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::OuterConeAngleInDegrees() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OuterConeAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OuterConeAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::OuterConeAngleInDegrees( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OuterConeAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OuterConeAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::OuterConeColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OuterConeColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OuterConeColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::OuterConeColor( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OuterConeColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OuterConeColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::QuadraticAttenuation() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_QuadraticAttenuation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_QuadraticAttenuation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight::QuadraticAttenuation( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_QuadraticAttenuation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_QuadraticAttenuation(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight2::InnerConeIntensity() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InnerConeIntensity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InnerConeIntensity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight2::InnerConeIntensity( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InnerConeIntensity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InnerConeIntensity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight2::OuterConeIntensity() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OuterConeIntensity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OuterConeIntensity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight2::OuterConeIntensity( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OuterConeIntensity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OuterConeIntensity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight3::MinAttenuationCutoff() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinAttenuationCutoff(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinAttenuationCutoff(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight3::MinAttenuationCutoff( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinAttenuationCutoff(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinAttenuationCutoff(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpotLight3::MaxAttenuationCutoff() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxAttenuationCutoff(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxAttenuationCutoff(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpotLight3::MaxAttenuationCutoff( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpotLight3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxAttenuationCutoff(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxAttenuationCutoff(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpringScalarNaturalMotionAnimation< + D>::DampingRatio() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DampingRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DampingRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpringScalarNaturalMotionAnimation< + D>::DampingRatio(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DampingRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DampingRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpringScalarNaturalMotionAnimation< + D>::Period() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Period(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Period(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpringScalarNaturalMotionAnimation< + D>::Period(winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringScalarNaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Period(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Period(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpringVector2NaturalMotionAnimation< + D>::DampingRatio() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DampingRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DampingRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpringVector2NaturalMotionAnimation< + D>::DampingRatio(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DampingRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DampingRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpringVector2NaturalMotionAnimation< + D>::Period() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Period(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Period(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpringVector2NaturalMotionAnimation< + D>::Period(winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Period(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Period(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpringVector3NaturalMotionAnimation< + D>::DampingRatio() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DampingRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DampingRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpringVector3NaturalMotionAnimation< + D>::DampingRatio(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DampingRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DampingRatio(value)); + } +} +template +auto consume_Microsoft_UI_Composition_ISpringVector3NaturalMotionAnimation< + D>::Period() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Period(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Period(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_ISpringVector3NaturalMotionAnimation< + D>::Period(winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpringVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Period(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Period(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpriteVisual::Brush() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpriteVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpriteVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Brush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Brush(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ISpriteVisual::Brush( + winrt::Microsoft::UI::Composition::CompositionBrush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpriteVisual>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpriteVisual, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Brush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Brush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_ISpriteVisual2::Shadow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpriteVisual2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpriteVisual2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Shadow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Shadow(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionShadow{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_ISpriteVisual2::Shadow( + winrt::Microsoft::UI::Composition::CompositionShadow const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::ISpriteVisual2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::ISpriteVisual2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Shadow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Shadow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction::FinalStep() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FinalStep(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FinalStep(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction::FinalStep( + int32_t value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FinalStep(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FinalStep(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction::InitialStep() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialStep(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialStep(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction::InitialStep( + int32_t value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialStep(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialStep(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction< + D>::IsFinalStepSingleFrame() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFinalStepSingleFrame(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFinalStepSingleFrame(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction< + D>::IsFinalStepSingleFrame(bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFinalStepSingleFrame(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFinalStepSingleFrame(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction< + D>::IsInitialStepSingleFrame() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInitialStepSingleFrame(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInitialStepSingleFrame(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction< + D>::IsInitialStepSingleFrame(bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsInitialStepSingleFrame(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsInitialStepSingleFrame(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction::StepCount() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StepCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StepCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IStepEasingFunction::StepCount( + int32_t value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Composition::IStepEasingFunction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IStepEasingFunction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StepCount(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StepCount(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVector2KeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float2 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2KeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector2KeyFrameAnimation:: + InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float2 const& value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2KeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector2NaturalMotionAnimation< + D>::FinalValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FinalValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FinalValue(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVector2NaturalMotionAnimation:: + FinalValue( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FinalValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FinalValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector2NaturalMotionAnimation< + D>::InitialValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialValue(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVector2NaturalMotionAnimation:: + InitialValue( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector2NaturalMotionAnimation< + D>::InitialVelocity() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialVelocity(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialVelocity(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVector2NaturalMotionAnimation< + D>::InitialVelocity(winrt::Windows::Foundation::Numerics::float2 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialVelocity(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialVelocity(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector3KeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float3 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3KeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector3KeyFrameAnimation:: + InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float3 const& value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3KeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector3NaturalMotionAnimation< + D>::FinalValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FinalValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FinalValue(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVector3NaturalMotionAnimation:: + FinalValue( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FinalValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FinalValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector3NaturalMotionAnimation< + D>::InitialValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialValue(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVector3NaturalMotionAnimation:: + InitialValue( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float3> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector3NaturalMotionAnimation< + D>::InitialVelocity() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialVelocity(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialVelocity(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVector3NaturalMotionAnimation< + D>::InitialVelocity(winrt::Windows::Foundation::Numerics::float3 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialVelocity(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialVelocity(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector4KeyFrameAnimation< + D>::InsertKeyFrame(float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float4 const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector4KeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrame(normalizedProgressKey, + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVector4KeyFrameAnimation:: + InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float4 const& value, + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + easingFunction) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVector4KeyFrameAnimation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertKeyFrameWithEasingFunction( + normalizedProgressKey, impl::bind_in(value), + *(void**)(&easingFunction))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::AnchorPoint() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnchorPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::BackfaceVisibility() const { + winrt::Microsoft::UI::Composition::CompositionBackfaceVisibility value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackfaceVisibility( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackfaceVisibility( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::BackfaceVisibility( + winrt::Microsoft::UI::Composition::CompositionBackfaceVisibility const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_BackfaceVisibility(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_BackfaceVisibility(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::BorderMode() const { + winrt::Microsoft::UI::Composition::CompositionBorderMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_BorderMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_BorderMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::BorderMode( + winrt::Microsoft::UI::Composition::CompositionBorderMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::CenterPoint() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::CenterPoint( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Clip() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Clip(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Clip(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionClip{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVisual::Clip( + winrt::Microsoft::UI::Composition::CompositionClip const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Clip(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Clip(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::CompositeMode() const { + winrt::Microsoft::UI::Composition::CompositionCompositeMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CompositeMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CompositeMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::CompositeMode( + winrt::Microsoft::UI::Composition::CompositionCompositeMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CompositeMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CompositeMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::IsVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::IsVisible(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsVisible(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Offset() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::Offset( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Opacity() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::Opacity(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Orientation() const { + winrt::Windows::Foundation::Numerics::quaternion value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::Orientation( + winrt::Windows::Foundation::Numerics::quaternion const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Parent() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Composition::ContainerVisual{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVisual::RotationAngle() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::RotationAngle( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::RotationAngleInDegrees() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleInDegrees(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::RotationAngleInDegrees( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngleInDegrees(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::RotationAxis() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAxis(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAxis(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::RotationAxis( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAxis(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAxis(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Scale() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::Scale( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::Size() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::Size( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual::TransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual::TransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Composition::IVisual>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual2::ParentForTransform() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ParentForTransform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ParentForTransform(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVisual2::ParentForTransform( + winrt::Microsoft::UI::Composition::Visual const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ParentForTransform(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ParentForTransform(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual2::RelativeOffsetAdjustment() + const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_RelativeOffsetAdjustment(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_RelativeOffsetAdjustment(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual2::RelativeOffsetAdjustment( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RelativeOffsetAdjustment(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RelativeOffsetAdjustment(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual2::RelativeSizeAdjustment() + const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RelativeSizeAdjustment(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RelativeSizeAdjustment(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual2::RelativeSizeAdjustment( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RelativeSizeAdjustment(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RelativeSizeAdjustment(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual3::IsHitTestVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHitTestVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHitTestVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual3::IsHitTestVisible( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHitTestVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHitTestVisible(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVisual4::IsPixelSnappingEnabled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPixelSnappingEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPixelSnappingEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisual4::IsPixelSnappingEnabled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPixelSnappingEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPixelSnappingEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::Count() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::InsertAbove( + winrt::Microsoft::UI::Composition::Visual const& newChild, + winrt::Microsoft::UI::Composition::Visual const& sibling) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAbove(*(void**)(&newChild), + *(void**)(&sibling))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAbove(*(void**)(&newChild), + *(void**)(&sibling))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::InsertAtBottom( + winrt::Microsoft::UI::Composition::Visual const& newChild) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAtBottom(*(void**)(&newChild))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAtBottom(*(void**)(&newChild))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::InsertAtTop( + winrt::Microsoft::UI::Composition::Visual const& newChild) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAtTop(*(void**)(&newChild))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAtTop(*(void**)(&newChild))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::InsertBelow( + winrt::Microsoft::UI::Composition::Visual const& newChild, + winrt::Microsoft::UI::Composition::Visual const& sibling) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertBelow(*(void**)(&newChild), + *(void**)(&sibling))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertBelow(*(void**)(&newChild), + *(void**)(&sibling))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::Remove( + winrt::Microsoft::UI::Composition::Visual const& child) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(*(void**)(&child))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Remove(*(void**)(&child))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualCollection::RemoveAll() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualElement2::GetVisualInternal() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Composition::IVisualElement2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualElement2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetVisualInternal(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetVisualInternal(&result)); + } + return winrt::Microsoft::UI::Composition::Visual{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Composition_IVisualUnorderedCollection::Count() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Composition_IVisualUnorderedCollection::Add( + winrt::Microsoft::UI::Composition::Visual const& newVisual) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Add(*(void**)(&newVisual))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Add(*(void**)(&newVisual))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualUnorderedCollection::Remove( + winrt::Microsoft::UI::Composition::Visual const& visual) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(*(void**)(&visual))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Remove(*(void**)(&visual))); + } +} +template +auto consume_Microsoft_UI_Composition_IVisualUnorderedCollection::RemoveAll() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Composition::IVisualUnorderedCollection, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Intensity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Intensity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Intensity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Intensity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PlaybackRate(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaybackRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PlaybackRate(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PlaybackRate(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Progress(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Progress()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Progress(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Progress(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProgressBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::AnimationControllerProgressBehavior>( + this->shim().ProgressBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProgressBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProgressBehavior( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Pause() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Pause(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Resume() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resume(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IAnimationControllerStatics> { + int32_t __stdcall get_MaxPlaybackRate(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxPlaybackRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinPlaybackRate(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinPlaybackRate()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall PopulatePropertyInfo(void* propertyName, + void* propertyInfo) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().PopulatePropertyInfo( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const*>( + &propertyInfo)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AccessMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::AnimationPropertyAccessMode>( + this->shim().AccessMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AccessMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AccessMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetResolvedCompositionObject(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetResolvedCompositionObject()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetResolvedCompositionObjectProperty( + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetResolvedCompositionObjectProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Amplitude(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Amplitude()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IBooleanKeyFrameAnimation> { + int32_t __stdcall InsertKeyFrame(float normalizedProgressKey, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame(normalizedProgressKey, value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Bounces(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bounces()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Bounciness(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bounciness()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IBounceScalarNaturalMotionAnimation> + : produce_base { + int32_t __stdcall get_Acceleration(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Acceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Acceleration(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Acceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Restitution(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Restitution()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Restitution(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Restitution(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IBounceVector2NaturalMotionAnimation> + : produce_base { + int32_t __stdcall get_Acceleration(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Acceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Acceleration(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Acceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Restitution(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Restitution()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Restitution(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Restitution(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IBounceVector3NaturalMotionAnimation> + : produce_base { + int32_t __stdcall get_Acceleration(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Acceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Acceleration(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Acceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Restitution(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Restitution()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Restitution(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Restitution(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_InterpolationColorSpace(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().InterpolationColorSpace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InterpolationColorSpace(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InterpolationColorSpace( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionColorSpace const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrame( + float normalizedProgressKey, + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, struct struct_Windows_UI_Color value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast(&value), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall ClearAllParameters() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearAllParameters(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ClearParameter(void* key) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearParameter(*reinterpret_cast(&key)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetColorParameter( + void* key, struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetColorParameter( + *reinterpret_cast(&key), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetMatrix3x2Parameter( + void* key, + winrt::Windows::Foundation::Numerics::float3x2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetMatrix3x2Parameter( + *reinterpret_cast(&key), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float3x2 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetMatrix4x4Parameter( + void* key, + winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetMatrix4x4Parameter( + *reinterpret_cast(&key), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float4x4 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetQuaternionParameter( + void* key, + winrt::Windows::Foundation::Numerics::quaternion value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetQuaternionParameter( + *reinterpret_cast(&key), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetReferenceParameter( + void* key, void* compositionObject) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetReferenceParameter( + *reinterpret_cast(&key), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionObject const*>( + &compositionObject)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetScalarParameter(void* key, float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetScalarParameter(*reinterpret_cast(&key), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVector2Parameter( + void* key, + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVector2Parameter( + *reinterpret_cast(&key), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVector3Parameter( + void* key, + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVector3Parameter( + *reinterpret_cast(&key), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVector4Parameter( + void* key, + winrt::Windows::Foundation::Numerics::float4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVector4Parameter( + *reinterpret_cast(&key), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetBooleanParameter(void* key, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetBooleanParameter(*reinterpret_cast(&key), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Target(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Target()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Target(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Target(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_InitialValueExpressions(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::InitialValueExpressionCollection>( + this->shim().InitialValueExpressions()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetExpressionReferenceParameter(void* parameterName, + void* source) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetExpressionReferenceParameter( + *reinterpret_cast(¶meterName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::IAnimationObject const*>( + &source)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionAnimationBase> {}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionAnimationFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionAnimationGroup> { + int32_t __stdcall get_Count(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Add(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Add( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Remove(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Remove( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAll() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionApiInformationStatics> + : produce_base { + int32_t __stdcall get_ApiVersion(uint64_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ApiVersion()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionBackdropBrush> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionBatchCompletedEventArgs> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionBrushFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionCapabilities> { + int32_t __stdcall AreEffectsSupported(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AreEffectsSupported()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AreEffectsFast(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AreEffectsFast()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Changed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Changed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Changed(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AnchorPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngleInDegrees(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float3x2 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionColorGradientStop> { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::ICompositionColorGradientStopCollection> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsActive(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActive()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEnded(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnded()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Completed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Completed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Completed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Completed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionContainerShape> { + int32_t __stdcall get_Shapes(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionShapeCollection>( + this->shim().Shapes()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionDrawingSurface> { + int32_t __stdcall get_AlphaMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlphaMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelFormat(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().PixelFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionDrawingSurface2> { + int32_t __stdcall get_SizeInt32( + struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SizeInt32()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Resize( + struct struct_Windows_Graphics_SizeInt32 sizePixels) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resize( + *reinterpret_cast( + &sizePixels)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Scroll( + struct struct_Windows_Graphics_PointInt32 offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scroll( + *reinterpret_cast( + &offset)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollRect( + struct struct_Windows_Graphics_PointInt32 offset, + struct struct_Windows_Graphics_RectInt32 scrollRect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scroll( + *reinterpret_cast(&offset), + *reinterpret_cast( + &scrollRect)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollWithClip( + struct struct_Windows_Graphics_PointInt32 offset, + struct struct_Windows_Graphics_RectInt32 clipRect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollWithClip( + *reinterpret_cast(&offset), + *reinterpret_cast( + &clipRect)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollRectWithClip( + struct struct_Windows_Graphics_PointInt32 offset, + struct struct_Windows_Graphics_RectInt32 clipRect, + struct struct_Windows_Graphics_RectInt32 scrollRect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollWithClip( + *reinterpret_cast(&offset), + *reinterpret_cast( + &clipRect), + *reinterpret_cast( + &scrollRect)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionDrawingSurfaceFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionEasingFunction> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionEasingFunctionFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics> + : produce_base { + int32_t __stdcall CreateCubicBezierEasingFunction( + void* owner, winrt::Windows::Foundation::Numerics::float2 controlPoint1, + winrt::Windows::Foundation::Numerics::float2 controlPoint2, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CubicBezierEasingFunction>( + this->shim().CreateCubicBezierEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>(&owner), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float2 const*>( + &controlPoint1), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float2 const*>( + &controlPoint2))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateLinearEasingFunction(void* owner, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateLinearEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateStepEasingFunction(void* owner, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateStepEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateStepEasingFunctionWithStepCount( + void* owner, int32_t stepCount, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateStepEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + stepCount)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBackEasingFunction(void* owner, int32_t mode, + float amplitude, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateBackEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + *reinterpret_cast( + &mode), + amplitude)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBounceEasingFunction(void* owner, int32_t mode, + int32_t bounces, + float bounciness, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateBounceEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + *reinterpret_cast( + &mode), + bounces, bounciness)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateCircleEasingFunction(void* owner, int32_t mode, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateCircleEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + *reinterpret_cast( + &mode))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateElasticEasingFunction(void* owner, int32_t mode, + int32_t oscillations, + float springiness, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateElasticEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + *reinterpret_cast( + &mode), + oscillations, springiness)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateExponentialEasingFunction( + void* owner, int32_t mode, float exponent, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::ExponentialEasingFunction>( + this->shim().CreateExponentialEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>(&owner), + *reinterpret_cast(&mode), + exponent)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePowerEasingFunction(void* owner, int32_t mode, + float power, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreatePowerEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + *reinterpret_cast( + &mode), + power)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSineEasingFunction(void* owner, int32_t mode, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateSineEasingFunction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &owner), + *reinterpret_cast( + &mode))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetSourceParameter(void* name, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetSourceParameter( + *reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetSourceParameter(void* name, void* source) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetSourceParameter( + *reinterpret_cast(&name), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &source)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionEffectFactory> { + int32_t __stdcall CreateBrush(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtendedError(winrt::hresult* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtendedError()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LoadStatus(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEffectFactoryLoadStatus>( + this->shim().LoadStatus()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionEffectSourceParameter> + : produce_base { + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::ICompositionEffectSourceParameterFactory> + : produce_base { + int32_t __stdcall Create(void* name, void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEffectSourceParameter>( + this->shim().Create(*reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionEllipseGeometry> { + int32_t __stdcall get_Center( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Center()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Center( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Center( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Radius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Radius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Radius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Radius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGeometricClip> { + int32_t __stdcall get_Geometry(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Geometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Geometry(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Geometry( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionGeometry const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewBox(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ViewBox()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ViewBox(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ViewBox( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionViewBox const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TrimEnd(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TrimEnd()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TrimEnd(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TrimEnd(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TrimOffset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TrimOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TrimOffset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TrimOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TrimStart(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TrimStart()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TrimStart(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TrimStart(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGeometryFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGradientBrush> { + int32_t __stdcall get_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AnchorPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColorStops(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorStops()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtendMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionGradientExtendMode>( + this->shim().ExtendMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExtendMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExtendMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InterpolationSpace(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().InterpolationSpace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InterpolationSpace(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InterpolationSpace( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionColorSpace const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngleInDegrees(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float3x2 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGradientBrush2> { + int32_t __stdcall get_MappingMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().MappingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MappingMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MappingMode( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionMappingMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionGradientBrushFactory> + : produce_base< + D, + winrt::Microsoft::UI::Composition::ICompositionGradientBrushFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice> { + int32_t __stdcall CreateDrawingSurface( + winrt::Windows::Foundation::Size sizePixels, int32_t pixelFormat, + int32_t alphaMode, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionDrawingSurface>( + this->shim().CreateDrawingSurface( + *reinterpret_cast( + &sizePixels), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const*>( + &pixelFormat), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const*>( + &alphaMode))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_RenderingDeviceReplaced( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().RenderingDeviceReplaced( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_RenderingDeviceReplaced( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().RenderingDeviceReplaced( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice2> { + int32_t __stdcall CreateDrawingSurface2( + struct struct_Windows_Graphics_SizeInt32 sizePixels, int32_t pixelFormat, + int32_t alphaMode, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionDrawingSurface>( + this->shim().CreateDrawingSurface2( + *reinterpret_cast( + &sizePixels), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const*>( + &pixelFormat), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const*>( + &alphaMode))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateVirtualDrawingSurface( + struct struct_Windows_Graphics_SizeInt32 sizePixels, int32_t pixelFormat, + int32_t alphaMode, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionVirtualDrawingSurface>( + this->shim().CreateVirtualDrawingSurface( + *reinterpret_cast( + &sizePixels), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const*>( + &pixelFormat), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const*>( + &alphaMode))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice3> { + int32_t __stdcall CreateMipmapSurface( + struct struct_Windows_Graphics_SizeInt32 sizePixels, int32_t pixelFormat, + int32_t alphaMode, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionMipmapSurface>( + this->shim().CreateMipmapSurface( + *reinterpret_cast( + &sizePixels), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const*>( + &pixelFormat), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const*>( + &alphaMode))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Trim() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Trim(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionGraphicsDevice4> { + int32_t __stdcall CaptureAsync(void* captureVisual, + struct struct_Windows_Graphics_SizeInt32 size, + int32_t pixelFormat, int32_t alphaMode, + float sdrBoost, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().CaptureAsync( + *reinterpret_cast( + &captureVisual), + *reinterpret_cast( + &size), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXPixelFormat const*>( + &pixelFormat), + *reinterpret_cast< + winrt::Microsoft::Graphics::DirectX::DirectXAlphaMode const*>( + &alphaMode), + sdrBoost)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Targets(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::VisualUnorderedCollection>( + this->shim().Targets()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ExclusionsFromTargets(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::VisualUnorderedCollection>( + this->shim().ExclusionsFromTargets()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionLightFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionLineGeometry> { + int32_t __stdcall get_Start( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Start()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Start( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Start( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_End( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().End()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_End( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().End( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionLinearGradientBrush> + : produce_base< + D, + winrt::Microsoft::UI::Composition::ICompositionLinearGradientBrush> { + int32_t __stdcall get_EndPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EndPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EndPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EndPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StartPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StartPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mask(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Mask()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Mask(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Mask( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Source(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Source( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionMipmapSurface> { + int32_t __stdcall get_LevelCount(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LevelCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlphaMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlphaMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelFormat(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().PixelFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SizeInt32( + struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SizeInt32()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDrawingSurfaceForLevel(uint32_t level, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionDrawingSurface>( + this->shim().GetDrawingSurfaceForLevel(level)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionNineGridBrush> { + int32_t __stdcall get_BottomInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BottomInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BottomInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BottomInsetScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomInsetScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BottomInsetScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BottomInsetScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCenterHollow(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCenterHollow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsCenterHollow(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsCenterHollow(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LeftInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LeftInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LeftInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LeftInsetScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftInsetScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LeftInsetScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LeftInsetScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RightInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RightInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightInsetScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightInsetScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RightInsetScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RightInsetScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Source(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Source( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TopInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TopInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TopInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TopInsetScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopInsetScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TopInsetScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TopInsetScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetInsets(float inset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetInsets(inset); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetInsetsWithValues(float left, float top, float right, + float bottom) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetInsets(left, top, right, bottom); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetInsetScales(float scale) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetInsetScales(scale); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetInsetScalesWithValues(float left, float top, float right, + float bottom) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetInsetScales(left, top, right, bottom); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Compositor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Compositor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Properties(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Properties()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartAnimation(void* propertyName, + void* animation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartAnimation( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &animation)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StopAnimation(void* propertyName) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StopAnimation( + *reinterpret_cast(&propertyName)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Comment(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Comment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Comment(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Comment(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ImplicitAnimations(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::ImplicitAnimationCollection>( + this->shim().ImplicitAnimations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ImplicitAnimations(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ImplicitAnimations( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartAnimationGroup(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartAnimationGroup( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StopAnimationGroup(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StopAnimationGroup( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall TryGetAnimationController(void* propertyName, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().TryGetAnimationController( + *reinterpret_cast(&propertyName))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall StartAnimationWithController( + void* propertyName, void* animation, + void* animationController) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartAnimation( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &animation), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationController const*>( + &animationController)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionObjectFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionObjectStatics> { + int32_t __stdcall StartAnimationWithIAnimationObject( + void* target, void* propertyName, void* animation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartAnimationWithIAnimationObject( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::IAnimationObject const*>( + &target), + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &animation)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartAnimationGroupWithIAnimationObject( + void* target, void* animation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartAnimationGroupWithIAnimationObject( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::IAnimationObject const*>( + &target), + *reinterpret_cast(&animation)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* source, void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionPath>(this->shim().Create( + *reinterpret_cast( + &source))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionPathGeometry> { + int32_t __stdcall get_Path(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Path()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Path(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Path( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionPath const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionProjectedShadow> { + int32_t __stdcall get_BlurRadiusMultiplier(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlurRadiusMultiplier()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BlurRadiusMultiplier(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BlurRadiusMultiplier(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Casters(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Casters()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LightSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LightSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LightSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LightSource( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionLight const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxBlurRadius(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxBlurRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxBlurRadius(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxBlurRadius(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinBlurRadius(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinBlurRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinBlurRadius(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinBlurRadius(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Receivers(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Receivers()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionProjectedShadowCaster> + : produce_base { + int32_t __stdcall get_Brush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Brush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Brush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Brush( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CastingVisual(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CastingVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CastingVisual(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CastingVisual( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Count(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAbove(void* newCaster, void* reference) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAbove( + *reinterpret_cast( + &newCaster), + *reinterpret_cast( + &reference)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAtBottom(void* newCaster) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAtBottom( + *reinterpret_cast( + &newCaster)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAtTop(void* newCaster) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAtTop( + *reinterpret_cast( + &newCaster)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertBelow(void* newCaster, void* reference) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertBelow( + *reinterpret_cast( + &newCaster), + *reinterpret_cast( + &reference)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Remove(void* caster) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Remove( + *reinterpret_cast( + &caster)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAll() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MaxRespectedCasters(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxRespectedCasters()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionProjectedShadowReceiver> + : produce_base { + int32_t __stdcall get_ReceivingVisual(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ReceivingVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ReceivingVisual(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReceivingVisual( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Add(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Add( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Count(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Remove(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Remove( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAll() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall InsertColor( + void* propertyName, struct struct_Windows_UI_Color value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertColor( + *reinterpret_cast(&propertyName), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertMatrix3x2( + void* propertyName, + winrt::Windows::Foundation::Numerics::float3x2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertMatrix3x2( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float3x2 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertMatrix4x4( + void* propertyName, + winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertMatrix4x4( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float4x4 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertQuaternion( + void* propertyName, + winrt::Windows::Foundation::Numerics::quaternion value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertQuaternion( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertScalar(void* propertyName, float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertScalar(*reinterpret_cast(&propertyName), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertVector2( + void* propertyName, + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertVector2( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertVector3( + void* propertyName, + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertVector3( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertVector4( + void* propertyName, + winrt::Windows::Foundation::Numerics::float4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertVector4( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetColor(void* propertyName, + struct struct_Windows_UI_Color* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetColor( + *reinterpret_cast(&propertyName), + *reinterpret_cast(value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetMatrix3x2( + void* propertyName, winrt::Windows::Foundation::Numerics::float3x2* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetMatrix3x2( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetMatrix4x4( + void* propertyName, winrt::Windows::Foundation::Numerics::float4x4* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetMatrix4x4( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetQuaternion( + void* propertyName, + winrt::Windows::Foundation::Numerics::quaternion* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetQuaternion( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion*>(value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetScalar(void* propertyName, float* value, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetScalar( + *reinterpret_cast(&propertyName), *value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetVector2( + void* propertyName, winrt::Windows::Foundation::Numerics::float2* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetVector2( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetVector3( + void* propertyName, winrt::Windows::Foundation::Numerics::float3* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetVector3( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetVector4( + void* propertyName, winrt::Windows::Foundation::Numerics::float4* value, + int32_t* result) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetVector4( + *reinterpret_cast(&propertyName), + *reinterpret_cast( + value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionPropertySet2> { + int32_t __stdcall InsertBoolean(void* propertyName, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertBoolean(*reinterpret_cast(&propertyName), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetBoolean(void* propertyName, bool* value, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGetValueStatus>( + this->shim().TryGetBoolean( + *reinterpret_cast(&propertyName), *value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush> + : produce_base< + D, + winrt::Microsoft::UI::Composition::ICompositionRadialGradientBrush> { + int32_t __stdcall get_EllipseCenter( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EllipseCenter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EllipseCenter( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EllipseCenter( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EllipseRadius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EllipseRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EllipseRadius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EllipseRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GradientOriginOffset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GradientOriginOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GradientOriginOffset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GradientOriginOffset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionRectangleGeometry> { + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Size( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Size( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry> + : produce_base { + int32_t __stdcall get_CornerRadius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CornerRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CornerRadius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Size( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Size( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsActive(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActive()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEnded(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnded()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall End() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().End(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Resume() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resume(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Suspend() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Suspend(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Completed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Completed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Completed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Completed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionShadowFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngleInDegrees(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float3x2 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionShapeFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FillBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillBrush( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Geometry(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Geometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Geometry(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Geometry( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionGeometry const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsStrokeNonScaling(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStrokeNonScaling()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsStrokeNonScaling(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsStrokeNonScaling(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeBrush( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashArray(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionStrokeDashArray>( + this->shim().StrokeDashArray()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashCap(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StrokeDashCap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeDashCap(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeDashCap( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionStrokeCap const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashOffset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StrokeDashOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeDashOffset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeDashOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeEndCap(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StrokeEndCap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeEndCap(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeEndCap( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionStrokeCap const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeLineJoin(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionStrokeLineJoin>( + this->shim().StrokeLineJoin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeLineJoin(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeLineJoin( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeMiterLimit(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StrokeMiterLimit()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeMiterLimit(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeMiterLimit(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeStartCap(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StrokeStartCap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeStartCap(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeStartCap( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionStrokeCap const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeThickness(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StrokeThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeThickness(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeThickness(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionSupportsSystemBackdrop> + : produce_base { + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Windows::UI::Composition::CompositionBrush const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush> { + int32_t __stdcall get_BitmapInterpolationMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionBitmapInterpolationMode>( + this->shim().BitmapInterpolationMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BitmapInterpolationMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().BitmapInterpolationMode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAlignmentRatio(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalAlignmentRatio(float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAlignmentRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Stretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionStretch const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Surface(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Surface()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Surface(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Surface( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ICompositionSurface const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAlignmentRatio(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalAlignmentRatio(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAlignmentRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush2> { + int32_t __stdcall get_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AnchorPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngleInDegrees(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransformMatrix( + winrt::Windows::Foundation::Numerics::float3x2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float3x2 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionSurfaceBrush3> { + int32_t __stdcall get_SnapToPixels(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SnapToPixels()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SnapToPixels(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SnapToPixels(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionSurfaceFacade> { + int32_t __stdcall GetRealSurface(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetRealSurface()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionTransformFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HorizontalAlignmentRatio(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalAlignmentRatio(float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAlignmentRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Size( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Size( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Stretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionStretch const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAlignmentRatio(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalAlignmentRatio(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAlignmentRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositionVirtualDrawingSurface> + : produce_base { + int32_t __stdcall Trim( + uint32_t __rectsSize, + struct struct_Windows_Graphics_RectInt32* rects) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Trim(array_view( + reinterpret_cast(rects), + reinterpret_cast(rects) + + __rectsSize)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Composition::ICompositionVirtualDrawingSurfaceFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositionVisualSurface> { + int32_t __stdcall get_SourceVisual(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourceVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SourceVisual(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SourceVisual( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SourceOffset( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourceOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SourceOffset( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SourceOffset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SourceSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourceSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SourceSize( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SourceSize( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateColorKeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateColorKeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateColorBrush(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateColorBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateColorBrushWithColor( + struct struct_Windows_UI_Color color, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateColorBrush( + *reinterpret_cast(&color))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateContainerVisual(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateContainerVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateCubicBezierEasingFunction( + winrt::Windows::Foundation::Numerics::float2 controlPoint1, + winrt::Windows::Foundation::Numerics::float2 controlPoint2, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CubicBezierEasingFunction>( + this->shim().CreateCubicBezierEasingFunction( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float2 const*>( + &controlPoint1), + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float2 const*>( + &controlPoint2))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateEffectFactory(void* graphicsEffect, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionEffectFactory>( + this->shim().CreateEffectFactory( + *reinterpret_cast< + winrt::Windows::Graphics::Effects::IGraphicsEffect const*>( + &graphicsEffect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateEffectFactoryWithProperties( + void* graphicsEffect, void* animatableProperties, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionEffectFactory>( + this->shim().CreateEffectFactory( + *reinterpret_cast< + winrt::Windows::Graphics::Effects::IGraphicsEffect const*>( + &graphicsEffect), + *reinterpret_cast const*>( + &animatableProperties))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateExpressionAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateExpressionAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateExpressionAnimationWithExpression( + void* expression, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateExpressionAnimation( + *reinterpret_cast(&expression))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInsetClip(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateInsetClip()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInsetClipWithInsets(float leftInset, float topInset, + float rightInset, + float bottomInset, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateInsetClip(leftInset, topInset, rightInset, + bottomInset)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateLinearEasingFunction(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateLinearEasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePropertySet(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreatePropertySet()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateQuaternionKeyFrameAnimation( + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::QuaternionKeyFrameAnimation>( + this->shim().CreateQuaternionKeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateScalarKeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateScalarKeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateScopedBatch(uint32_t batchType, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateScopedBatch( + *reinterpret_cast( + &batchType))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpriteVisual(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateSpriteVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSurfaceBrush(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateSurfaceBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSurfaceBrushWithSurface(void* surface, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateSurfaceBrush( + *reinterpret_cast(&surface))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateVector2KeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Vector2KeyFrameAnimation>( + this->shim().CreateVector2KeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateVector3KeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Vector3KeyFrameAnimation>( + this->shim().CreateVector3KeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateVector4KeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::Vector4KeyFrameAnimation>( + this->shim().CreateVector4KeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCommitBatch(uint32_t batchType, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetCommitBatch( + *reinterpret_cast( + &batchType))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateAmbientLight(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateAmbientLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateAnimationGroup(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionAnimationGroup>( + this->shim().CreateAnimationGroup()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBackdropBrush(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionBackdropBrush>( + this->shim().CreateBackdropBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateDistantLight(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateDistantLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateDropShadow(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateDropShadow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateImplicitAnimationCollection( + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::ImplicitAnimationCollection>( + this->shim().CreateImplicitAnimationCollection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateLayerVisual(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateLayerVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateMaskBrush(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateMaskBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateNineGridBrush(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionNineGridBrush>( + this->shim().CreateNineGridBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePointLight(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreatePointLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpotLight(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateSpotLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateStepEasingFunction(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateStepEasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateStepEasingFunctionWithStepCount( + int32_t stepCount, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateStepEasingFunction(stepCount)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateColorGradientStop(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionColorGradientStop>( + this->shim().CreateColorGradientStop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateColorGradientStopWithOffsetAndColor( + float offset, struct struct_Windows_UI_Color color, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionColorGradientStop>( + this->shim().CreateColorGradientStop( + offset, + *reinterpret_cast(&color))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateLinearGradientBrush(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionLinearGradientBrush>( + this->shim().CreateLinearGradientBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpringScalarAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::SpringScalarNaturalMotionAnimation>( + this->shim().CreateSpringScalarAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpringVector2Animation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::SpringVector2NaturalMotionAnimation>( + this->shim().CreateSpringVector2Animation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpringVector3Animation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::SpringVector3NaturalMotionAnimation>( + this->shim().CreateSpringVector3Animation()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Comment(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Comment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Comment(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Comment(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalPlaybackRate(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlobalPlaybackRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GlobalPlaybackRate(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GlobalPlaybackRate(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBounceScalarAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::BounceScalarNaturalMotionAnimation>( + this->shim().CreateBounceScalarAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBounceVector2Animation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::BounceVector2NaturalMotionAnimation>( + this->shim().CreateBounceVector2Animation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBounceVector3Animation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::BounceVector3NaturalMotionAnimation>( + this->shim().CreateBounceVector3Animation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateContainerShape(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionContainerShape>( + this->shim().CreateContainerShape()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateEllipseGeometry(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionEllipseGeometry>( + this->shim().CreateEllipseGeometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateLineGeometry(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateLineGeometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePathGeometry(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreatePathGeometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePathGeometryWithPath(void* path, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreatePathGeometry( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionPath const*>( + &path))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePathKeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreatePathKeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRectangleGeometry(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionRectangleGeometry>( + this->shim().CreateRectangleGeometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRoundedRectangleGeometry(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionRoundedRectangleGeometry>( + this->shim().CreateRoundedRectangleGeometry()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateShapeVisual(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateShapeVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpriteShape(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateSpriteShape()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateSpriteShapeWithGeometry(void* geometry, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateSpriteShape( + *reinterpret_cast(&geometry))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateViewBox(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateViewBox()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RequestCommitAsync(void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().RequestCommitAsync()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateGeometricClip(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGeometricClip>( + this->shim().CreateGeometricClip()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateGeometricClipWithGeometry( + void* geometry, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionGeometricClip>( + this->shim().CreateGeometricClip( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionGeometry const*>( + &geometry))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRedirectVisual(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateRedirectVisual()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRedirectVisualWithSourceVisual( + void* source, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateRedirectVisual( + *reinterpret_cast( + &source))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateBooleanKeyFrameAnimation(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::BooleanKeyFrameAnimation>( + this->shim().CreateBooleanKeyFrameAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateAnimationPropertyInfo(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateAnimationPropertyInfo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRectangleClip(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateRectangleClip()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRectangleClipWithSides(float left, float top, + float right, float bottom, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateRectangleClip(left, top, right, bottom)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateRectangleClipWithSidesAndRadius( + float left, float top, float right, float bottom, + winrt::Windows::Foundation::Numerics::float2 topLeftRadius, + winrt::Windows::Foundation::Numerics::float2 topRightRadius, + winrt::Windows::Foundation::Numerics::float2 bottomRightRadius, + winrt::Windows::Foundation::Numerics::float2 bottomLeftRadius, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CreateRectangleClip( + left, top, right, bottom, + *reinterpret_cast( + &topLeftRadius), + *reinterpret_cast( + &topRightRadius), + *reinterpret_cast( + &bottomRightRadius), + *reinterpret_cast( + &bottomLeftRadius))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateAnimationController(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateAnimationController()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MaxGlobalPlaybackRate(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxGlobalPlaybackRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinGlobalPlaybackRate(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinGlobalPlaybackRate()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ICompositorWithProjectedShadow> + : produce_base< + D, + winrt::Microsoft::UI::Composition::ICompositorWithProjectedShadow> { + int32_t __stdcall CreateProjectedShadowCaster(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionProjectedShadowCaster>( + this->shim().CreateProjectedShadowCaster()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateProjectedShadow(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionProjectedShadow>( + this->shim().CreateProjectedShadow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateProjectedShadowReceiver(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionProjectedShadowReceiver>( + this->shim().CreateProjectedShadowReceiver()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositorWithRadialGradient> { + int32_t __stdcall CreateRadialGradientBrush(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionRadialGradientBrush>( + this->shim().CreateRadialGradientBrush()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICompositorWithVisualSurface> { + int32_t __stdcall CreateVisualSurface(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition::CompositionVisualSurface>( + this->shim().CreateVisualSurface()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Children(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Children()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::ICubicBezierEasingFunction> { + int32_t __stdcall get_ControlPoint1( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ControlPoint1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ControlPoint2( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ControlPoint2()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoordinateSpace(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CoordinateSpace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CoordinateSpace(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CoordinateSpace( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Direction( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Direction( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Direction( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Intensity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Intensity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Intensity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Intensity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_BlurRadius(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlurRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BlurRadius(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BlurRadius(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Mask(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Mask()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Mask(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Mask( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Opacity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Opacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Opacity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Opacity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SourcePolicy(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionDropShadowSourcePolicy>( + this->shim().SourcePolicy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SourcePolicy(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SourcePolicy( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Oscillations(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Oscillations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Springiness(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Springiness()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IExponentialEasingFunction> { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Exponent(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Exponent()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Expression(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Expression()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Expression(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Expression(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IImplicitAnimationCollection> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_BottomInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BottomInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BottomInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LeftInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LeftInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LeftInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RightInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RightInset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TopInset(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TopInset(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TopInset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DelayTime(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DelayTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DelayTime(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DelayTime( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Duration(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Duration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Duration(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Duration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IterationBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::AnimationIterationBehavior>( + this->shim().IterationBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IterationBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IterationBehavior( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IterationCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IterationCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IterationCount(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IterationCount(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyFrameCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyFrameCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StopBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StopBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StopBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StopBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationStopBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertExpressionKeyFrame(float normalizedProgressKey, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertExpressionKeyFrame( + normalizedProgressKey, *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertExpressionKeyFrameWithEasingFunction( + float normalizedProgressKey, void* value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertExpressionKeyFrame( + normalizedProgressKey, *reinterpret_cast(&value), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Direction(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Direction(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Direction( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationDirection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DelayBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DelayBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DelayBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DelayBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationDelayBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IKeyFrameAnimationFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Effect(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Effect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Effect(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Effect( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionEffectBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Shadow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Shadow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Shadow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Shadow( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionShadow const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DelayBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DelayBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DelayBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DelayBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationDelayBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DelayTime(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DelayTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DelayTime(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DelayTime( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StopBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StopBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StopBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StopBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationStopBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::INaturalMotionAnimationFactory> + : produce_base< + D, + winrt::Microsoft::UI::Composition::INaturalMotionAnimationFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall InsertKeyFrame(float normalizedProgressKey, + void* path) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionPath const*>(&path)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, void* path, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionPath const*>(&path), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ConstantAttenuation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ConstantAttenuation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ConstantAttenuation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConstantAttenuation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoordinateSpace(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CoordinateSpace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CoordinateSpace(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CoordinateSpace( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LinearAttenuation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LinearAttenuation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LinearAttenuation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LinearAttenuation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_QuadraticAttenuation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().QuadraticAttenuation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_QuadraticAttenuation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().QuadraticAttenuation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Intensity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Intensity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Intensity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Intensity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MinAttenuationCutoff(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinAttenuationCutoff()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinAttenuationCutoff(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinAttenuationCutoff(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxAttenuationCutoff(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxAttenuationCutoff()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxAttenuationCutoff(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxAttenuationCutoff(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Power(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Power()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IQuaternionKeyFrameAnimation> { + int32_t __stdcall InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::quaternion value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::quaternion value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion const*>(&value), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Bottom(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bottom()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Bottom(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Bottom(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BottomLeftRadius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BottomLeftRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BottomLeftRadius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BottomLeftRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BottomRightRadius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BottomRightRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BottomRightRadius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BottomRightRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Left(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Left()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Left(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Left(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Right(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Right()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Right(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Right(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Top(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Top()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Top(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Top(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TopLeftRadius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TopLeftRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TopLeftRadius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TopLeftRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TopRightRadius( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TopRightRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TopRightRadius( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TopRightRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Source(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Source( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IRenderingDeviceReplacedEventArgs> + : produce_base { + int32_t __stdcall get_GraphicsDevice(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionGraphicsDevice>( + this->shim().GraphicsDevice()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IScalarKeyFrameAnimation> { + int32_t __stdcall InsertKeyFrame(float normalizedProgressKey, + float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame(normalizedProgressKey, value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, float value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, value, + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimation> { + int32_t __stdcall get_FinalValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().FinalValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FinalValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FinalValue( + *reinterpret_cast const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().InitialValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialValue( + *reinterpret_cast const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialVelocity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InitialVelocity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialVelocity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialVelocity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimationFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Shapes(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionShapeCollection>( + this->shim().Shapes()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewBox(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ViewBox()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ViewBox(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ViewBox( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionViewBox const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode>( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ConstantAttenuation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ConstantAttenuation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ConstantAttenuation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConstantAttenuation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoordinateSpace(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CoordinateSpace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CoordinateSpace(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CoordinateSpace( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Direction( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Direction( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Direction( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InnerConeAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InnerConeAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InnerConeAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InnerConeAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InnerConeAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InnerConeAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InnerConeAngleInDegrees(float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InnerConeAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InnerConeColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().InnerConeColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InnerConeColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InnerConeColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LinearAttenuation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LinearAttenuation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LinearAttenuation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LinearAttenuation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OuterConeAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OuterConeAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OuterConeAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OuterConeAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OuterConeAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OuterConeAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OuterConeAngleInDegrees(float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().OuterConeAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OuterConeColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().OuterConeColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OuterConeColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OuterConeColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_QuadraticAttenuation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().QuadraticAttenuation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_QuadraticAttenuation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().QuadraticAttenuation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_InnerConeIntensity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InnerConeIntensity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InnerConeIntensity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InnerConeIntensity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OuterConeIntensity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OuterConeIntensity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OuterConeIntensity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OuterConeIntensity(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MinAttenuationCutoff(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinAttenuationCutoff()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinAttenuationCutoff(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinAttenuationCutoff(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxAttenuationCutoff(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxAttenuationCutoff()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxAttenuationCutoff(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxAttenuationCutoff(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ISpringScalarNaturalMotionAnimation> + : produce_base { + int32_t __stdcall get_DampingRatio(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DampingRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DampingRatio(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DampingRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Period(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Period()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Period(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Period( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ISpringVector2NaturalMotionAnimation> + : produce_base { + int32_t __stdcall get_DampingRatio(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DampingRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DampingRatio(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DampingRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Period(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Period()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Period(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Period( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::ISpringVector3NaturalMotionAnimation> + : produce_base { + int32_t __stdcall get_DampingRatio(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DampingRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DampingRatio(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DampingRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Period(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Period()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Period(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Period( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Brush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Brush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Brush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Brush( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Shadow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Shadow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Shadow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Shadow( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionShadow const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FinalStep(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FinalStep()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FinalStep(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FinalStep(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialStep(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InitialStep()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialStep(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialStep(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsFinalStepSingleFrame(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFinalStepSingleFrame()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsFinalStepSingleFrame(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsFinalStepSingleFrame(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInitialStepSingleFrame(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInitialStepSingleFrame()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsInitialStepSingleFrame(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().IsInitialStepSingleFrame(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StepCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StepCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StepCount(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StepCount(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IVector2KeyFrameAnimation> { + int32_t __stdcall InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float2 value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast( + &value), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation> + : produce_base< + D, + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimation> { + int32_t __stdcall get_FinalValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().FinalValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FinalValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FinalValue( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().InitialValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialValue( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialVelocity( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InitialVelocity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialVelocity( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialVelocity( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimationFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IVector3KeyFrameAnimation> { + int32_t __stdcall InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float3 value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast( + &value), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation> + : produce_base< + D, + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimation> { + int32_t __stdcall get_FinalValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().FinalValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FinalValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FinalValue( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().InitialValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialValue( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InitialVelocity( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InitialVelocity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialVelocity( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialVelocity( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimationFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IVector4KeyFrameAnimation> { + int32_t __stdcall InsertKeyFrame( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertKeyFrameWithEasingFunction( + float normalizedProgressKey, + winrt::Windows::Foundation::Numerics::float4 value, + void* easingFunction) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertKeyFrame( + normalizedProgressKey, + *reinterpret_cast( + &value), + *reinterpret_cast( + &easingFunction)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AnchorPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AnchorPoint( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BackfaceVisibility(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionBackfaceVisibility>( + this->shim().BackfaceVisibility()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BackfaceVisibility(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BackfaceVisibility( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BorderMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().BorderMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BorderMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BorderMode( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBorderMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterPoint( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterPoint( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Clip(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Clip()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Clip(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Clip( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionClip const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CompositeMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionCompositeMode>( + this->shim().CompositeMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CompositeMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CompositeMode( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionCompositeMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Opacity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Opacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Opacity(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Opacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Orientation( + winrt::Windows::Foundation::Numerics::quaternion* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Orientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Orientation( + winrt::Windows::Foundation::Numerics::quaternion value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::quaternion const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleInDegrees(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngleInDegrees()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngleInDegrees(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngleInDegrees(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAxis( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationAxis()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAxis( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAxis( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Size( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Size( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float4x4 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ParentForTransform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ParentForTransform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ParentForTransform(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ParentForTransform( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RelativeOffsetAdjustment( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RelativeOffsetAdjustment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RelativeOffsetAdjustment( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RelativeOffsetAdjustment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RelativeSizeAdjustment( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RelativeSizeAdjustment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RelativeSizeAdjustment( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RelativeSizeAdjustment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsHitTestVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHitTestVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsHitTestVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsHitTestVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsPixelSnappingEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPixelSnappingEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsPixelSnappingEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsPixelSnappingEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Count(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAbove(void* newChild, void* sibling) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAbove( + *reinterpret_cast( + &newChild), + *reinterpret_cast( + &sibling)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAtBottom(void* newChild) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAtBottom( + *reinterpret_cast( + &newChild)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAtTop(void* newChild) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAtTop( + *reinterpret_cast( + &newChild)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertBelow(void* newChild, void* sibling) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertBelow( + *reinterpret_cast( + &newChild), + *reinterpret_cast( + &sibling)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Remove(void* child) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Remove( + *reinterpret_cast( + &child)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAll() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base {}; +template +struct produce + : produce_base { + int32_t __stdcall GetVisualInternal(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetVisualInternal()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Composition::IVisualUnorderedCollection> { + int32_t __stdcall get_Count(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Add(void* newVisual) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Add( + *reinterpret_cast( + &newVisual)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Remove(void* visual) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Remove( + *reinterpret_cast( + &visual)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAll() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Composition { + constexpr auto operator|(CompositionBatchTypes const left, + CompositionBatchTypes const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(CompositionBatchTypes& left, + CompositionBatchTypes const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(CompositionBatchTypes const left, + CompositionBatchTypes const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(CompositionBatchTypes& left, + CompositionBatchTypes const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(CompositionBatchTypes const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(CompositionBatchTypes const left, + CompositionBatchTypes const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(CompositionBatchTypes& left, + CompositionBatchTypes const right) noexcept { + left = left ^ right; + return left; + } + inline auto AnimationController::MaxPlaybackRate() { + return impl::call_factory_cast< + float (*)(IAnimationControllerStatics const&), AnimationController, + IAnimationControllerStatics>([](IAnimationControllerStatics const& f) { + return f.MaxPlaybackRate(); + }); + } + inline auto AnimationController::MinPlaybackRate() { + return impl::call_factory_cast< + float (*)(IAnimationControllerStatics const&), AnimationController, + IAnimationControllerStatics>([](IAnimationControllerStatics const& f) { + return f.MinPlaybackRate(); + }); + } + inline auto CompositionApiInformation::ApiVersion() { + return impl::call_factory_cast< + uint64_t (*)(ICompositionApiInformationStatics const&), + CompositionApiInformation, ICompositionApiInformationStatics>( + [](ICompositionApiInformationStatics const& f) { + return f.ApiVersion(); + }); + } + inline CompositionCapabilities::CompositionCapabilities() + : CompositionCapabilities( + impl::call_factory_cast< + CompositionCapabilities (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CompositionCapabilities>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto CompositionEasingFunction::CreateCubicBezierEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Windows::Foundation::Numerics::float2 const& controlPoint1, + winrt::Windows::Foundation::Numerics::float2 const& controlPoint2) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateCubicBezierEasingFunction(owner, controlPoint1, + controlPoint2); + }); + } + inline auto CompositionEasingFunction::CreateLinearEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateLinearEasingFunction(owner); + }); + } + inline auto CompositionEasingFunction::CreateStepEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateStepEasingFunction(owner); + }); + } + inline auto CompositionEasingFunction::CreateStepEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + int32_t stepCount) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateStepEasingFunction(owner, stepCount); + }); + } + inline auto CompositionEasingFunction::CreateBackEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + float amplitude) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateBackEasingFunction(owner, mode, amplitude); + }); + } + inline auto CompositionEasingFunction::CreateBounceEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + int32_t bounces, float bounciness) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateBounceEasingFunction(owner, mode, bounces, bounciness); + }); + } + inline auto CompositionEasingFunction::CreateCircleEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateCircleEasingFunction(owner, mode); + }); + } + inline auto CompositionEasingFunction::CreateElasticEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + int32_t oscillations, float springiness) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateElasticEasingFunction(owner, mode, oscillations, + springiness); + }); + } + inline auto CompositionEasingFunction::CreateExponentialEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + float exponent) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateExponentialEasingFunction(owner, mode, exponent); + }); + } + inline auto CompositionEasingFunction::CreatePowerEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode, + float power) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreatePowerEasingFunction(owner, mode, power); + }); + } + inline auto CompositionEasingFunction::CreateSineEasingFunction( + winrt::Microsoft::UI::Composition::Compositor const& owner, + winrt::Microsoft::UI::Composition::CompositionEasingFunctionMode const& + mode) { + return impl::call_factory( + [&](ICompositionEasingFunctionStatics const& f) { + return f.CreateSineEasingFunction(owner, mode); + }); + } + inline CompositionEffectSourceParameter::CompositionEffectSourceParameter( + param::hstring const& name) + : CompositionEffectSourceParameter( + impl::call_factory( + [&](ICompositionEffectSourceParameterFactory const& f) { + return f.Create(name); + })) {} + inline auto CompositionObject::StartAnimationWithIAnimationObject( + winrt::Microsoft::UI::Composition::IAnimationObject const& target, + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::CompositionAnimation const& + animation) { + impl::call_factory( + [&](ICompositionObjectStatics const& f) { + return f.StartAnimationWithIAnimationObject(target, propertyName, + animation); + }); + } + inline auto CompositionObject::StartAnimationGroupWithIAnimationObject( + winrt::Microsoft::UI::Composition::IAnimationObject const& target, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) { + impl::call_factory( + [&](ICompositionObjectStatics const& f) { + return f.StartAnimationGroupWithIAnimationObject(target, animation); + }); + } + inline CompositionPath::CompositionPath( + winrt::Windows::Graphics::IGeometrySource2D const& source) + : CompositionPath( + impl::call_factory( + [&](ICompositionPathFactory const& f) { + return f.Create(source); + })) {} + inline auto + CompositionProjectedShadowCasterCollection::MaxRespectedCasters() { + return impl::call_factory_cast< + int32_t (*)(ICompositionProjectedShadowCasterCollectionStatics const&), + CompositionProjectedShadowCasterCollection, + ICompositionProjectedShadowCasterCollectionStatics>( + [](ICompositionProjectedShadowCasterCollectionStatics const& f) { + return f.MaxRespectedCasters(); + }); + } + inline Compositor::Compositor() + : Compositor(impl::call_factory_cast< + Compositor (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Compositor>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Compositor::MaxGlobalPlaybackRate() { + return impl::call_factory_cast( + [](ICompositorStatics const& f) { return f.MaxGlobalPlaybackRate(); }); + } + inline auto Compositor::MinGlobalPlaybackRate() { + return impl::call_factory_cast( + [](ICompositorStatics const& f) { return f.MinGlobalPlaybackRate(); }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IBounceScalarNaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IBounceVector2NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IBounceVector3NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionApiInformationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionBatchCompletedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionColorGradientStopCollection> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionDrawingSurfaceFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionEasingFunctionStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionEffectSourceParameter> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionEffectSourceParameterFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowCaster> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionProjectedShadowReceiver> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionRoundedRectangleGeometry> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionSupportsSystemBackdrop> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionVirtualDrawingSurface> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ICompositionVirtualDrawingSurfaceFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IRenderingDeviceReplacedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IScalarNaturalMotionAnimationFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ISpringScalarNaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ISpringVector2NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::ISpringVector3NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IVector2NaturalMotionAnimationFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::IVector3NaturalMotionAnimationFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::BounceScalarNaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::BounceVector2NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::BounceVector3NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::CompositionBatchCompletedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::CompositionColorGradientStopCollection> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::CompositionProjectedShadowReceiver> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::CompositionRoundedRectangleGeometry> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::SpringScalarNaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::SpringVector2NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Composition::SpringVector3NaturalMotionAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Content.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Content.h new file mode 100644 index 00000000..2de12eff --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Content.h @@ -0,0 +1,7612 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Content_H +#define WINRT_Microsoft_UI_Content_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Content.2.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +#include "winrt/impl/Windows.Graphics.2.h" +#include "winrt/impl/Windows.UI.Composition.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Content_IChildSiteLink::ActualSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IChildSiteLink::ActualSize( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActualSize(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActualSize(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IChildSiteLink::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IChildSiteLink< + D>::LocalToParentTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IChildSiteLink:: + LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LocalToParentTransformMatrix( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LocalToParentTransformMatrix( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IChildSiteLink::SiteView() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IChildSiteLink::Connect( + winrt::Microsoft::UI::Content::ContentIsland const& content) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } +} +template +auto consume_Microsoft_UI_Content_IChildSiteLinkStatics::Create( + winrt::Microsoft::UI::Content::ContentIsland const& parent, + winrt::Microsoft::UI::Composition::ContainerVisual const& placementVisual) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IChildSiteLinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create( + *(void**)(&parent), *(void**)(&placementVisual), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create( + *(void**)(&parent), *(void**)(&placementVisual), &result)); + } + return winrt::Microsoft::UI::Content::ChildSiteLink{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IChildSiteLinkStatics:: + CreateForSystemVisual( + winrt::Microsoft::UI::Content::ContentIsland const& parent, + winrt::Windows::UI::Composition::ContainerVisual const& placementVisual) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IChildSiteLinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IChildSiteLinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForSystemVisual( + *(void**)(&parent), *(void**)(&placementVisual), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForSystemVisual( + *(void**)(&parent), *(void**)(&placementVisual), &result)); + } + return winrt::Microsoft::UI::Content::ChildSiteLink{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter< + D>::ConvertLocalToScreen(winrt::Windows::Foundation::Point const& + localPoint) const { + winrt::Windows::Graphics::PointInt32 result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertLocalToScreenWithPoint( + impl::bind_in(localPoint), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult(_winrt_abi_type->ConvertLocalToScreenWithPoint( + impl::bind_in(localPoint), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter< + D>::ConvertLocalToScreen(array_view + localPoints) const { + uint32_t result_impl_size{}; + struct struct_Windows_Graphics_PointInt32* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertLocalToScreenWithPoints( + localPoints.size(), get_abi(localPoints), &result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult(_winrt_abi_type->ConvertLocalToScreenWithPoints( + localPoints.size(), get_abi(localPoints), &result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter:: + ConvertLocalToScreen( + array_view localPoints, + winrt::Microsoft::UI::Content::ContentCoordinateRoundingMode const& + roundingMode) const { + uint32_t result_impl_size{}; + struct struct_Windows_Graphics_PointInt32* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ConvertLocalToScreenWithPointsAndRoundingMode( + localPoints.size(), get_abi(localPoints), + static_cast(roundingMode), &result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult( + _winrt_abi_type->ConvertLocalToScreenWithPointsAndRoundingMode( + localPoints.size(), get_abi(localPoints), + static_cast(roundingMode), &result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter< + D>::ConvertLocalToScreen(winrt::Windows::Foundation::Rect const& localRect) + const { + winrt::Windows::Graphics::RectInt32 result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertLocalToScreenWithRect( + impl::bind_in(localRect), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult(_winrt_abi_type->ConvertLocalToScreenWithRect( + impl::bind_in(localRect), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter< + D>::ConvertScreenToLocal(winrt::Windows::Graphics::PointInt32 const& + screenPoint) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertScreenToLocalWithPoint( + impl::bind_in(screenPoint), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult(_winrt_abi_type->ConvertScreenToLocalWithPoint( + impl::bind_in(screenPoint), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter:: + ConvertScreenToLocal(array_view + screenPoints) const { + uint32_t result_impl_size{}; + winrt::Windows::Foundation::Point* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertScreenToLocalWithPoints( + screenPoints.size(), get_abi(screenPoints), &result_impl_size, + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult(_winrt_abi_type->ConvertScreenToLocalWithPoints( + screenPoints.size(), get_abi(screenPoints), &result_impl_size, + &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverter< + D>::ConvertScreenToLocal(winrt::Windows::Graphics::RectInt32 const& + screenRect) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertScreenToLocalWithRect( + impl::bind_in(screenRect), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentCoordinateConverter>**)this; + check_hresult(_winrt_abi_type->ConvertScreenToLocalWithRect( + impl::bind_in(screenRect), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Content_IContentCoordinateConverterStatics:: + CreateForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentCoordinateConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateForWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateForWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentDeferral::Complete() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentDeferral>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentDeferral, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } +} +template +auto consume_Microsoft_UI_Content_IContentEnvironmentSettingChangedEventArgs< + D>::SettingName() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentEnvironmentSettingChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentEnvironmentSettingChangedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SettingName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SettingName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentEnvironmentStateChangedEventArgs< + D>::DidAppWindowIdChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentEnvironmentStateChangedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidAppWindowIdChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidAppWindowIdChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentEnvironmentStateChangedEventArgs< + D>::DidDisplayIdChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentEnvironmentStateChangedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidDisplayIdChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidDisplayIdChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentEnvironmentStateChangedEventArgs2< + D>::DidDisplayScaleChange() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentEnvironmentStateChangedEventArgs2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentEnvironmentStateChangedEventArgs2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidDisplayScaleChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidDisplayScaleChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::ActualSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::AppData() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AppData(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AppData(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::AppData( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AppData(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AppData(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland::CoordinateConverter() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } + return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::CustomProperties() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CustomProperties(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CustomProperties(&value)); + } + return winrt::Windows::Foundation::Collections::IPropertySet{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::Environment() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Environment(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Environment(&value)); + } + return winrt::Microsoft::UI::Content::ContentIslandEnvironment{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::Id() const { + uint64_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Id(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Id(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsConnected() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsConnected(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsConnected(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland< + D>::IsHitTestVisibleWhenTransparent() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHitTestVisibleWhenTransparent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHitTestVisibleWhenTransparent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland< + D>::IsHitTestVisibleWhenTransparent(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHitTestVisibleWhenTransparent(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHitTestVisibleWhenTransparent(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsIslandEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIslandEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIslandEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsIslandEnabled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsIslandEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsIslandEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsIslandVisible() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIslandVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIslandVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsIslandVisible( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsIslandVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsIslandVisible(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsSiteEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSiteEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSiteEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::IsSiteVisible() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSiteVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSiteVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::LayoutDirection() const { + winrt::Microsoft::UI::Content::ContentLayoutDirection value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::RasterizationScale() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::GetAutomationHostProvider() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAutomationHostProvider(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAutomationHostProvider(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::GetStateChangeDeferral() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetStateChangeDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetStateChangeDeferral(&result)); + } + return winrt::Microsoft::UI::Content::ContentDeferral{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::RequestSize( + winrt::Windows::Foundation::Numerics::float2 const& size) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestSize(impl::bind_in(size))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestSize(impl::bind_in(size))); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland:: + AutomationProviderRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIsland, + winrt::Microsoft::UI::Content:: + ContentIslandAutomationProviderRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentIsland:: + AutomationProviderRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIsland, + winrt::Microsoft::UI::Content:: + ContentIslandAutomationProviderRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, AutomationProviderRequested(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentIsland< + D>::AutomationProviderRequested(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AutomationProviderRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AutomationProviderRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland::StateChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIsland, + winrt::Microsoft::UI::Content:: + ContentIslandStateChangedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentIsland::StateChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIsland, + winrt::Microsoft::UI::Content:: + ContentIslandStateChangedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, StateChanged(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentIsland::StateChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIsland2::Children() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Content::ChildSiteLink>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland2< + D>::LocalToClientTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToClientTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToClientTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland2< + D>::LocalToParentTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland2::Popups() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Popups(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Popups(&value)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Content::DesktopPopupSiteBridge>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIsland2::ProcessesKeyboardInput() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIsland2::ProcessesPointerInput() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIsland2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomation< + D>::AutomationOption() const { + winrt::Microsoft::UI::Content::ContentAutomationOptions value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationOption( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationOption( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomation< + D>::FragmentRootAutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FragmentRootAutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FragmentRootAutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomation< + D>::NextSiblingAutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NextSiblingAutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NextSiblingAutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomation< + D>::ParentAutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ParentAutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ParentAutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomation< + D>::PreviousSiblingAutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PreviousSiblingAutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PreviousSiblingAutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs< + D>::AutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs< + D>::AutomationProvider(winrt::Windows::Foundation::IInspectable const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutomationProvider(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutomationProvider(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentIslandAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::AppWindowId() + const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AppWindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AppWindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::DisplayId() + const { + winrt::Microsoft::UI::DisplayId value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::SettingChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIslandEnvironment, + winrt::Microsoft::UI::Content:: + ContentEnvironmentSettingChangedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SettingChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_SettingChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::SettingChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIslandEnvironment, + winrt::Microsoft::UI::Content:: + ContentEnvironmentSettingChangedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, SettingChanged(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::SettingChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SettingChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_SettingChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::StateChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIslandEnvironment, + winrt::Microsoft::UI::Content:: + ContentEnvironmentStateChangedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::StateChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentIslandEnvironment, + winrt::Microsoft::UI::Content:: + ContentEnvironmentStateChangedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, StateChanged(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment::StateChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentIslandEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentIslandEnvironment2::DisplayScale() + const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandEnvironment2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayScale(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs< + D>::DidActualSizeChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidActualSizeChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidActualSizeChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs< + D>::DidSiteEnabledChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidSiteEnabledChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidSiteEnabledChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs< + D>::DidSiteVisibleChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidSiteVisibleChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidSiteVisibleChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs< + D>::DidLayoutDirectionChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidLayoutDirectionChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidLayoutDirectionChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs< + D>::DidRasterizationScaleChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidRasterizationScaleChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidRasterizationScaleChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs2< + D>::DidLocalToClientTransformMatrixChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DidLocalToClientTransformMatrixChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DidLocalToClientTransformMatrixChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs2< + D>::DidLocalToParentTransformMatrixChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DidLocalToParentTransformMatrixChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DidLocalToParentTransformMatrixChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics::Create( + winrt::Microsoft::UI::Composition::Visual const& Root) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&Root), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&Root), &result)); + } + return winrt::Microsoft::UI::Content::ContentIsland{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics:: + FindAllForCompositor( + winrt::Microsoft::UI::Composition::Compositor const& compositor) const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindAllForCompositor( + *(void**)(&compositor), &result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindAllForCompositor( + *(void**)(&compositor), &result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics< + D>::FindAllForCurrentThread() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->FindAllForCurrentThread(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->FindAllForCurrentThread(&result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics::GetByVisual( + winrt::Microsoft::UI::Composition::Visual const& child) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetByVisual(*(void**)(&child), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetByVisual(*(void**)(&child), &result)); + } + return winrt::Microsoft::UI::Content::ContentIsland{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics::GetFromId( + uint64_t id) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFromId(id, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFromId(id, &result)); + } + return winrt::Microsoft::UI::Content::ContentIsland{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics2:: + CreateForSystemVisual( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, + winrt::Windows::UI::Composition::Visual const& root) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForSystemVisual( + *(void**)(&queue), *(void**)(&root), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForSystemVisual( + *(void**)(&queue), *(void**)(&root), &result)); + } + return winrt::Microsoft::UI::Content::ContentIsland{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics2:: + FindAllForSystemCompositor( + winrt::Windows::UI::Composition::Compositor const& compositor) const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindAllForSystemCompositor( + *(void**)(&compositor), &result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindAllForSystemCompositor( + *(void**)(&compositor), &result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentIslandStatics2::GetBySystemVisual( + winrt::Windows::UI::Composition::Visual const& child) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentIslandStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentIslandStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetBySystemVisual(*(void**)(&child), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetBySystemVisual(*(void**)(&child), &result)); + } + return winrt::Microsoft::UI::Content::ContentIsland{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSite::ActualSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::ActualSize( + winrt::Windows::Foundation::Numerics::float2 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActualSize(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActualSize(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::ClientSize() const { + winrt::Windows::Graphics::SizeInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClientSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClientSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::ClientSize( + winrt::Windows::Graphics::SizeInt32 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClientSize(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClientSize(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::CoordinateConverter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } + return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSite::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSite::Environment() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Environment(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Environment(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteEnvironment{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSite::IsConnected() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsConnected(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsConnected(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::IsSiteEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSiteEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSiteEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::IsSiteEnabled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSiteEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSiteEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::IsSiteVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSiteVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSiteVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::IsSiteVisible( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSiteVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSiteVisible(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::LayoutDirection() const { + winrt::Microsoft::UI::Content::ContentLayoutDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::LayoutDirection( + winrt::Microsoft::UI::Content::ContentLayoutDirection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_LayoutDirection(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_LayoutDirection(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::OverrideScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverrideScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverrideScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::OverrideScale( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OverrideScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OverrideScale(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::ParentScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ParentScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ParentScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::ParentScale( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ParentScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ParentScale(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::RasterizationScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite::RequestedSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite< + D>::ShouldApplyRasterizationScale() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldApplyRasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldApplyRasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite< + D>::ShouldApplyRasterizationScale(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShouldApplyRasterizationScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShouldApplyRasterizationScale(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite::View() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_View(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_View(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSite< + D>::GetIslandStateChangeDeferral() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIslandStateChangeDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIslandStateChangeDeferral(&result)); + } + return winrt::Microsoft::UI::Content::ContentDeferral{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSite::RequestedStateChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentSite, + winrt::Microsoft::UI::Content:: + ContentSiteRequestedStateChangedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_RequestedStateChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_RequestedStateChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentSite::RequestedStateChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::ContentSite, + winrt::Microsoft::UI::Content:: + ContentSiteRequestedStateChangedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, RequestedStateChanged(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentSite::RequestedStateChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RequestedStateChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_RequestedStateChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite2< + D>::LocalToClientTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToClientTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToClientTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite2< + D>::LocalToParentTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite2:: + LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LocalToParentTransformMatrix( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LocalToParentTransformMatrix( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite2::ProcessesKeyboardInput() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite2::ProcessesKeyboardInput( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProcessesKeyboardInput(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProcessesKeyboardInput(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSite2::ProcessesPointerInput() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSite2::ProcessesPointerInput( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProcessesPointerInput(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProcessesPointerInput(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation::AutomationOption() + const { + winrt::Microsoft::UI::Content::ContentAutomationOptions value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationOption( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationOption( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation::AutomationOption( + winrt::Microsoft::UI::Content::ContentAutomationOptions const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_AutomationOption(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_AutomationOption(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation< + D>::AutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + FragmentRootAutomationProviderRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_FragmentRootAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_FragmentRootAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + FragmentRootAutomationProviderRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + return impl::make_event_revoker< + D, FragmentRootAutomationProviderRequested_revoker>( + this, FragmentRootAutomationProviderRequested(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation< + D>::FragmentRootAutomationProviderRequested(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_FragmentRootAutomationProviderRequested( + impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_FragmentRootAutomationProviderRequested( + impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + NextSiblingAutomationProviderRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NextSiblingAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NextSiblingAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + NextSiblingAutomationProviderRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + return impl::make_event_revoker< + D, NextSiblingAutomationProviderRequested_revoker>( + this, NextSiblingAutomationProviderRequested(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation< + D>::NextSiblingAutomationProviderRequested(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NextSiblingAutomationProviderRequested( + impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_NextSiblingAutomationProviderRequested( + impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + ParentAutomationProviderRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ParentAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ParentAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + ParentAutomationProviderRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, ParentAutomationProviderRequested(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation< + D>::ParentAutomationProviderRequested(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ParentAutomationProviderRequested( + impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ParentAutomationProviderRequested( + impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + PreviousSiblingAutomationProviderRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_PreviousSiblingAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_PreviousSiblingAutomationProviderRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation:: + PreviousSiblingAutomationProviderRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Content::IContentSiteAutomation, + winrt::Microsoft::UI::Content:: + ContentSiteAutomationProviderRequestedEventArgs> const& handler) + const { + return impl::make_event_revoker< + D, PreviousSiblingAutomationProviderRequested_revoker>( + this, PreviousSiblingAutomationProviderRequested(handler)); +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomation< + D>::PreviousSiblingAutomationProviderRequested(winrt::event_token const& + token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteAutomation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PreviousSiblingAutomationProviderRequested( + impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PreviousSiblingAutomationProviderRequested( + impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs< + D>::AutomationProvider() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationProvider(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationProvider(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs< + D>::AutomationProvider(winrt::Windows::Foundation::IInspectable const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutomationProvider(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutomationProvider(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentSiteAutomationProviderRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteBridge::DispatcherQueue() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteBridge< + D>::LayoutDirectionOverride() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutDirectionOverride(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutDirectionOverride(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Microsoft::UI::Content::ContentLayoutDirection>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteBridge:: + LayoutDirectionOverride( + winrt::Windows::Foundation::IReference< + winrt::Microsoft::UI::Content::ContentLayoutDirection> const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_LayoutDirectionOverride(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_LayoutDirectionOverride(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteBridge::OverrideScale() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverrideScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverrideScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteBridge::OverrideScale( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OverrideScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OverrideScale(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment::AppWindowId() + const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AppWindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AppWindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment::AppWindowId( + winrt::Microsoft::UI::WindowId const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AppWindowId(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AppWindowId(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment::DisplayId() + const { + winrt::Microsoft::UI::DisplayId value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment::DisplayId( + winrt::Microsoft::UI::DisplayId const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayId(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayId(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment::View() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_View(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_View(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteEnvironmentView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment< + D>::NotifySettingChanged(param::hstring const& setting) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NotifySettingChanged(*(void**)(&setting))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->NotifySettingChanged(*(void**)(&setting))); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment2::DisplayScale() + const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironment2::DisplayScale( + float value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironment2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironment2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayScale(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironmentView::AppWindowId() + const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironmentView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AppWindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentSiteEnvironmentView>**)this; + check_hresult(_winrt_abi_type->get_AppWindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironmentView::DisplayId() + const { + winrt::Microsoft::UI::DisplayId value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironmentView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentSiteEnvironmentView>**)this; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteEnvironmentView2< + D>::DisplayScale() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteEnvironmentView2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content::IContentSiteEnvironmentView2>**)this; + check_hresult(_winrt_abi_type->get_DisplayScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesKeyboardInput() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteInput>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteInput, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesKeyboardInput( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteInput>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteInput, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProcessesKeyboardInput(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProcessesKeyboardInput(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesPointerInput() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteInput>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteInput, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesPointerInput( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteInput>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteInput, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProcessesPointerInput(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProcessesPointerInput(value)); + } +} +template +auto consume_Microsoft_UI_Content_IContentSiteLink::Parent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteLink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteLink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Content::ContentIsland{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteRequestedStateChangedEventArgs< + D>::DidRequestedSizeChange() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content:: + IContentSiteRequestedStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Content:: + IContentSiteRequestedStateChangedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidRequestedSizeChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidRequestedSizeChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::ActualSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::ClientSize() const { + winrt::Windows::Graphics::SizeInt32 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClientSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClientSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::CoordinateConverter() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } + return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::EnvironmentView() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnvironmentView(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnvironmentView(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteEnvironmentView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::IsConnected() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsConnected(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsConnected(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::IsSiteEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSiteEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSiteEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::IsSiteVisible() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSiteVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSiteVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::LayoutDirection() const { + winrt::Microsoft::UI::Content::ContentLayoutDirection value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::OverrideScale() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverrideScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverrideScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::ParentScale() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ParentScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ParentScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::RasterizationScale() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView::RequestedSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView< + D>::ShouldApplyRasterizationScale() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldApplyRasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldApplyRasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView2< + D>::LocalToClientTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToClientTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToClientTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView2< + D>::LocalToParentTransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LocalToParentTransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView2::ProcessesKeyboardInput() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesKeyboardInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteView2::ProcessesPointerInput() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IContentSiteView2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteView2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProcessesPointerInput(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IContentSiteViewAutomation< + D>::AutomationOption() const { + winrt::Microsoft::UI::Content::ContentAutomationOptions value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IContentSiteViewAutomation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationOption( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationOption( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridge::SiteView() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridge::WindowId() + const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_WindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridge::Connect( + winrt::Microsoft::UI::Content::ContentIsland const& content) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridgeStatics:: + CreateFromWindowId( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, + winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridgeStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateFromWindowId( + *(void**)(&queue), impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateFromWindowId( + *(void**)(&queue), impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::Content::DesktopAttachedSiteBridge{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopChildSiteBridge::ResizePolicy() + const { + winrt::Microsoft::UI::Content::ContentSizePolicy value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopChildSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopChildSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ResizePolicy(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ResizePolicy(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopChildSiteBridge::ResizePolicy( + winrt::Microsoft::UI::Content::ContentSizePolicy const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopChildSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopChildSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ResizePolicy(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ResizePolicy(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopChildSiteBridge::SiteView() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopChildSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopChildSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopChildSiteBridgeStatics::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor, + winrt::Microsoft::UI::WindowId const& parentWindowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopChildSiteBridgeStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create( + *(void**)(&compositor), impl::bind_in(parentWindowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create( + *(void**)(&compositor), impl::bind_in(parentWindowId), &result)); + } + return winrt::Microsoft::UI::Content::DesktopChildSiteBridge{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopChildSiteBridgeStatics2:: + CreateWithDispatcherQueue( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, + winrt::Microsoft::UI::WindowId const& parentWindowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopChildSiteBridgeStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithDispatcherQueue( + *(void**)(&queue), impl::bind_in(parentWindowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithDispatcherQueue( + *(void**)(&queue), impl::bind_in(parentWindowId), &result)); + } + return winrt::Microsoft::UI::Content::DesktopChildSiteBridge{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::IsEnabled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::IsVisible() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::SiteView() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SiteView(&value)); + } + return winrt::Microsoft::UI::Content::ContentSiteView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::WindowId() const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Connect( + winrt::Microsoft::UI::Content::ContentIsland const& content) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Disable() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Disable()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Disable()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Enable() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Enable()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Enable()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Hide() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::MoveAndResize( + winrt::Windows::Graphics::RectInt32 const& rect) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveAndResize(impl::bind_in(rect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveAndResize(impl::bind_in(rect))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge< + D>::MoveInZOrderAtBottom() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderAtBottom()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderAtBottom()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge< + D>::MoveInZOrderAtTop() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderAtTop()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderAtTop()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::MoveInZOrderBelow( + winrt::Microsoft::UI::WindowId const& windowId) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderBelow(impl::bind_in(windowId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderBelow(impl::bind_in(windowId))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Show() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Show()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Show()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridgeStatics::Create( + winrt::Microsoft::UI::Content::ContentIsland const& parent) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopPopupSiteBridgeStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&parent), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&parent), &result)); + } + return winrt::Microsoft::UI::Content::DesktopPopupSiteBridge{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::IsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::IsVisible() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::WindowId() const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Connect( + winrt::Microsoft::UI::Content::ContentIsland const& content) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Connect(*(void**)(&content))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Disable() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Disable()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Disable()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Enable() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Enable()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Enable()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Hide() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveAndResize( + winrt::Windows::Graphics::RectInt32 const& rect) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveAndResize(impl::bind_in(rect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveAndResize(impl::bind_in(rect))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveInZOrderAtBottom() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderAtBottom()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderAtBottom()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveInZOrderAtTop() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderAtTop()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderAtTop()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveInZOrderBelow( + winrt::Microsoft::UI::WindowId const& windowId) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderBelow(impl::bind_in(windowId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderBelow(impl::bind_in(windowId))); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Show() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Content::IDesktopSiteBridge>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridge, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Show()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Show()); + } +} +template +auto consume_Microsoft_UI_Content_IDesktopSiteBridgeStatics::IsSupported() + const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Content::IDesktopSiteBridgeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Content::IDesktopSiteBridgeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsSupported(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->IsSupported(&result)); + } + return result; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ActualSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ActualSize( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ActualSize( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToParentTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LocalToParentTransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float4x4 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SiteView(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SiteView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Connect(void* content) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Connect( + *reinterpret_cast( + &content)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* parent, void* placementVisual, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Content::ChildSiteLink>(this->shim().Create( + *reinterpret_cast( + &parent), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::ContainerVisual const*>( + &placementVisual))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForSystemVisual(void* parent, void* placementVisual, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForSystemVisual( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>(&parent), + *reinterpret_cast< + winrt::Windows::UI::Composition::ContainerVisual const*>( + &placementVisual))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall ConvertLocalToScreenWithPoint( + winrt::Windows::Foundation::Point localPoint, + struct struct_Windows_Graphics_PointInt32* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ConvertLocalToScreen( + *reinterpret_cast( + &localPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertLocalToScreenWithPoints( + uint32_t __localPointsSize, + winrt::Windows::Foundation::Point* localPoints, uint32_t* __resultSize, + struct struct_Windows_Graphics_PointInt32** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().ConvertLocalToScreen( + array_view( + reinterpret_cast( + localPoints), + reinterpret_cast( + localPoints) + + __localPointsSize))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertLocalToScreenWithPointsAndRoundingMode( + uint32_t __localPointsSize, + winrt::Windows::Foundation::Point* localPoints, int32_t roundingMode, + uint32_t* __resultSize, + struct struct_Windows_Graphics_PointInt32** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().ConvertLocalToScreen( + array_view( + reinterpret_cast( + localPoints), + reinterpret_cast( + localPoints) + + __localPointsSize), + *reinterpret_cast( + &roundingMode))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertLocalToScreenWithRect( + winrt::Windows::Foundation::Rect localRect, + struct struct_Windows_Graphics_RectInt32* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ConvertLocalToScreen( + *reinterpret_cast( + &localRect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertScreenToLocalWithPoint( + struct struct_Windows_Graphics_PointInt32 screenPoint, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ConvertScreenToLocal( + *reinterpret_cast( + &screenPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertScreenToLocalWithPoints( + uint32_t __screenPointsSize, + struct struct_Windows_Graphics_PointInt32* screenPoints, + uint32_t* __resultSize, + winrt::Windows::Foundation::Point** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().ConvertScreenToLocal( + array_view( + reinterpret_cast( + screenPoints), + reinterpret_cast( + screenPoints) + + __screenPointsSize))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertScreenToLocalWithRect( + struct struct_Windows_Graphics_RectInt32 screenRect, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ConvertScreenToLocal( + *reinterpret_cast( + &screenRect))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentCoordinateConverterFactory> + : produce_base< + D, + winrt::Microsoft::UI::Content::IContentCoordinateConverterFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentCoordinateConverterStatics> + : produce_base< + D, + winrt::Microsoft::UI::Content::IContentCoordinateConverterStatics> { + int32_t __stdcall CreateForWindowId( + struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateForWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Complete() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Content::IContentEnvironmentSettingChangedEventArgs> + : produce_base { + int32_t __stdcall get_SettingName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SettingName()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs> + : produce_base { + int32_t __stdcall get_DidAppWindowIdChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidAppWindowIdChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidDisplayIdChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidDisplayIdChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs2> + : produce_base { + int32_t __stdcall get_DidDisplayScaleChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidDisplayScaleChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ActualSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AppData(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AppData()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AppData(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AppData( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CoordinateConverter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CustomProperties(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CustomProperties()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Environment(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Environment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Id(uint64_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Id()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsConnected(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsConnected()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHitTestVisibleWhenTransparent( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHitTestVisibleWhenTransparent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsHitTestVisibleWhenTransparent( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsHitTestVisibleWhenTransparent(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsIslandEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIslandEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsIslandEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsIslandEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsIslandVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIslandVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsIslandVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsIslandVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSiteEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSiteEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSiteVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSiteVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LayoutDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LayoutDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizationScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationHostProvider(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAutomationHostProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStateChangeDeferral(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetStateChangeDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RequestSize( + winrt::Windows::Foundation::Numerics::float2 size) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RequestSize( + *reinterpret_cast( + &size)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_AutomationProviderRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().AutomationProviderRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AutomationProviderRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AutomationProviderRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_StateChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().StateChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_StateChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().StateChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Children(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Children()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalToClientTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToClientTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToParentTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Popups(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().Popups()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesKeyboardInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesPointerInput()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutomationOption(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AutomationOption()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FragmentRootAutomationProvider( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FragmentRootAutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NextSiblingAutomationProvider( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NextSiblingAutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ParentAutomationProvider(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ParentAutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PreviousSiblingAutomationProvider( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PreviousSiblingAutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutomationProvider(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AutomationProvider(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AutomationProvider( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AppWindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().AppWindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisplayId( + struct struct_Microsoft_UI_DisplayId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DisplayId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_SettingChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SettingChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SettingChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SettingChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_StateChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().StateChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_StateChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().StateChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DisplayScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayScale()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IContentIslandEnvironmentFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs> { + int32_t __stdcall get_DidActualSizeChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidActualSizeChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidSiteEnabledChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidSiteEnabledChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidSiteVisibleChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidSiteVisibleChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidLayoutDirectionChange(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidLayoutDirectionChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidRasterizationScaleChange(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidRasterizationScaleChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs2> + : produce_base< + D, + winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs2> { + int32_t __stdcall get_DidLocalToClientTransformMatrixChange( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DidLocalToClientTransformMatrixChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidLocalToParentTransformMatrixChange( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DidLocalToParentTransformMatrixChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void* Root, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast( + &Root))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAllForCompositor(void* compositor, + uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().FindAllForCompositor( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAllForCurrentThread(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().FindAllForCurrentThread()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetByVisual(void* child, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetByVisual( + *reinterpret_cast( + &child))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFromId(uint64_t id, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFromId(id)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForSystemVisual(void* queue, void* root, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForSystemVisual( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueue const*>( + &queue), + *reinterpret_cast( + &root))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAllForSystemCompositor(void* compositor, + uint32_t* __resultSize, + void*** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().FindAllForSystemCompositor( + *reinterpret_cast< + winrt::Windows::UI::Composition::Compositor const*>( + &compositor))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBySystemVisual(void* child, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetBySystemVisual( + *reinterpret_cast( + &child))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ActualSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ActualSize( + winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ActualSize( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClientSize( + struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClientSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClientSize( + struct struct_Windows_Graphics_SizeInt32 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClientSize( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CoordinateConverter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Environment(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Environment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsConnected(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsConnected()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSiteEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSiteEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsSiteEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsSiteEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSiteVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSiteVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsSiteVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsSiteVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LayoutDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LayoutDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LayoutDirection(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutDirection( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentLayoutDirection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverrideScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverrideScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OverrideScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OverrideScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ParentScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ParentScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ParentScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ParentScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizationScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestedSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RequestedSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShouldApplyRasterizationScale( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldApplyRasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShouldApplyRasterizationScale(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ShouldApplyRasterizationScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_View(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().View()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIslandStateChangeDeferral(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetIslandStateChangeDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_RequestedStateChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RequestedStateChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_RequestedStateChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().RequestedStateChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_LocalToClientTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToClientTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToParentTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LocalToParentTransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float4x4 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesKeyboardInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProcessesKeyboardInput(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessesKeyboardInput(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesPointerInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProcessesPointerInput(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessesPointerInput(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_AutomationOption(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AutomationOption()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AutomationOption(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AutomationOption( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentAutomationOptions const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AutomationProvider(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_FragmentRootAutomationProviderRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().FragmentRootAutomationProviderRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_FragmentRootAutomationProviderRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().FragmentRootAutomationProviderRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_NextSiblingAutomationProviderRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().NextSiblingAutomationProviderRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_NextSiblingAutomationProviderRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().NextSiblingAutomationProviderRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ParentAutomationProviderRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().ParentAutomationProviderRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ParentAutomationProviderRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ParentAutomationProviderRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PreviousSiblingAutomationProviderRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().PreviousSiblingAutomationProviderRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PreviousSiblingAutomationProviderRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PreviousSiblingAutomationProviderRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutomationProvider(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutomationProvider()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AutomationProvider(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AutomationProvider( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LayoutDirectionOverride(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().LayoutDirectionOverride()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LayoutDirectionOverride(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutDirectionOverride( + *reinterpret_cast const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverrideScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverrideScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OverrideScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OverrideScale(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AppWindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().AppWindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AppWindowId( + struct struct_Microsoft_UI_WindowId value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AppWindowId( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisplayId( + struct struct_Microsoft_UI_DisplayId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DisplayId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DisplayId( + struct struct_Microsoft_UI_DisplayId value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayId( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_View(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().View()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall NotifySettingChanged(void* setting) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NotifySettingChanged( + *reinterpret_cast(&setting)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DisplayScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DisplayScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayScale(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IContentSiteEnvironmentFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AppWindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().AppWindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisplayId( + struct struct_Microsoft_UI_DisplayId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DisplayId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IContentSiteEnvironmentView2> { + int32_t __stdcall get_DisplayScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayScale()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Content::IContentSiteEnvironmentViewFactory> + : produce_base< + D, + winrt::Microsoft::UI::Content::IContentSiteEnvironmentViewFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesKeyboardInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProcessesKeyboardInput(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessesKeyboardInput(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesPointerInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProcessesPointerInput(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessesPointerInput(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Content::IContentSiteRequestedStateChangedEventArgs> + : produce_base { + int32_t __stdcall get_DidRequestedSizeChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidRequestedSizeChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ActualSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClientSize( + struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClientSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CoordinateConverter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnvironmentView(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().EnvironmentView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsConnected(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsConnected()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSiteEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSiteEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSiteVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSiteVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LayoutDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LayoutDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverrideScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverrideScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ParentScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ParentScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizationScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestedSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RequestedSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShouldApplyRasterizationScale( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldApplyRasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_LocalToClientTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToClientTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalToParentTransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalToParentTransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesKeyboardInput()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProcessesPointerInput()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutomationOption(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AutomationOption()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SiteView(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SiteView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().WindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Connect(void* content) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Connect( + *reinterpret_cast( + &content)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridgeStatics> { + int32_t __stdcall CreateFromWindowId( + void* queue, struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateFromWindowId( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueue const*>( + &queue), + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ResizePolicy(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ResizePolicy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ResizePolicy(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResizePolicy( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentSizePolicy const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SiteView(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SiteView()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IDesktopChildSiteBridgeStatics> { + int32_t __stdcall Create(void* compositor, + struct struct_Microsoft_UI_WindowId parentWindowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::Compositor const*>( + &compositor), + *reinterpret_cast( + &parentWindowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IDesktopChildSiteBridgeStatics2> { + int32_t __stdcall CreateWithDispatcherQueue( + void* queue, struct struct_Microsoft_UI_WindowId parentWindowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateWithDispatcherQueue( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueue const*>( + &queue), + *reinterpret_cast( + &parentWindowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SiteView(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SiteView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().WindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Connect(void* content) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Connect( + *reinterpret_cast( + &content)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Disable() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Disable(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Enable() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Enable(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Hide() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Hide(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveAndResize( + struct struct_Windows_Graphics_RectInt32 rect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveAndResize( + *reinterpret_cast(&rect)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderAtBottom() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderAtBottom(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderAtTop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderAtTop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderBelow( + struct struct_Microsoft_UI_WindowId windowId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderBelow( + *reinterpret_cast(&windowId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Show() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Show(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Content::IDesktopPopupSiteBridgeStatics> { + int32_t __stdcall Create(void* parent, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>( + &parent))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().WindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Connect(void* content) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Connect( + *reinterpret_cast( + &content)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Disable() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Disable(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Enable() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Enable(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Hide() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Hide(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveAndResize( + struct struct_Windows_Graphics_RectInt32 rect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveAndResize( + *reinterpret_cast(&rect)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderAtBottom() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderAtBottom(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderAtTop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderAtTop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderBelow( + struct struct_Microsoft_UI_WindowId windowId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderBelow( + *reinterpret_cast(&windowId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Show() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Show(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall IsSupported(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsSupported()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Content { + inline auto ChildSiteLink::Create( + winrt::Microsoft::UI::Content::ContentIsland const& parent, + winrt::Microsoft::UI::Composition::ContainerVisual const& + placementVisual) { + return impl::call_factory( + [&](IChildSiteLinkStatics const& f) { + return f.Create(parent, placementVisual); + }); + } + inline auto ChildSiteLink::CreateForSystemVisual( + winrt::Microsoft::UI::Content::ContentIsland const& parent, + winrt::Windows::UI::Composition::ContainerVisual const& placementVisual) { + return impl::call_factory( + [&](IChildSiteLinkStatics const& f) { + return f.CreateForSystemVisual(parent, placementVisual); + }); + } + inline auto ContentCoordinateConverter::CreateForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IContentCoordinateConverterStatics const& f) { + return f.CreateForWindowId(windowId); + }); + } + inline auto ContentIsland::Create( + winrt::Microsoft::UI::Composition::Visual const& Root) { + return impl::call_factory( + [&](IContentIslandStatics const& f) { return f.Create(Root); }); + } + inline auto ContentIsland::FindAllForCompositor( + winrt::Microsoft::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](IContentIslandStatics const& f) { + return f.FindAllForCompositor(compositor); + }); + } + inline auto ContentIsland::FindAllForCurrentThread() { + return impl::call_factory_cast< + com_array (*)( + IContentIslandStatics const&), + ContentIsland, IContentIslandStatics>( + [](IContentIslandStatics const& f) { + return f.FindAllForCurrentThread(); + }); + } + inline auto ContentIsland::GetByVisual( + winrt::Microsoft::UI::Composition::Visual const& child) { + return impl::call_factory( + [&](IContentIslandStatics const& f) { return f.GetByVisual(child); }); + } + inline auto ContentIsland::GetFromId(uint64_t id) { + return impl::call_factory( + [&](IContentIslandStatics const& f) { return f.GetFromId(id); }); + } + inline auto ContentIsland::CreateForSystemVisual( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, + winrt::Windows::UI::Composition::Visual const& root) { + return impl::call_factory( + [&](IContentIslandStatics2 const& f) { + return f.CreateForSystemVisual(queue, root); + }); + } + inline auto ContentIsland::FindAllForSystemCompositor( + winrt::Windows::UI::Composition::Compositor const& compositor) { + return impl::call_factory( + [&](IContentIslandStatics2 const& f) { + return f.FindAllForSystemCompositor(compositor); + }); + } + inline auto ContentIsland::GetBySystemVisual( + winrt::Windows::UI::Composition::Visual const& child) { + return impl::call_factory( + [&](IContentIslandStatics2 const& f) { + return f.GetBySystemVisual(child); + }); + } + inline auto DesktopAttachedSiteBridge::CreateFromWindowId( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IDesktopAttachedSiteBridgeStatics const& f) { + return f.CreateFromWindowId(queue, windowId); + }); + } + inline auto DesktopChildSiteBridge::Create( + winrt::Microsoft::UI::Composition::Compositor const& compositor, + winrt::Microsoft::UI::WindowId const& parentWindowId) { + return impl::call_factory( + [&](IDesktopChildSiteBridgeStatics const& f) { + return f.Create(compositor, parentWindowId); + }); + } + inline auto DesktopChildSiteBridge::CreateWithDispatcherQueue( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, + winrt::Microsoft::UI::WindowId const& parentWindowId) { + return impl::call_factory( + [&](IDesktopChildSiteBridgeStatics2 const& f) { + return f.CreateWithDispatcherQueue(queue, parentWindowId); + }); + } + inline auto DesktopPopupSiteBridge::Create( + winrt::Microsoft::UI::Content::ContentIsland const& parent) { + return impl::call_factory( + [&](IDesktopPopupSiteBridgeStatics const& f) { + return f.Create(parent); + }); + } + inline auto DesktopSiteBridge::IsSupported() { + return impl::call_factory_cast( + [](IDesktopSiteBridgeStatics const& f) { return f.IsSupported(); }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::IContentEnvironmentSettingChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs2> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::IContentSiteRequestedStateChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::ContentEnvironmentSettingChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::ContentEnvironmentStateChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Content::ContentSiteRequestedStateChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Dispatching.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Dispatching.h new file mode 100644 index 00000000..04bc80ef --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Dispatching.h @@ -0,0 +1,1377 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Dispatching_H +#define WINRT_Microsoft_UI_Dispatching_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Dispatching_IDispatcherExitDeferral::Complete() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherExitDeferral, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Dispatching::IDispatcherExitDeferral>**)this; + check_hresult(_winrt_abi_type->Complete()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::CreateTimer() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateTimer(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateTimer(&result)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueueTimer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::TryEnqueue( + winrt::Microsoft::UI::Dispatching::DispatcherQueueHandler const& callback) + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryEnqueue(*(void**)(&callback), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryEnqueue(*(void**)(&callback), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::TryEnqueue( + winrt::Microsoft::UI::Dispatching::DispatcherQueuePriority const& priority, + winrt::Microsoft::UI::Dispatching::DispatcherQueueHandler const& callback) + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryEnqueueWithPriority( + static_cast(priority), *(void**)(&callback), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryEnqueueWithPriority( + static_cast(priority), *(void**)(&callback), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::ShutdownStarting( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Microsoft::UI::Dispatching:: + DispatcherQueueShutdownStartingEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ShutdownStarting(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ShutdownStarting(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::ShutdownStarting( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Microsoft::UI::Dispatching:: + DispatcherQueueShutdownStartingEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ShutdownStarting(handler)); +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::ShutdownStarting( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ShutdownStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ShutdownStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::ShutdownCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ShutdownCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ShutdownCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::ShutdownCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, ShutdownCompleted(handler)); +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue::ShutdownCompleted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ShutdownCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ShutdownCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue2::HasThreadAccess() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasThreadAccess(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasThreadAccess(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3< + D>::EnqueueEventLoopExit() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnqueueEventLoopExit()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->EnqueueEventLoopExit()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3< + D>::EnsureSystemDispatcherQueue() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnsureSystemDispatcherQueue()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->EnsureSystemDispatcherQueue()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3::RunEventLoop() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RunEventLoop()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RunEventLoop()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3::RunEventLoop( + winrt::Microsoft::UI::Dispatching::DispatcherRunOptions const& options, + winrt::Microsoft::UI::Dispatching::DispatcherExitDeferral const& deferral) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RunEventLoopWithOptions( + static_cast(options), *(void**)(&deferral))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RunEventLoopWithOptions( + static_cast(options), *(void**)(&deferral))); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3:: + FrameworkShutdownStarting( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Microsoft::UI::Dispatching:: + DispatcherQueueShutdownStartingEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_FrameworkShutdownStarting( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_FrameworkShutdownStarting( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3:: + FrameworkShutdownStarting( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Microsoft::UI::Dispatching:: + DispatcherQueueShutdownStartingEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, FrameworkShutdownStarting(handler)); +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3:: + FrameworkShutdownStarting(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_FrameworkShutdownStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_FrameworkShutdownStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3:: + FrameworkShutdownCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_FrameworkShutdownCompleted( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_FrameworkShutdownCompleted( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3:: + FrameworkShutdownCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueue, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, FrameworkShutdownCompleted(handler)); +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueue3:: + FrameworkShutdownCompleted(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueue3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueue3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_FrameworkShutdownCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_FrameworkShutdownCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueController< + D>::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueController< + D>::ShutdownQueueAsync() const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShutdownQueueAsync(&operation)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShutdownQueueAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueController2< + D>::ShutdownQueue() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueController2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShutdownQueue()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShutdownQueue()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueControllerStatics< + D>::CreateOnDedicatedThread() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueControllerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateOnDedicatedThread(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateOnDedicatedThread(&result)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueueController{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueControllerStatics< + D>::CreateOnCurrentThread() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueControllerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateOnCurrentThread(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateOnCurrentThread(&result)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueueController{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueShutdownStartingEventArgs< + D>::GetDeferral() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Dispatching:: + IDispatcherQueueShutdownStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Dispatching:: + IDispatcherQueueShutdownStartingEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Windows::Foundation::Deferral{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueStatics< + D>::GetForCurrentThread() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForCurrentThread(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueStatics>**)this; + check_hresult(_winrt_abi_type->GetForCurrentThread(&result)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Interval() + const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Interval(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Interval(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Interval( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Interval(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Interval(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::IsRunning() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRunning(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRunning(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::IsRepeating() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRepeating(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRepeating(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::IsRepeating( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsRepeating(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_IsRepeating(value)); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Start() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Start()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Start()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Stop() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Tick( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueueTimer, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Tick(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_Tick(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Tick( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Dispatching::DispatcherQueueTimer, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Tick(handler)); +} +template +auto consume_Microsoft_UI_Dispatching_IDispatcherQueueTimer::Tick( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueTimer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Tick(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_Tick(impl::bind_in(token)); + } +} +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Dispatching::DispatcherQueueHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Dispatching::DispatcherQueueHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke() noexcept final try { + (*this)(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Complete() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateTimer(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateTimer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryEnqueue(void* callback, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryEnqueue( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueueHandler const*>( + &callback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryEnqueueWithPriority(int32_t priority, void* callback, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryEnqueue( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueuePriority const*>( + &priority), + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueueHandler const*>( + &callback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ShutdownStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ShutdownStarting( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ShutdownStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ShutdownStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ShutdownCompleted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ShutdownCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ShutdownCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ShutdownCompleted( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HasThreadAccess(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasThreadAccess()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall EnqueueEventLoopExit() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EnqueueEventLoopExit(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall EnsureSystemDispatcherQueue() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EnsureSystemDispatcherQueue(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RunEventLoop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RunEventLoop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RunEventLoopWithOptions(uint32_t options, + void* deferral) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RunEventLoop( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherRunOptions const*>( + &options), + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherExitDeferral const*>( + &deferral)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_FrameworkShutdownStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().FrameworkShutdownStarting( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_FrameworkShutdownStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().FrameworkShutdownStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_FrameworkShutdownCompleted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().FrameworkShutdownCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_FrameworkShutdownCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().FrameworkShutdownCompleted( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueueController> { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShutdownQueueAsync(void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().ShutdownQueueAsync()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueueController2> { + int32_t __stdcall ShutdownQueue() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShutdownQueue(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Dispatching::IDispatcherQueueControllerStatics> + : produce_base { + int32_t __stdcall CreateOnDedicatedThread(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Dispatching::DispatcherQueueController>( + this->shim().CreateOnDedicatedThread()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateOnCurrentThread(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Dispatching::DispatcherQueueController>( + this->shim().CreateOnCurrentThread()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetDeferral(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetForCurrentThread(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForCurrentThread()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Interval(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Interval()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Interval(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Interval( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRunning(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRunning()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRepeating(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRepeating()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsRepeating(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsRepeating(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Start() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Start(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Stop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Tick(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Tick( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Tick(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Tick(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Dispatching { + constexpr auto operator|(DispatcherRunOptions const left, + DispatcherRunOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(DispatcherRunOptions& left, + DispatcherRunOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(DispatcherRunOptions const left, + DispatcherRunOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(DispatcherRunOptions& left, + DispatcherRunOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(DispatcherRunOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(DispatcherRunOptions const left, + DispatcherRunOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(DispatcherRunOptions& left, + DispatcherRunOptions const right) noexcept { + left = left ^ right; + return left; + } + inline DispatcherExitDeferral::DispatcherExitDeferral() + : DispatcherExitDeferral( + impl::call_factory_cast< + DispatcherExitDeferral (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DispatcherExitDeferral>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto DispatcherQueue::GetForCurrentThread() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueue (*)( + IDispatcherQueueStatics const&), + DispatcherQueue, IDispatcherQueueStatics>( + [](IDispatcherQueueStatics const& f) { + return f.GetForCurrentThread(); + }); + } + inline auto DispatcherQueueController::CreateOnDedicatedThread() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueueController (*)( + IDispatcherQueueControllerStatics const&), + DispatcherQueueController, IDispatcherQueueControllerStatics>( + [](IDispatcherQueueControllerStatics const& f) { + return f.CreateOnDedicatedThread(); + }); + } + inline auto DispatcherQueueController::CreateOnCurrentThread() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueueController (*)( + IDispatcherQueueControllerStatics const&), + DispatcherQueueController, IDispatcherQueueControllerStatics>( + [](IDispatcherQueueControllerStatics const& f) { + return f.CreateOnCurrentThread(); + }); + } + template + DispatcherQueueHandler::DispatcherQueueHandler(L handler) + : DispatcherQueueHandler(impl::make_delegate( + std::forward(handler))) {} + template + DispatcherQueueHandler::DispatcherQueueHandler(F * handler) + : DispatcherQueueHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + DispatcherQueueHandler::DispatcherQueueHandler(O * object, M method) + : DispatcherQueueHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + DispatcherQueueHandler::DispatcherQueueHandler(com_ptr && object, M method) + : DispatcherQueueHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DispatcherQueueHandler::DispatcherQueueHandler(weak_ref && object, + LM && lambda_or_method) + : DispatcherQueueHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + DispatcherQueueHandler::DispatcherQueueHandler(std::shared_ptr && object, + M method) + : DispatcherQueueHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DispatcherQueueHandler::DispatcherQueueHandler(std::weak_ptr && object, + LM && lambda_or_method) + : DispatcherQueueHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto DispatcherQueueHandler::operator()() const { + check_hresult((*(impl::abi_t**)this)->Invoke()); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Dispatching::IDispatcherQueueControllerStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Dispatching::DispatcherQueueShutdownStartingEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.DragDrop.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.DragDrop.h new file mode 100644 index 00000000..96d763e9 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.DragDrop.h @@ -0,0 +1,1277 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Input_DragDrop_H +#define WINRT_Microsoft_UI_Input_DragDrop_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Input.h" +#include "winrt/impl/Microsoft.UI.Content.2.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Microsoft.UI.Input.DragDrop.2.h" +#include "winrt/impl/Windows.ApplicationModel.DataTransfer.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Graphics.Imaging.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Input_DragDrop_IDragDropManager< + D>::AreConcurrentOperationsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreConcurrentOperationsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreConcurrentOperationsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragDropManager< + D>::AreConcurrentOperationsEnabled(bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreConcurrentOperationsEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreConcurrentOperationsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragDropManager::TargetRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::DragDrop::DragDropManager, + winrt::Microsoft::UI::Input::DragDrop:: + DropOperationTargetRequestedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TargetRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TargetRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragDropManager::TargetRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::DragDrop::DragDropManager, + winrt::Microsoft::UI::Input::DragDrop:: + DropOperationTargetRequestedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, TargetRequested(handler)); +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragDropManager::TargetRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragDropManager, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TargetRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_TargetRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragDropManagerStatics< + D>::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& + content) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragDropManagerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&content), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&content), &result)); + } + return winrt::Microsoft::UI::Input::DragDrop::DragDropManager{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragInfo::AllowedOperations() + const { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragInfo::Data() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackageView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragInfo::Modifiers() const { + winrt::Microsoft::UI::Input::DragDrop::DragDropModifiers value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragInfo::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation::AllowedOperations() + const { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation::AllowedOperations( + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_AllowedOperations(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_AllowedOperations(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation::Data() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation::DragUIContentMode() + const { + winrt::Microsoft::UI::Input::DragDrop::DragUIContentMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragUIContentMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragUIContentMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation::DragUIContentMode( + winrt::Microsoft::UI::Input::DragDrop::DragUIContentMode const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_DragUIContentMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_DragUIContentMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation:: + SetDragUIContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& bitmap) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDragUIContentFromSoftwareBitmap( + *(void**)(&bitmap))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDragUIContentFromSoftwareBitmap( + *(void**)(&bitmap))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation:: + SetDragUIContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& bitmap, + winrt::Windows::Foundation::Point const& anchorPoint) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDragUIContentFromSoftwareBitmap2( + *(void**)(&bitmap), impl::bind_in(anchorPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDragUIContentFromSoftwareBitmap2( + *(void**)(&bitmap), impl::bind_in(anchorPoint))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragOperation::StartAsync( + winrt::Microsoft::UI::Input::DragDrop::DragDropManager const& initialTarget, + winrt::Microsoft::UI::Input::PointerPoint const& initialPointerPoint) + const { + void* operation{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::DragDrop::IDragOperation>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragOperation, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAsync(*(void**)(&initialTarget), + *(void**)(&initialPointerPoint), + &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAsync(*(void**)(&initialTarget), + *(void**)(&initialPointerPoint), + &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::Caption() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Caption(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Caption(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::Caption( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Caption(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Caption(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::IsCaptionVisible() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCaptionVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCaptionVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::IsCaptionVisible( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsCaptionVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsCaptionVisible(value)); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::IsContentVisible() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContentVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContentVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::IsContentVisible( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsContentVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsContentVisible(value)); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::IsGlyphVisible() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGlyphVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGlyphVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::IsGlyphVisible( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsGlyphVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsGlyphVisible(value)); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride::Clear() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Clear()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Clear()); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride:: + SetContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& bitmap) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetContentFromSoftwareBitmap(*(void**)(&bitmap))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetContentFromSoftwareBitmap(*(void**)(&bitmap))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDragUIOverride:: + SetContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& bitmap, + winrt::Windows::Foundation::Point const& anchorPoint) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDragUIOverride, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmap2( + *(void**)(&bitmap), impl::bind_in(anchorPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmap2( + *(void**)(&bitmap), impl::bind_in(anchorPoint))); + } +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDropOperationTarget::DropAsync( + winrt::Microsoft::UI::Input::DragDrop::DragInfo const& dragInfo) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DropAsync(*(void**)(&dragInfo), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget>**)this; + check_hresult(_winrt_abi_type->DropAsync(*(void**)(&dragInfo), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDropOperationTarget::EnterAsync( + winrt::Microsoft::UI::Input::DragDrop::DragInfo const& dragInfo, + winrt::Microsoft::UI::Input::DragDrop::DragUIOverride const& dragUIOverride) + const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnterAsync( + *(void**)(&dragInfo), *(void**)(&dragUIOverride), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget>**)this; + check_hresult(_winrt_abi_type->EnterAsync( + *(void**)(&dragInfo), *(void**)(&dragUIOverride), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDropOperationTarget::LeaveAsync( + winrt::Microsoft::UI::Input::DragDrop::DragInfo const& dragInfo) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->LeaveAsync(*(void**)(&dragInfo), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget>**)this; + check_hresult( + _winrt_abi_type->LeaveAsync(*(void**)(&dragInfo), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDropOperationTarget::OverAsync( + winrt::Microsoft::UI::Input::DragDrop::DragInfo const& dragInfo, + winrt::Microsoft::UI::Input::DragDrop::DragUIOverride const& dragUIOverride) + const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OverAsync( + *(void**)(&dragInfo), *(void**)(&dragUIOverride), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget>**)this; + check_hresult(_winrt_abi_type->OverAsync( + *(void**)(&dragInfo), *(void**)(&dragUIOverride), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_DragDrop_IDropOperationTargetRequestedEventArgs< + D>::SetTarget(winrt::Microsoft::UI::Input::DragDrop:: + IDropOperationTarget const& target) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::DragDrop:: + IDropOperationTargetRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTarget(*(void**)(&target))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTarget(*(void**)(&target))); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AreConcurrentOperationsEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreConcurrentOperationsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AreConcurrentOperationsEnabled( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AreConcurrentOperationsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_TargetRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TargetRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_TargetRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().TargetRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::DragDrop::IDragDropManagerStatics> { + int32_t __stdcall GetForIsland(void* content, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetForIsland( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>( + &content))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>( + this->shim().AllowedOperations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Data(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageView>( + this->shim().Data()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Modifiers(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Modifiers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>( + this->shim().AllowedOperations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowedOperations(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowedOperations( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Data(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackage>( + this->shim().Data()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragUIContentMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DragUIContentMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragUIContentMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragUIContentMode( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragUIContentMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDragUIContentFromSoftwareBitmap( + void* bitmap) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDragUIContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>(&bitmap)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDragUIContentFromSoftwareBitmap2( + void* bitmap, + winrt::Windows::Foundation::Point anchorPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDragUIContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>(&bitmap), + *reinterpret_cast( + &anchorPoint)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartAsync(void* initialTarget, void* initialPointerPoint, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().StartAsync( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragDropManager const*>( + &initialTarget), + *reinterpret_cast( + &initialPointerPoint))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Caption(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Caption()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Caption(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Caption(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCaptionVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCaptionVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsCaptionVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsCaptionVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsContentVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsContentVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsContentVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsContentVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsGlyphVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGlyphVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsGlyphVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsGlyphVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Clear() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Clear(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromSoftwareBitmap(void* bitmap) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>(&bitmap)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromSoftwareBitmap2( + void* bitmap, + winrt::Windows::Foundation::Point anchorPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>(&bitmap), + *reinterpret_cast( + &anchorPoint)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget> { + int32_t __stdcall DropAsync(void* dragInfo, void** operation) noexcept final + try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().DropAsync( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragInfo const*>( + &dragInfo))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall EnterAsync(void* dragInfo, void* dragUIOverride, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().EnterAsync( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragInfo const*>( + &dragInfo), + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragUIOverride const*>( + &dragUIOverride))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LeaveAsync(void* dragInfo, void** operation) noexcept final + try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().LeaveAsync( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragInfo const*>( + &dragInfo))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OverAsync(void* dragInfo, void* dragUIOverride, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().OverAsync( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragInfo const*>( + &dragInfo), + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::DragUIOverride const*>( + &dragUIOverride))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetTarget(void* target) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTarget( + *reinterpret_cast< + winrt::Microsoft::UI::Input::DragDrop::IDropOperationTarget const*>( + &target)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Input::DragDrop { + constexpr auto operator|(DragDropModifiers const left, + DragDropModifiers const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(DragDropModifiers& left, + DragDropModifiers const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(DragDropModifiers const left, + DragDropModifiers const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(DragDropModifiers& left, + DragDropModifiers const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(DragDropModifiers const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(DragDropModifiers const left, + DragDropModifiers const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(DragDropModifiers& left, + DragDropModifiers const right) noexcept { + left = left ^ right; + return left; + } + inline auto DragDropManager::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& content) { + return impl::call_factory( + [&](IDragDropManagerStatics const& f) { + return f.GetForIsland(content); + }); + } + inline DragOperation::DragOperation() + : DragOperation( + impl::call_factory_cast< + DragOperation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DragOperation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.Interop.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.Interop.h new file mode 100644 index 00000000..587b4911 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.Interop.h @@ -0,0 +1,84 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Input_Interop_H +#define WINRT_Microsoft_UI_Input_Interop_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Input.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Microsoft.UI.Input.Interop.2.h" +#include "winrt/impl/Windows.Devices.Input.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Input_Interop_IPenDeviceInteropStatics< + D>::FromPointerPoint(winrt::Microsoft::UI::Input::PointerPoint const& + pointerPoint) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::Interop::IPenDeviceInteropStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->FromPointerPoint(*(void**)(&pointerPoint), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->FromPointerPoint(*(void**)(&pointerPoint), &result)); + } + return winrt::Windows::Devices::Input::PenDevice{result, + take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::Interop::IPenDeviceInteropStatics> { + int32_t __stdcall FromPointerPoint(void* pointerPoint, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromPointerPoint( + *reinterpret_cast( + &pointerPoint))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Input::Interop { + inline auto PenDeviceInterop::FromPointerPoint( + winrt::Microsoft::UI::Input::PointerPoint const& pointerPoint) { + return impl::call_factory( + [&](IPenDeviceInteropStatics const& f) { + return f.FromPointerPoint(pointerPoint); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.h new file mode 100644 index 00000000..4c37ce92 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Input.h @@ -0,0 +1,11047 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Input_H +#define WINRT_Microsoft_UI_Input_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Content.2.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Graphics.2.h" +#include "winrt/impl/Windows.System.2.h" +#include "winrt/impl/Windows.UI.Core.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::KeyCode() + const { + uint32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyCode(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyCode(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ICharacterReceivedEventArgs::KeyStatus() + const { + winrt::Microsoft::UI::Input::PhysicalKeyStatus value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICharacterReceivedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IContextMenuKeyEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IContextMenuKeyEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IContextMenuKeyEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::CrossSlidingState() + const { + winrt::Microsoft::UI::Input::CrossSlidingState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::ICrossSlidingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICrossSlidingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CrossSlidingState( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CrossSlidingState( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::PointerDeviceType() + const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::ICrossSlidingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICrossSlidingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ICrossSlidingEventArgs::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::ICrossSlidingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::ICrossSlidingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IDraggingEventArgs::DraggingState() const { + winrt::Microsoft::UI::Input::DraggingState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IDraggingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IDraggingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DraggingState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DraggingState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IDraggingEventArgs::PointerDeviceType() + const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IDraggingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IDraggingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IDraggingEventArgs::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IDraggingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IDraggingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IEnteredMoveSizeEventArgs< + D>::PointerScreenPoint() const { + winrt::Windows::Graphics::PointInt32 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IEnteredMoveSizeEventArgs< + D>::MoveSizeOperation() const { + winrt::Microsoft::UI::Input::MoveSizeOperation value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IEnteredMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs< + D>::PointerScreenPoint() const { + winrt::Windows::Graphics::PointInt32 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs< + D>::MoveSizeOperation() const { + winrt::Microsoft::UI::Input::MoveSizeOperation value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs< + D>::MoveSizeWindowId() const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MoveSizeWindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MoveSizeWindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IEnteringMoveSizeEventArgs::MoveSizeWindowId( + winrt::Microsoft::UI::WindowId const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IEnteringMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MoveSizeWindowId(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MoveSizeWindowId(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_IExitedMoveSizeEventArgs< + D>::PointerScreenPoint() const { + winrt::Windows::Graphics::PointInt32 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IExitedMoveSizeEventArgs::MoveSizeOperation() + const { + winrt::Microsoft::UI::Input::MoveSizeOperation value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IExitedMoveSizeEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IFocusChangedEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IFocusChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IFocusChangedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IFocusChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequest::CorrelationId() + const { + winrt::guid value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IFocusNavigationRequest>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequest, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequest::HintRect() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IFocusNavigationRequest>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequest, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HintRect(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HintRect(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Rect>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequest::Reason() const { + winrt::Microsoft::UI::Input::FocusNavigationReason value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IFocusNavigationRequest>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequest, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Request() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Request(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Request(&value)); + } + return winrt::Microsoft::UI::Input::FocusNavigationRequest{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Result() + const { + winrt::Microsoft::UI::Input::FocusNavigationResult value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Result(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Result(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequestEventArgs::Result( + winrt::Microsoft::UI::Input::FocusNavigationResult const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Result(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Result(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create( + winrt::Microsoft::UI::Input::FocusNavigationReason const& reason) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Create(static_cast(reason), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics>**)this; + check_hresult( + _winrt_abi_type->Create(static_cast(reason), &result)); + } + return winrt::Microsoft::UI::Input::FocusNavigationRequest{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create( + winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithHintRect( + static_cast(reason), impl::bind_in(hintRect), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics>**)this; + check_hresult(_winrt_abi_type->CreateWithHintRect( + static_cast(reason), impl::bind_in(hintRect), &result)); + } + return winrt::Microsoft::UI::Input::FocusNavigationRequest{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IFocusNavigationRequestStatics::Create( + winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect, + winrt::guid const& correlationId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithHintRectAndId( + static_cast(reason), impl::bind_in(hintRect), + impl::bind_in(correlationId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics>**)this; + check_hresult(_winrt_abi_type->CreateWithHintRectAndId( + static_cast(reason), impl::bind_in(hintRect), + impl::bind_in(correlationId), &result)); + } + return winrt::Microsoft::UI::Input::FocusNavigationRequest{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::AutoProcessInertia() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoProcessInertia(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoProcessInertia(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::AutoProcessInertia( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoProcessInertia(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoProcessInertia(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideExact() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CrossSlideExact(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CrossSlideExact(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideExact( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CrossSlideExact(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CrossSlideExact(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideHorizontally() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CrossSlideHorizontally(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CrossSlideHorizontally(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideHorizontally( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CrossSlideHorizontally(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CrossSlideHorizontally(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideThresholds() + const { + winrt::Microsoft::UI::Input::CrossSlideThresholds value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CrossSlideThresholds(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CrossSlideThresholds(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSlideThresholds( + winrt::Microsoft::UI::Input::CrossSlideThresholds const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CrossSlideThresholds(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CrossSlideThresholds(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::GestureSettings() const { + winrt::Microsoft::UI::Input::GestureSettings value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GestureSettings( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GestureSettings( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::GestureSettings( + winrt::Microsoft::UI::Input::GestureSettings const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_GestureSettings(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_GestureSettings(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::IsActive() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::IsInertial() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotCenter() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PivotCenter(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PivotCenter(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotCenter( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PivotCenter(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PivotCenter(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotRadius() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PivotRadius(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PivotRadius(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::PivotRadius( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PivotRadius(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PivotRadius(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaExpansionDeceleration() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaExpansionDeceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaExpansionDeceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaExpansionDeceleration(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InertiaExpansionDeceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InertiaExpansionDeceleration(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansion() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaExpansion(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaExpansion(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaExpansion( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InertiaExpansion(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InertiaExpansion(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationAngle() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaRotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaRotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::InertiaRotationAngle( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InertiaRotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InertiaRotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaRotationDeceleration() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaRotationDeceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaRotationDeceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaRotationDeceleration(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InertiaRotationDeceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InertiaRotationDeceleration(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaTranslationDeceleration() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaTranslationDeceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaTranslationDeceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaTranslationDeceleration(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InertiaTranslationDeceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InertiaTranslationDeceleration(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaTranslationDisplacement() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaTranslationDisplacement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaTranslationDisplacement(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::InertiaTranslationDisplacement(float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InertiaTranslationDisplacement(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InertiaTranslationDisplacement(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationExact() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationExact(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationExact(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationExact( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ManipulationExact(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ManipulationExact(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::MouseWheelParameters() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MouseWheelParameters(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MouseWheelParameters(&value)); + } + return winrt::Microsoft::UI::Input::MouseWheelParameters{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ShowGestureFeedback() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowGestureFeedback(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowGestureFeedback(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ShowGestureFeedback( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowGestureFeedback(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowGestureFeedback(value)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CanBeDoubleTap( + winrt::Microsoft::UI::Input::PointerPoint const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanBeDoubleTap(*(void**)(&value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanBeDoubleTap(*(void**)(&value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CompleteGesture() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CompleteGesture()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CompleteGesture()); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessDownEvent( + winrt::Microsoft::UI::Input::PointerPoint const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessDownEvent(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessDownEvent(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessMoveEvents( + param::vector const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessMoveEvents(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessMoveEvents(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessMouseWheelEvent( + winrt::Microsoft::UI::Input::PointerPoint const& value, bool isShiftKeyDown, + bool isControlKeyDown) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessMouseWheelEvent( + *(void**)(&value), isShiftKeyDown, isControlKeyDown)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessMouseWheelEvent( + *(void**)(&value), isShiftKeyDown, isControlKeyDown)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessInertia() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessInertia()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessInertia()); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ProcessUpEvent( + winrt::Microsoft::UI::Input::PointerPoint const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessUpEvent(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessUpEvent(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::TappedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Tapped(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Tapped(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::TappedEventArgs> const& handler) const { + return impl::make_event_revoker(this, Tapped(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Tapped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Tapped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Tapped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::RightTappedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_RightTapped(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_RightTapped(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::RightTappedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + RightTapped(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::RightTapped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RightTapped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_RightTapped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::HoldingEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Holding(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Holding(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::HoldingEventArgs> const& handler) const { + return impl::make_event_revoker(this, Holding(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Holding( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Holding(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Holding(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::DraggingEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Dragging(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Dragging(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::DraggingEventArgs> const& handler) const { + return impl::make_event_revoker(this, Dragging(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::Dragging( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Dragging(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Dragging(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::ManipulationStartedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationStarted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationStarted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::ManipulationStartedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ManipulationStarted(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationStarted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationStarted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationStarted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::ManipulationUpdatedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationUpdated(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationUpdated(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::ManipulationUpdatedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ManipulationUpdated(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationUpdated( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationUpdated(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationUpdated(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer:: + ManipulationInertiaStarting( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input:: + ManipulationInertiaStartingEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationInertiaStarting( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationInertiaStarting( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer:: + ManipulationInertiaStarting( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input:: + ManipulationInertiaStartingEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ManipulationInertiaStarting(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer< + D>::ManipulationInertiaStarting(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationInertiaStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationInertiaStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::ManipulationCompletedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationCompleted( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationCompleted( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::ManipulationCompletedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ManipulationCompleted(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::ManipulationCompleted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::CrossSlidingEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_CrossSliding(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_CrossSliding(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::GestureRecognizer, + winrt::Microsoft::UI::Input::CrossSlidingEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, CrossSliding(handler)); +} +template +auto consume_Microsoft_UI_Input_IGestureRecognizer::CrossSliding( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IGestureRecognizer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IGestureRecognizer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CrossSliding(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CrossSliding(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IHoldingEventArgs::HoldingState() const { + winrt::Microsoft::UI::Input::HoldingState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IHoldingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HoldingState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_HoldingState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IHoldingEventArgs::PointerDeviceType() + const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IHoldingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IHoldingEventArgs::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IHoldingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputActivationListener::State() const { + winrt::Microsoft::UI::Input::InputActivationState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputActivationListener>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputActivationListener, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputActivationListener:: + InputActivationChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputActivationListener, + winrt::Microsoft::UI::Input:: + InputActivationListenerActivationChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputActivationListener>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputActivationListener, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_InputActivationChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_InputActivationChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputActivationListener:: + InputActivationChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputActivationListener, + winrt::Microsoft::UI::Input:: + InputActivationListenerActivationChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, InputActivationChanged(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputActivationListener< + D>::InputActivationChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputActivationListener>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputActivationListener, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_InputActivationChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_InputActivationChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputActivationListenerStatics< + D>::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputActivationListenerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::Input::InputActivationListener{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputActivationListenerStatics2< + D>::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputActivationListenerStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } + return winrt::Microsoft::UI::Input::InputActivationListener{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputCursorStatics::CreateFromCoreCursor( + winrt::Windows::UI::Core::CoreCursor const& cursor) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputCursorStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputCursorStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateFromCoreCursor(*(void**)(&cursor), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateFromCoreCursor(*(void**)(&cursor), &result)); + } + return winrt::Microsoft::UI::Input::InputCursor{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursor< + D>::ModuleName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModuleName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ModuleName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursor< + D>::ResourceName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ResourceName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ResourceName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursorStatics< + D>::Create(param::hstring const& resourceName) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IInputDesktopNamedResourceCursorStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(*(void**)(&resourceName), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(*(void**)(&resourceName), &result)); + } + return winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopNamedResourceCursorStatics< + D>::CreateFromModule(param::hstring const& moduleName, + param::hstring const& resourceName) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IInputDesktopNamedResourceCursorStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateFromModule( + *(void**)(&moduleName), *(void**)(&resourceName), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateFromModule( + *(void**)(&moduleName), *(void**)(&resourceName), &result)); + } + return winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopResourceCursor::ModuleName() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputDesktopResourceCursor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopResourceCursor, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModuleName(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ModuleName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopResourceCursor::ResourceId() + const { + uint32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputDesktopResourceCursor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopResourceCursor, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ResourceId(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ResourceId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopResourceCursorStatics::Create( + uint32_t resourceId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(resourceId, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(resourceId, &result)); + } + return winrt::Microsoft::UI::Input::InputDesktopResourceCursor{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputDesktopResourceCursorStatics< + D>::CreateFromModule(param::hstring const& moduleName, + uint32_t resourceId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateFromModule(*(void**)(&moduleName), + resourceId, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateFromModule(*(void**)(&moduleName), + resourceId, &result)); + } + return winrt::Microsoft::UI::Input::InputDesktopResourceCursor{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::HasFocus() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasFocus(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasFocus(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::TrySetFocus() const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TrySetFocus(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TrySetFocus(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusController, + winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusController, + winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, GotFocus(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::GotFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusController, + winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusController, + winrt::Microsoft::UI::Input::FocusChangedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + LostFocus(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputFocusController::LostFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputFocusController2::DepartFocus( + winrt::Microsoft::UI::Input::FocusNavigationRequest const& request) const { + winrt::Microsoft::UI::Input::FocusNavigationResult result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DepartFocus( + *(void**)(&request), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->DepartFocus( + *(void**)(&request), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController2:: + NavigateFocusRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusController, + winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NavigateFocusRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NavigateFocusRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputFocusController2:: + NavigateFocusRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusController, + winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, NavigateFocusRequested(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputFocusController2< + D>::NavigateFocusRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputFocusController2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusController2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NavigateFocusRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_NavigateFocusRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputFocusControllerStatics::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusControllerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } + return winrt::Microsoft::UI::Input::InputFocusController{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::ContainsFocus() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainsFocus(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainsFocus(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHost::NavigateFocus( + winrt::Microsoft::UI::Input::FocusNavigationRequest const& request) const { + winrt::Microsoft::UI::Input::FocusNavigationResult result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateFocus( + *(void**)(&request), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateFocus( + *(void**)(&request), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHost:: + DepartFocusRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusNavigationHost, + winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DepartFocusRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DepartFocusRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHost:: + DepartFocusRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputFocusNavigationHost, + winrt::Microsoft::UI::Input::FocusNavigationRequestEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, DepartFocusRequested(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHost< + D>::DepartFocusRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputFocusNavigationHost>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusNavigationHost, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DepartFocusRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DepartFocusRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHostStatics:: + GetForSiteBridge( + winrt::Microsoft::UI::Content::IContentSiteBridge const& site) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForSiteBridge(*(void**)(&site), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForSiteBridge(*(void**)(&site), &result)); + } + return winrt::Microsoft::UI::Input::InputFocusNavigationHost{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputFocusNavigationHostStatics2< + D>::GetForSiteLink(winrt::Microsoft::UI::Content::IContentSiteLink const& + contentSiteLink) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetForSiteLink(*(void**)(&contentSiteLink), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetForSiteLink(*(void**)(&contentSiteLink), &result)); + } + return winrt::Microsoft::UI::Input::InputFocusNavigationHost{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::GetCurrentKeyState( + winrt::Windows::System::VirtualKey const& virtualKey) const { + winrt::Microsoft::UI::Input::VirtualKeyStates result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCurrentKeyState( + static_cast(virtualKey), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCurrentKeyState( + static_cast(virtualKey), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::GetKeyState( + winrt::Windows::System::VirtualKey const& virtualKey) const { + winrt::Microsoft::UI::Input::VirtualKeyStates result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetKeyState(static_cast(virtualKey), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetKeyState(static_cast(virtualKey), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::CharacterReceivedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CharacterReceived(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CharacterReceived(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::CharacterReceivedEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, CharacterReceived(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::CharacterReceived( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CharacterReceived(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CharacterReceived(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::ContextMenuKeyEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextMenuKey(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextMenuKey(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::ContextMenuKeyEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, ContextMenuKey(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::ContextMenuKey( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextMenuKey(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ContextMenuKey(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_KeyDown(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_KeyDown(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + return impl::make_event_revoker(this, KeyDown(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyDown( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_KeyDown(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_KeyDown(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_KeyUp(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_KeyUp(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + return impl::make_event_revoker(this, KeyUp(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::KeyUp( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_KeyUp(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_KeyUp(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SystemKeyDown(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SystemKeyDown(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + return impl::make_event_revoker( + this, SystemKeyDown(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyDown( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SystemKeyDown(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_SystemKeyDown(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_SystemKeyUp(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_SystemKeyUp(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputKeyboardSource, + winrt::Microsoft::UI::Input::KeyEventArgs> const& handler) const { + return impl::make_event_revoker(this, + SystemKeyUp(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSource2::SystemKeyUp( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputKeyboardSource2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SystemKeyUp(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_SystemKeyUp(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSourceStatics< + D>::GetKeyStateForCurrentThread(winrt::Windows::System::VirtualKey const& + virtualKey) const { + winrt::Windows::UI::Core::CoreVirtualKeyStates result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetKeyStateForCurrentThread( + static_cast(virtualKey), + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetKeyStateForCurrentThread( + static_cast(virtualKey), + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IInputKeyboardSourceStatics2::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputKeyboardSourceStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } + return winrt::Microsoft::UI::Input::InputKeyboardSource{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputLightDismissAction, + winrt::Microsoft::UI::Input::InputLightDismissEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputLightDismissAction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputLightDismissAction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Dismissed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Dismissed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputLightDismissAction, + winrt::Microsoft::UI::Input::InputLightDismissEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + Dismissed(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputLightDismissAction::Dismissed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputLightDismissAction>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputLightDismissAction, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Dismissed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Dismissed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputLightDismissActionStatics< + D>::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputLightDismissActionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::Input::InputLightDismissAction{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< + D>::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< + D>::ClearAllRegionRects() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearAllRegionRects()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->ClearAllRegionRects()); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< + D>::ClearRegionRects(winrt::Microsoft::UI::Input::NonClientRegionKind const& + region) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ClearRegionRects(static_cast(region))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->ClearRegionRects(static_cast(region))); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::GetRegionRects( + winrt::Microsoft::UI::Input::NonClientRegionKind const& region) const { + uint32_t result_impl_size{}; + struct struct_Windows_Graphics_RectInt32* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRegionRects(static_cast(region), + &result_impl_size, &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetRegionRects(static_cast(region), + &result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::SetRegionRects( + winrt::Microsoft::UI::Input::NonClientRegionKind const& region, + array_view rects) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRegionRects( + static_cast(region), rects.size(), get_abi(rects))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetRegionRects( + static_cast(region), rects.size(), get_abi(rects))); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientCaptionTappedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CaptionTapped(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_CaptionTapped(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientCaptionTappedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, CaptionTapped(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::CaptionTapped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CaptionTapped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_CaptionTapped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, PointerEntered(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerEntered( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, PointerExited(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerExited( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, PointerMoved(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerMoved( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, PointerPressed(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::PointerPressed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource:: + PointerReleased( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource:: + PointerReleased( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientPointerEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, PointerReleased(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource< + D>::PointerReleased(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientRegionsChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_RegionsChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_RegionsChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::NonClientRegionsChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, RegionsChanged(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource::RegionsChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RegionsChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_RegionsChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + EnteringMoveSize( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::EnteringMoveSizeEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_EnteringMoveSize(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + check_hresult(_winrt_abi_type->add_EnteringMoveSize(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + EnteringMoveSize( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::EnteringMoveSizeEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, EnteringMoveSize(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< + D>::EnteringMoveSize(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_EnteringMoveSize(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + _winrt_abi_type->remove_EnteringMoveSize(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + EnteredMoveSize( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::EnteredMoveSizeEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_EnteredMoveSize(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + check_hresult(_winrt_abi_type->add_EnteredMoveSize(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + EnteredMoveSize( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::EnteredMoveSizeEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, EnteredMoveSize(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< + D>::EnteredMoveSize(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_EnteredMoveSize(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + _winrt_abi_type->remove_EnteredMoveSize(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + WindowRectChanging( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::WindowRectChangingEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_WindowRectChanging(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + check_hresult(_winrt_abi_type->add_WindowRectChanging(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + WindowRectChanging( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::WindowRectChangingEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, WindowRectChanging(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< + D>::WindowRectChanging(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_WindowRectChanging(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + _winrt_abi_type->remove_WindowRectChanging(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + WindowRectChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::WindowRectChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_WindowRectChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + check_hresult(_winrt_abi_type->add_WindowRectChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + WindowRectChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::WindowRectChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, WindowRectChanged(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< + D>::WindowRectChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_WindowRectChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + _winrt_abi_type->remove_WindowRectChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + ExitedMoveSize(winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::ExitedMoveSizeEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ExitedMoveSize(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + check_hresult(_winrt_abi_type->add_ExitedMoveSize(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2:: + ExitedMoveSize( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputNonClientPointerSource, + winrt::Microsoft::UI::Input::ExitedMoveSizeEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ExitedMoveSize(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSource2< + D>::ExitedMoveSize(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ExitedMoveSize(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputNonClientPointerSource2>**)this; + _winrt_abi_type->remove_ExitedMoveSize(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputNonClientPointerSourceStatics< + D>::GetForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputNonClientPointerSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetForWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::Input::InputNonClientPointerSource{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputObject::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IInputObject>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::Cursor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cursor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cursor(&value)); + } + return winrt::Microsoft::UI::Input::InputCursor{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::Cursor( + winrt::Microsoft::UI::Input::InputCursor const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cursor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cursor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::DeviceKinds() const { + winrt::Microsoft::UI::Input::InputPointerSourceDeviceKinds value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DeviceKinds(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DeviceKinds(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerCaptureLost(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerCaptureLost(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerCaptureLost(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerCaptureLost( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerCaptureLost(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerCaptureLost(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerEntered(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerEntered( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerExited(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerExited( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerMoved(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerMoved( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerPressed(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerPressed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerReleased(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerReleased( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerRoutedAway(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerRoutedAway(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerRoutedAway(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedAway( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerRoutedAway(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerRoutedAway(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerRoutedReleased( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerRoutedReleased( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerRoutedReleased(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedReleased( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerRoutedReleased(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerRoutedReleased(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerRoutedTo(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerRoutedTo(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerRoutedTo(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerRoutedTo( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerRoutedTo(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerRoutedTo(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerWheelChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerWheelChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Input::InputPointerSource, + winrt::Microsoft::UI::Input::PointerEventArgs> const& handler) const { + return impl::make_event_revoker( + this, PointerWheelChanged(handler)); +} +template +auto consume_Microsoft_UI_Input_IInputPointerSource::PointerWheelChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputPointerSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerWheelChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerWheelChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Input_IInputPointerSourceStatics::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputPointerSourceStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPointerSourceStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } + return winrt::Microsoft::UI::Input::InputPointerSource{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputPreTranslateKeyboardSourceStatics< + D>::GetForIsland(winrt::Microsoft::UI::Content::ContentIsland const& island) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IInputPreTranslateKeyboardSourceStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForIsland(*(void**)(&island), &result)); + } + return winrt::Microsoft::UI::Input::InputPreTranslateKeyboardSource{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IInputSystemCursor::CursorShape() const { + winrt::Microsoft::UI::Input::InputSystemCursorShape value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IInputSystemCursor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputSystemCursor, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CursorShape(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CursorShape(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IInputSystemCursorStatics::Create( + winrt::Microsoft::UI::Input::InputSystemCursorShape const& type) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IInputSystemCursorStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IInputSystemCursorStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(static_cast(type), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(static_cast(type), &result)); + } + return winrt::Microsoft::UI::Input::InputSystemCursor{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IKeyEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IKeyEventArgs::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Input_IKeyEventArgs::KeyStatus() const { + winrt::Microsoft::UI::Input::PhysicalKeyStatus value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IKeyEventArgs::Timestamp() const { + uint64_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Timestamp(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Timestamp(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IKeyEventArgs::VirtualKey() const { + winrt::Windows::System::VirtualKey value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IKeyEventArgs>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_VirtualKey(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_VirtualKey(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Cumulative() + const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Position() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationCompletedEventArgs::Velocities() + const { + winrt::Microsoft::UI::Input::ManipulationVelocities value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< + D>::Cumulative() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< + D>::Delta() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< + D>::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationInertiaStartingEventArgs< + D>::Velocities() const { + winrt::Microsoft::UI::Input::ManipulationVelocities value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input:: + IManipulationInertiaStartingEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::Cumulative() + const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationStartedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationStartedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationStartedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationStartedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationStartedEventArgs::Position() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationStartedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationStartedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Cumulative() + const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Delta() + const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Position() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IManipulationUpdatedEventArgs::Velocities() + const { + winrt::Microsoft::UI::Input::ManipulationVelocities value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IManipulationUpdatedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::CharTranslation() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharTranslation(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharTranslation(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::CharTranslation( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharTranslation(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharTranslation(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaScale() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DeltaScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DeltaScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaScale( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DeltaScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DeltaScale(value)); + } +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaRotationAngle() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DeltaRotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DeltaRotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::DeltaRotationAngle( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DeltaRotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DeltaRotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::PageTranslation() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PageTranslation(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PageTranslation(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IMouseWheelParameters::PageTranslation( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IMouseWheelParameters>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IMouseWheelParameters, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PageTranslation(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PageTranslation(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_INonClientCaptionTappedEventArgs::Point() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_INonClientCaptionTappedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::Point() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_INonClientPointerEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::RegionKind() + const { + winrt::Microsoft::UI::Input::NonClientRegionKind value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_RegionKind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_RegionKind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_INonClientPointerEventArgs::IsPointInRegion() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::INonClientPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientPointerEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPointInRegion(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPointInRegion(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_INonClientRegionsChangedEventArgs< + D>::ChangedRegions() const { + uint32_t value_impl_size{}; + int32_t* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::INonClientRegionsChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ChangedRegions(&value_impl_size, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ChangedRegions(&value_impl_size, &value)); + } + return com_array{ + value, value_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerEventArgs::CurrentPoint() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentPoint(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentPoint(&value)); + } + return winrt::Microsoft::UI::Input::PointerPoint{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Input_IPointerEventArgs::KeyModifiers() const { + winrt::Windows::System::VirtualKeyModifiers value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeyModifiers(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeyModifiers(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerEventArgs::GetIntermediatePoints() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIntermediatePoints(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIntermediatePoints(&result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Input::PointerPoint>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerEventArgs:: + GetIntermediateTransformedPoints( + winrt::Microsoft::UI::Input::IPointerPointTransform const& transform) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIntermediateTransformedPoints( + *(void**)(&transform), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIntermediateTransformedPoints( + *(void**)(&transform), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Input::PointerPoint>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::FrameId() const { + uint32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FrameId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FrameId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::IsInContact() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInContact(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInContact(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::PointerId() const { + uint32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::Properties() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Properties(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Properties(&value)); + } + return winrt::Microsoft::UI::Input::PointerPointProperties{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::Timestamp() const { + uint64_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Timestamp(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Timestamp(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPoint::GetTransformedPoint( + winrt::Microsoft::UI::Input::IPointerPointTransform const& transform) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Input::IPointerPoint>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetTransformedPoint(*(void**)(&transform), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetTransformedPoint(*(void**)(&transform), &result)); + } + return winrt::Microsoft::UI::Input::PointerPoint{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::ContactRect() + const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContactRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContactRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties< + D>::IsBarrelButtonPressed() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBarrelButtonPressed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBarrelButtonPressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsCanceled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCanceled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCanceled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsEraser() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEraser(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEraser(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties< + D>::IsHorizontalMouseWheel() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalMouseWheel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalMouseWheel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsInRange() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInRange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInRange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsInverted() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInverted(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInverted(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties< + D>::IsLeftButtonPressed() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLeftButtonPressed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLeftButtonPressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties< + D>::IsMiddleButtonPressed() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMiddleButtonPressed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMiddleButtonPressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsPrimary() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPrimary(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPrimary(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties< + D>::IsRightButtonPressed() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRightButtonPressed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRightButtonPressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsXButton1Pressed() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsXButton1Pressed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsXButton1Pressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::IsXButton2Pressed() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsXButton2Pressed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsXButton2Pressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::MouseWheelDelta() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MouseWheelDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MouseWheelDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::Orientation() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::PointerUpdateKind() + const { + winrt::Microsoft::UI::Input::PointerUpdateKind value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerUpdateKind( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerUpdateKind( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::Pressure() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pressure(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pressure(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::TouchConfidence() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TouchConfidence(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TouchConfidence(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::Twist() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Twist(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Twist(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::XTilt() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XTilt(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XTilt(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointProperties::YTilt() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointProperties>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointProperties, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YTilt(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YTilt(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPointTransform::Inverse() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Inverse(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Inverse(&value)); + } + return winrt::Microsoft::UI::Input::IPointerPointTransform{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerPointTransform::TryTransform( + winrt::Windows::Foundation::Point const& inPoint, + winrt::Windows::Foundation::Point& outPoint) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryTransform( + impl::bind_in(inPoint), impl::bind_out(outPoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryTransform( + impl::bind_in(inPoint), impl::bind_out(outPoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IPointerPointTransform::TryTransformBounds( + winrt::Windows::Foundation::Rect const& inRect, + winrt::Windows::Foundation::Rect& outRect) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPointTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPointTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryTransformBounds( + impl::bind_in(inRect), impl::bind_out(outRect), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryTransformBounds( + impl::bind_in(inRect), impl::bind_out(outRect), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Input_IPointerPredictor::PredictionTime() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPredictor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PredictionTime(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PredictionTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IPointerPredictor::PredictionTime( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPredictor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PredictionTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PredictionTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_IPointerPredictor::GetPredictedPoints( + winrt::Microsoft::UI::Input::PointerPoint const& point) const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPredictor>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPredictedPoints( + *(void**)(&point), &result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPredictedPoints( + *(void**)(&point), &result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IPointerPredictorStatics:: + CreateForInputPointerSource( + winrt::Microsoft::UI::Input::InputPointerSource const& + inputPointerSource) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IPointerPredictorStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IPointerPredictorStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForInputPointerSource( + *(void**)(&inputPointerSource), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForInputPointerSource( + *(void**)(&inputPointerSource), &result)); + } + return winrt::Microsoft::UI::Input::PointerPredictor{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Input_IRightTappedEventArgs::PointerDeviceType() + const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IRightTappedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IRightTappedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IRightTappedEventArgs::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::IRightTappedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IRightTappedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ITappedEventArgs::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::ITappedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ITappedEventArgs::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::ITappedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_ITappedEventArgs::TapCount() const { + uint32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Input::ITappedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TapCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TapCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs< + D>::PointerScreenPoint() const { + winrt::Windows::Graphics::PointInt32 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs< + D>::MoveSizeOperation() const { + winrt::Microsoft::UI::Input::MoveSizeOperation value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::OldWindowRect() + const { + winrt::Windows::Graphics::RectInt32 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangedEventArgs::NewWindowRect() + const { + winrt::Windows::Graphics::RectInt32 value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< + D>::PointerScreenPoint() const { + winrt::Windows::Graphics::PointInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerScreenPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< + D>::MoveSizeOperation() const { + winrt::Microsoft::UI::Input::MoveSizeOperation value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_MoveSizeOperation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::OldWindowRect() + const { + winrt::Windows::Graphics::RectInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_OldWindowRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::NewWindowRect() + const { + winrt::Windows::Graphics::RectInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NewWindowRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::NewWindowRect( + winrt::Windows::Graphics::RectInt32 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NewWindowRect(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_NewWindowRect(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< + D>::AllowRectChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowRectChange(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowRectChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs< + D>::AllowRectChange(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowRectChange(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowRectChange(value)); + } +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::ShowWindow() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowWindow(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowWindow(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Input_IWindowRectChangingEventArgs::ShowWindow( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Input::IWindowRectChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowWindow(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowWindow(value)); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyCode(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyCode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyStatus( + struct struct_Microsoft_UI_Input_PhysicalKeyStatus* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyStatus()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CrossSlidingState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CrossSlidingState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DraggingState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DraggingState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerScreenPoint( + struct struct_Windows_Graphics_PointInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerScreenPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MoveSizeOperation()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerScreenPoint( + struct struct_Windows_Graphics_PointInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerScreenPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MoveSizeOperation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MoveSizeWindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MoveSizeWindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MoveSizeWindowId( + struct struct_Microsoft_UI_WindowId value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveSizeWindowId( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerScreenPoint( + struct struct_Windows_Graphics_PointInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerScreenPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MoveSizeOperation()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HintRect(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().HintRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Reason(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Reason()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IFocusNavigationRequestEventArgs> { + int32_t __stdcall get_Request(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Request()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Result(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Result()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Result(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Result( + *reinterpret_cast< + winrt::Microsoft::UI::Input::FocusNavigationResult const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IFocusNavigationRequestStatics> { + int32_t __stdcall Create(int32_t reason, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Input::FocusNavigationReason const*>( + &reason))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithHintRect( + int32_t reason, winrt::Windows::Foundation::Rect hintRect, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Input::FocusNavigationReason const*>( + &reason), + *reinterpret_cast( + &hintRect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithHintRectAndId( + int32_t reason, winrt::Windows::Foundation::Rect hintRect, + winrt::guid correlationId, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Input::FocusNavigationReason const*>( + &reason), + *reinterpret_cast( + &hintRect), + *reinterpret_cast(&correlationId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutoProcessInertia(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoProcessInertia()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AutoProcessInertia(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AutoProcessInertia(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CrossSlideExact(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CrossSlideExact()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CrossSlideExact(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CrossSlideExact(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CrossSlideHorizontally(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CrossSlideHorizontally()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CrossSlideHorizontally(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CrossSlideHorizontally(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CrossSlideThresholds( + struct struct_Microsoft_UI_Input_CrossSlideThresholds* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CrossSlideThresholds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CrossSlideThresholds( + struct struct_Microsoft_UI_Input_CrossSlideThresholds value) noexcept + final try { + typename D::abi_guard guard(this->shim()); + this->shim().CrossSlideThresholds( + *reinterpret_cast< + winrt::Microsoft::UI::Input::CrossSlideThresholds const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GestureSettings(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GestureSettings()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GestureSettings(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GestureSettings( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsActive(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActive()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInertial(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInertial()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PivotCenter( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PivotCenter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PivotCenter( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PivotCenter( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PivotRadius(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PivotRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PivotRadius(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PivotRadius(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaExpansionDeceleration( + float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InertiaExpansionDeceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InertiaExpansionDeceleration(float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaExpansionDeceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaExpansion(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InertiaExpansion()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InertiaExpansion(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaExpansion(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaRotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InertiaRotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InertiaRotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaRotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaRotationDeceleration(float* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InertiaRotationDeceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InertiaRotationDeceleration(float value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaRotationDeceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaTranslationDeceleration( + float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InertiaTranslationDeceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InertiaTranslationDeceleration( + float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaTranslationDeceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaTranslationDisplacement( + float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InertiaTranslationDisplacement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InertiaTranslationDisplacement( + float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InertiaTranslationDisplacement(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationExact(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ManipulationExact()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ManipulationExact(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationExact(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MouseWheelParameters(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MouseWheelParameters()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShowGestureFeedback(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowGestureFeedback()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShowGestureFeedback(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowGestureFeedback(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CanBeDoubleTap(void* value, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanBeDoubleTap( + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CompleteGesture() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CompleteGesture(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessDownEvent(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessDownEvent( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessMoveEvents(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessMoveEvents( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessMouseWheelEvent(void* value, bool isShiftKeyDown, + bool isControlKeyDown) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessMouseWheelEvent( + *reinterpret_cast( + &value), + isShiftKeyDown, isControlKeyDown); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessInertia() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessInertia(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessUpEvent(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessUpEvent( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Tapped(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Tapped( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Tapped(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Tapped(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_RightTapped(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RightTapped( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_RightTapped( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().RightTapped( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Holding(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Holding( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Holding(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Holding(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Dragging(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Dragging( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Dragging(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Dragging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationStarted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationStarted( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationStarted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationStarted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationUpdated( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationUpdated( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationUpdated( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationUpdated( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationInertiaStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().ManipulationInertiaStarting( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationInertiaStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationInertiaStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationCompleted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CrossSliding(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CrossSliding( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CrossSliding( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CrossSliding( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HoldingState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HoldingState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_State(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_InputActivationChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().InputActivationChanged( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_InputActivationChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().InputActivationChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputActivationListenerStatics> { + int32_t __stdcall GetForWindowId(struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputActivationListenerStatics2> { + int32_t __stdcall GetForIsland(void* island, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForIsland( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateFromCoreCursor(void* cursor, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateFromCoreCursor( + *reinterpret_cast( + &cursor))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursor> { + int32_t __stdcall get_ModuleName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ModuleName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ResourceName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ResourceName()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics> + : produce_base { + int32_t __stdcall Create(void* resourceName, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor>( + this->shim().Create(*reinterpret_cast(&resourceName))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateFromModule(void* moduleName, void* resourceName, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Input::InputDesktopNamedResourceCursor>( + this->shim().CreateFromModule( + *reinterpret_cast(&moduleName), + *reinterpret_cast(&resourceName))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ModuleName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ModuleName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ResourceId(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ResourceId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputDesktopResourceCursorStatics> { + int32_t __stdcall Create(uint32_t resourceId, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().Create(resourceId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateFromModule(void* moduleName, uint32_t resourceId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().CreateFromModule( + *reinterpret_cast(&moduleName), resourceId)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HasFocus(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasFocus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TrySetFocus(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TrySetFocus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_GotFocus(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GotFocus( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GotFocus(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LostFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LostFocus( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LostFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LostFocus( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall DepartFocus(void* request, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().DepartFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Input::FocusNavigationRequest const*>( + &request))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_NavigateFocusRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().NavigateFocusRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_NavigateFocusRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().NavigateFocusRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetForIsland(void* island, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForIsland( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ContainsFocus(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContainsFocus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall NavigateFocus(void* request, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().NavigateFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Input::FocusNavigationRequest const*>( + &request))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_DepartFocusRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DepartFocusRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DepartFocusRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DepartFocusRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics> { + int32_t __stdcall GetForSiteBridge(void* site, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetForSiteBridge( + *reinterpret_cast< + winrt::Microsoft::UI::Content::IContentSiteBridge const*>( + &site))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputFocusNavigationHostStatics2> { + int32_t __stdcall GetForSiteLink(void* contentSiteLink, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetForSiteLink( + *reinterpret_cast< + winrt::Microsoft::UI::Content::IContentSiteLink const*>( + &contentSiteLink))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetCurrentKeyState(int32_t virtualKey, + uint32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCurrentKeyState( + *reinterpret_cast( + &virtualKey))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetKeyState(int32_t virtualKey, + uint32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetKeyState( + *reinterpret_cast( + &virtualKey))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_CharacterReceived( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CharacterReceived( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CharacterReceived( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterReceived( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextMenuKey(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextMenuKey( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ContextMenuKey( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ContextMenuKey( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_KeyDown(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().KeyDown( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_KeyDown(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().KeyDown(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_KeyUp(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().KeyUp( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_KeyUp(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().KeyUp(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SystemKeyDown(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SystemKeyDown( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SystemKeyDown( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SystemKeyDown( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SystemKeyUp(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SystemKeyUp( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SystemKeyUp( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SystemKeyUp( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetKeyStateForCurrentThread(int32_t virtualKey, + uint32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetKeyStateForCurrentThread( + *reinterpret_cast( + &virtualKey))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetForIsland(void* island, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForIsland( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall add_Dismissed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Dismissed( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Dismissed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Dismissed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputLightDismissActionStatics> { + int32_t __stdcall GetForWindowId(struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ClearAllRegionRects() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearAllRegionRects(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ClearRegionRects(int32_t region) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearRegionRects( + *reinterpret_cast< + winrt::Microsoft::UI::Input::NonClientRegionKind const*>(®ion)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRegionRects( + int32_t region, uint32_t* __resultSize, + struct struct_Windows_Graphics_RectInt32** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = detach_abi(this->shim().GetRegionRects( + *reinterpret_cast< + winrt::Microsoft::UI::Input::NonClientRegionKind const*>(®ion))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetRegionRects( + int32_t region, uint32_t __rectsSize, + struct struct_Windows_Graphics_RectInt32* rects) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetRegionRects( + *reinterpret_cast< + winrt::Microsoft::UI::Input::NonClientRegionKind const*>(®ion), + array_view( + reinterpret_cast(rects), + reinterpret_cast( + rects) + + __rectsSize)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_CaptionTapped(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CaptionTapped( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CaptionTapped( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CaptionTapped( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerEntered(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerEntered( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerEntered( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerEntered( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerExited(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerExited( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerExited( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerExited( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerMoved(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerMoved( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerMoved( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerMoved( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerPressed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerPressed( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerPressed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerPressed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerReleased( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerReleased( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerReleased( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerReleased( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_RegionsChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RegionsChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_RegionsChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().RegionsChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall add_EnteringMoveSize( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().EnteringMoveSize( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_EnteringMoveSize( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().EnteringMoveSize( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_EnteredMoveSize( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().EnteredMoveSize( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_EnteredMoveSize( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().EnteredMoveSize( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_WindowRectChanging( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().WindowRectChanging( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_WindowRectChanging( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().WindowRectChanging( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_WindowRectChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().WindowRectChanged( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_WindowRectChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().WindowRectChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ExitedMoveSize(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ExitedMoveSize( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ExitedMoveSize( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ExitedMoveSize( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputNonClientPointerSourceStatics> { + int32_t __stdcall GetForWindowId(struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetForWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Cursor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cursor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cursor(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cursor( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DeviceKinds(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DeviceKinds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_PointerCaptureLost( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerCaptureLost( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerCaptureLost( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerCaptureLost( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerEntered(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerEntered( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerEntered( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerEntered( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerExited(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerExited( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerExited( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerExited( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerMoved(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerMoved( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerMoved( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerMoved( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerPressed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerPressed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerPressed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerPressed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerReleased( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerReleased( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerReleased( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerReleased( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerRoutedAway( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerRoutedAway( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerRoutedAway( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerRoutedAway( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerRoutedReleased( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerRoutedReleased( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerRoutedReleased( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerRoutedReleased( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerRoutedTo( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerRoutedTo( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerRoutedTo( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerRoutedTo( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerWheelChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerWheelChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerWheelChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerWheelChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetForIsland(void* island, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForIsland( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSource> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics> + : produce_base { + int32_t __stdcall GetForIsland(void* island, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Input::InputPreTranslateKeyboardSource>( + this->shim().GetForIsland( + *reinterpret_cast< + winrt::Microsoft::UI::Content::ContentIsland const*>(&island))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CursorShape(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CursorShape()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(int32_t type, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Input::InputSystemCursorShape const*>( + &type))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyStatus( + struct struct_Microsoft_UI_Input_PhysicalKeyStatus* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyStatus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Timestamp()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VirtualKey(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VirtualKey()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::IManipulationCompletedEventArgs> { + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Velocities( + struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Velocities()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Input::IManipulationInertiaStartingEventArgs> { + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Delta( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Delta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Velocities( + struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Velocities()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Delta( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Delta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Velocities( + struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Velocities()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CharTranslation( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CharTranslation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CharTranslation( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CharTranslation( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DeltaScale(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DeltaScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DeltaScale(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DeltaScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DeltaRotationAngle(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DeltaRotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DeltaRotationAngle(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DeltaRotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PageTranslation( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PageTranslation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PageTranslation( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageTranslation( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::INonClientCaptionTappedEventArgs> { + int32_t __stdcall get_Point( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Point( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RegionKind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RegionKind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPointInRegion(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPointInRegion()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Input::INonClientRegionsChangedEventArgs> { + int32_t __stdcall get_ChangedRegions(uint32_t* __valueSize, + int32_t** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().ChangedRegions()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CurrentPoint(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CurrentPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyModifiers(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyModifiers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIntermediatePoints(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetIntermediatePoints()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIntermediateTransformedPoints( + void* transform, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetIntermediateTransformedPoints( + *reinterpret_cast< + winrt::Microsoft::UI::Input::IPointerPointTransform const*>( + &transform))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FrameId(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FrameId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInContact(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInContact()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerId(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Properties(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Properties()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Timestamp()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTransformedPoint(void* transform, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetTransformedPoint( + *reinterpret_cast< + winrt::Microsoft::UI::Input::IPointerPointTransform const*>( + &transform))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ContactRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContactRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsBarrelButtonPressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBarrelButtonPressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCanceled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCanceled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEraser(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEraser()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHorizontalMouseWheel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalMouseWheel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInRange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInRange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInverted(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInverted()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsLeftButtonPressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLeftButtonPressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsMiddleButtonPressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMiddleButtonPressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPrimary(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPrimary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRightButtonPressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRightButtonPressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsXButton1Pressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsXButton1Pressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsXButton2Pressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsXButton2Pressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MouseWheelDelta(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MouseWheelDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Orientation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerUpdateKind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerUpdateKind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Pressure(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pressure()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TouchConfidence(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TouchConfidence()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Twist(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Twist()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XTilt(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().XTilt()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_YTilt(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YTilt()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_Inverse(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Inverse()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryTransform(winrt::Windows::Foundation::Point inPoint, + winrt::Windows::Foundation::Point* outPoint, + bool* result) noexcept final try { + zero_abi(outPoint); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryTransform( + *reinterpret_cast(&inPoint), + *reinterpret_cast(outPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryTransformBounds( + winrt::Windows::Foundation::Rect inRect, + winrt::Windows::Foundation::Rect* outRect, bool* result) noexcept final + try { + zero_abi(outRect); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryTransformBounds( + *reinterpret_cast(&inRect), + *reinterpret_cast(outRect))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PredictionTime(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PredictionTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PredictionTime(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PredictionTime( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPredictedPoints(void* point, uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetPredictedPoints( + *reinterpret_cast( + &point))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForInputPointerSource(void* inputPointerSource, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForInputPointerSource( + *reinterpret_cast< + winrt::Microsoft::UI::Input::InputPointerSource const*>( + &inputPointerSource))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TapCount(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TapCount()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerScreenPoint( + struct struct_Windows_Graphics_PointInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerScreenPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MoveSizeOperation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OldWindowRect( + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldWindowRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewWindowRect( + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewWindowRect()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerScreenPoint( + struct struct_Windows_Graphics_PointInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerScreenPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MoveSizeOperation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MoveSizeOperation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OldWindowRect( + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldWindowRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewWindowRect( + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewWindowRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NewWindowRect( + struct struct_Windows_Graphics_RectInt32 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NewWindowRect( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowRectChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowRectChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowRectChange(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowRectChange(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShowWindow(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowWindow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShowWindow(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowWindow(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Input { + constexpr auto operator|(GestureSettings const left, + GestureSettings const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(GestureSettings& left, + GestureSettings const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(GestureSettings const left, + GestureSettings const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(GestureSettings& left, + GestureSettings const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(GestureSettings const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(GestureSettings const left, + GestureSettings const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(GestureSettings& left, + GestureSettings const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(InputPointerSourceDeviceKinds const left, + InputPointerSourceDeviceKinds const right) noexcept { + return static_cast( + impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=( + InputPointerSourceDeviceKinds& left, + InputPointerSourceDeviceKinds const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(InputPointerSourceDeviceKinds const left, + InputPointerSourceDeviceKinds const right) noexcept { + return static_cast( + impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=( + InputPointerSourceDeviceKinds& left, + InputPointerSourceDeviceKinds const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(InputPointerSourceDeviceKinds const value) noexcept { + return static_cast( + ~impl::to_underlying_type(value)); + } + constexpr auto operator^(InputPointerSourceDeviceKinds const left, + InputPointerSourceDeviceKinds const right) noexcept { + return static_cast( + impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=( + InputPointerSourceDeviceKinds& left, + InputPointerSourceDeviceKinds const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(VirtualKeyStates const left, + VirtualKeyStates const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(VirtualKeyStates& left, + VirtualKeyStates const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(VirtualKeyStates const left, + VirtualKeyStates const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(VirtualKeyStates& left, + VirtualKeyStates const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(VirtualKeyStates const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(VirtualKeyStates const left, + VirtualKeyStates const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(VirtualKeyStates& left, + VirtualKeyStates const right) noexcept { + left = left ^ right; + return left; + } + inline auto FocusNavigationRequest::Create( + winrt::Microsoft::UI::Input::FocusNavigationReason const& reason) { + return impl::call_factory( + [&](IFocusNavigationRequestStatics const& f) { + return f.Create(reason); + }); + } + inline auto FocusNavigationRequest::Create( + winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect) { + return impl::call_factory( + [&](IFocusNavigationRequestStatics const& f) { + return f.Create(reason, hintRect); + }); + } + inline auto FocusNavigationRequest::Create( + winrt::Microsoft::UI::Input::FocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect, + winrt::guid const& correlationId) { + return impl::call_factory( + [&](IFocusNavigationRequestStatics const& f) { + return f.Create(reason, hintRect, correlationId); + }); + } + inline GestureRecognizer::GestureRecognizer() + : GestureRecognizer( + impl::call_factory_cast< + GestureRecognizer (*)( + winrt::Windows::Foundation::IActivationFactory const&), + GestureRecognizer>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto InputActivationListener::GetForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IInputActivationListenerStatics const& f) { + return f.GetForWindowId(windowId); + }); + } + inline auto InputActivationListener::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) { + return impl::call_factory( + [&](IInputActivationListenerStatics2 const& f) { + return f.GetForIsland(island); + }); + } + inline auto InputCursor::CreateFromCoreCursor( + winrt::Windows::UI::Core::CoreCursor const& cursor) { + return impl::call_factory( + [&](IInputCursorStatics const& f) { + return f.CreateFromCoreCursor(cursor); + }); + } + inline auto InputDesktopNamedResourceCursor::Create( + param::hstring const& resourceName) { + return impl::call_factory( + [&](IInputDesktopNamedResourceCursorStatics const& f) { + return f.Create(resourceName); + }); + } + inline auto InputDesktopNamedResourceCursor::CreateFromModule( + param::hstring const& moduleName, param::hstring const& resourceName) { + return impl::call_factory( + [&](IInputDesktopNamedResourceCursorStatics const& f) { + return f.CreateFromModule(moduleName, resourceName); + }); + } + inline auto InputDesktopResourceCursor::Create(uint32_t resourceId) { + return impl::call_factory( + [&](IInputDesktopResourceCursorStatics const& f) { + return f.Create(resourceId); + }); + } + inline auto InputDesktopResourceCursor::CreateFromModule( + param::hstring const& moduleName, uint32_t resourceId) { + return impl::call_factory( + [&](IInputDesktopResourceCursorStatics const& f) { + return f.CreateFromModule(moduleName, resourceId); + }); + } + inline auto InputFocusController::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) { + return impl::call_factory( + [&](IInputFocusControllerStatics const& f) { + return f.GetForIsland(island); + }); + } + inline auto InputFocusNavigationHost::GetForSiteBridge( + winrt::Microsoft::UI::Content::IContentSiteBridge const& site) { + return impl::call_factory( + [&](IInputFocusNavigationHostStatics const& f) { + return f.GetForSiteBridge(site); + }); + } + inline auto InputFocusNavigationHost::GetForSiteLink( + winrt::Microsoft::UI::Content::IContentSiteLink const& contentSiteLink) { + return impl::call_factory( + [&](IInputFocusNavigationHostStatics2 const& f) { + return f.GetForSiteLink(contentSiteLink); + }); + } + inline auto InputKeyboardSource::GetKeyStateForCurrentThread( + winrt::Windows::System::VirtualKey const& virtualKey) { + return impl::call_factory( + [&](IInputKeyboardSourceStatics const& f) { + return f.GetKeyStateForCurrentThread(virtualKey); + }); + } + inline auto InputKeyboardSource::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) { + return impl::call_factory( + [&](IInputKeyboardSourceStatics2 const& f) { + return f.GetForIsland(island); + }); + } + inline auto InputLightDismissAction::GetForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IInputLightDismissActionStatics const& f) { + return f.GetForWindowId(windowId); + }); + } + inline auto InputNonClientPointerSource::GetForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IInputNonClientPointerSourceStatics const& f) { + return f.GetForWindowId(windowId); + }); + } + inline auto InputPointerSource::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) { + return impl::call_factory( + [&](IInputPointerSourceStatics const& f) { + return f.GetForIsland(island); + }); + } + inline auto InputPreTranslateKeyboardSource::GetForIsland( + winrt::Microsoft::UI::Content::ContentIsland const& island) { + return impl::call_factory( + [&](IInputPreTranslateKeyboardSourceStatics const& f) { + return f.GetForIsland(island); + }); + } + inline auto InputSystemCursor::Create( + winrt::Microsoft::UI::Input::InputSystemCursorShape const& type) { + return impl::call_factory( + [&](IInputSystemCursorStatics const& f) { return f.Create(type); }); + } + inline auto PointerPredictor::CreateForInputPointerSource( + winrt::Microsoft::UI::Input::InputPointerSource const& + inputPointerSource) { + return impl::call_factory( + [&](IPointerPredictorStatics const& f) { + return f.CreateForInputPointerSource(inputPointerSource); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Input::IInputDesktopNamedResourceCursorStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Input::IInputPreTranslateKeyboardSourceStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.System.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.System.h new file mode 100644 index 00000000..a9800d44 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.System.h @@ -0,0 +1,223 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_System_H +#define WINRT_Microsoft_UI_System_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.System.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_System_IThemeSettings::Changed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::System::ThemeSettings, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_System_IThemeSettings::Changed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::System::ThemeSettings, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Changed(handler)); +} +template +auto consume_Microsoft_UI_System_IThemeSettings::Changed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_System_IThemeSettings::HighContrast() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HighContrast(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HighContrast(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_System_IThemeSettings::HighContrastScheme() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HighContrastScheme(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HighContrastScheme(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_System_IThemeSettingsStatics::CreateForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::System::IThemeSettingsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::System::IThemeSettingsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateForWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateForWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::System::ThemeSettings{result, + take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall add_Changed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Changed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Changed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_HighContrast(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HighContrast()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HighContrastScheme(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HighContrastScheme()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateForWindowId( + struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::System { + inline auto ThemeSettings::CreateForWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IThemeSettingsStatics const& f) { + return f.CreateForWindowId(windowId); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Text.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Text.h new file mode 100644 index 00000000..282b6199 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Text.h @@ -0,0 +1,6869 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Text_H +#define WINRT_Microsoft_UI_Text_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.Text.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Storage.Streams.2.h" +#include "winrt/impl/Windows.UI.2.h" +#include "winrt/impl/Windows.UI.Text.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::Black() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Black(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Black(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::Bold() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bold(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bold(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::ExtraBlack() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtraBlack(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtraBlack(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::ExtraBold() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtraBold(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtraBold(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::ExtraLight() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtraLight(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtraLight(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::Light() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Light(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Light(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::Medium() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Medium(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Medium(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::Normal() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Normal(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Normal(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::SemiBold() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SemiBold(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SemiBold(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::SemiLight() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SemiLight(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SemiLight(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_IFontWeightsStatics::Thin() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::IFontWeightsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::IFontWeightsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Thin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Thin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::AllCaps() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AllCaps(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AllCaps(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::AllCaps( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllCaps(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllCaps(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::BackgroundColor() + const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::BackgroundColor( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Bold() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Bold(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Bold(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Bold( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Bold(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Bold(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::FontStretch() const { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::FontStretch( + winrt::Windows::UI::Text::FontStretch const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FontStretch(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FontStretch(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::FontStyle() const { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::FontStyle( + winrt::Windows::UI::Text::FontStyle const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::ForegroundColor() + const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::ForegroundColor( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ForegroundColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ForegroundColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Hidden() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Hidden(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Hidden(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Hidden( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Hidden(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Hidden(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Italic() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Italic(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Italic(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Italic( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Italic(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Italic(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Kerning() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Kerning(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Kerning(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Kerning( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Kerning(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Kerning(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::LanguageTag() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LanguageTag(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LanguageTag(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::LanguageTag( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LanguageTag(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LanguageTag(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::LinkType() const { + winrt::Microsoft::UI::Text::LinkType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_LinkType(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_LinkType(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Name() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Name( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Outline() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Outline(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Outline(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Outline( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Outline(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Outline(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Position() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Position( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Position(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Position(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::ProtectedText() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ProtectedText(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ProtectedText(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::ProtectedText( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ProtectedText(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ProtectedText(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Size() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Size( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Size(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Size(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::SmallCaps() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SmallCaps(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SmallCaps(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::SmallCaps( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SmallCaps(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SmallCaps(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Spacing() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Spacing(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Spacing(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Spacing( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Spacing(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Spacing(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Strikethrough() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Strikethrough(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Strikethrough(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Strikethrough( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_Strikethrough(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_Strikethrough(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Subscript() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Subscript(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Subscript(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Subscript( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Subscript(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Subscript(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Superscript() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Superscript(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Superscript(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Superscript( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_Superscript(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_Superscript(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::TextScript() const { + winrt::Microsoft::UI::Text::TextScript value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_TextScript(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_TextScript(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::TextScript( + winrt::Microsoft::UI::Text::TextScript const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextScript(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextScript(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Underline() const { + winrt::Microsoft::UI::Text::UnderlineType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Underline(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Underline(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Underline( + winrt::Microsoft::UI::Text::UnderlineType const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Underline(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Underline(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Weight() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Weight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Weight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::Weight( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Weight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Weight(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::SetClone( + winrt::Microsoft::UI::Text::ITextCharacterFormat const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetClone(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetClone(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::GetClone() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClone(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClone(&result)); + } + return winrt::Microsoft::UI::Text::ITextCharacterFormat{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextCharacterFormat::IsEqual( + winrt::Microsoft::UI::Text::ITextCharacterFormat const& format) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextCharacterFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextCharacterFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::AutoColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::MinUnitCount() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinUnitCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinUnitCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::MaxUnitCount() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxUnitCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxUnitCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::UndefinedColor() + const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UndefinedColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UndefinedColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::UndefinedFloatValue() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UndefinedFloatValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UndefinedFloatValue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::UndefinedInt32Value() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UndefinedInt32Value(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UndefinedInt32Value(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::UndefinedFontStretch() + const { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UndefinedFontStretch( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UndefinedFontStretch( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextConstantsStatics::UndefinedFontStyle() + const { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextConstantsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextConstantsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UndefinedFontStyle( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UndefinedFontStyle( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::CaretType() const { + winrt::Microsoft::UI::Text::CaretType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CaretType(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CaretType(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::CaretType( + winrt::Microsoft::UI::Text::CaretType const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CaretType(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CaretType(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::DefaultTabStop() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultTabStop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultTabStop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::DefaultTabStop( + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultTabStop(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultTabStop(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::Selection() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Selection(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Selection(&value)); + } + return winrt::Microsoft::UI::Text::ITextSelection{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::UndoLimit() const { + uint32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UndoLimit(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UndoLimit(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::UndoLimit( + uint32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UndoLimit(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UndoLimit(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::CanCopy() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanCopy(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanCopy(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::CanPaste() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanPaste(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanPaste(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::CanRedo() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanRedo(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanRedo(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::CanUndo() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanUndo(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanUndo(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::ApplyDisplayUpdates() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ApplyDisplayUpdates(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ApplyDisplayUpdates(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::BatchDisplayUpdates() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->BatchDisplayUpdates(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->BatchDisplayUpdates(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::BeginUndoGroup() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->BeginUndoGroup()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->BeginUndoGroup()); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::EndUndoGroup() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EndUndoGroup()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->EndUndoGroup()); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::GetDefaultCharacterFormat() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDefaultCharacterFormat(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDefaultCharacterFormat(&result)); + } + return winrt::Microsoft::UI::Text::ITextCharacterFormat{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::GetDefaultParagraphFormat() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDefaultParagraphFormat(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDefaultParagraphFormat(&result)); + } + return winrt::Microsoft::UI::Text::ITextParagraphFormat{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::GetRange( + int32_t startPosition, int32_t endPosition) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetRange(startPosition, endPosition, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetRange(startPosition, endPosition, &result)); + } + return winrt::Microsoft::UI::Text::ITextRange{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::GetRangeFromPoint( + winrt::Windows::Foundation::Point const& point, + winrt::Microsoft::UI::Text::PointOptions const& options) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRangeFromPoint( + impl::bind_in(point), static_cast(options), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRangeFromPoint( + impl::bind_in(point), static_cast(options), &result)); + } + return winrt::Microsoft::UI::Text::ITextRange{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::GetText( + winrt::Microsoft::UI::Text::TextGetOptions const& options, + hstring& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetText(static_cast(options), + impl::bind_out(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetText(static_cast(options), + impl::bind_out(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::LoadFromStream( + winrt::Microsoft::UI::Text::TextSetOptions const& options, + winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadFromStream( + static_cast(options), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadFromStream( + static_cast(options), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::Redo() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Redo()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Redo()); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::SaveToStream( + winrt::Microsoft::UI::Text::TextGetOptions const& options, + winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SaveToStream(static_cast(options), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SaveToStream(static_cast(options), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::SetDefaultCharacterFormat( + winrt::Microsoft::UI::Text::ITextCharacterFormat const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetDefaultCharacterFormat(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetDefaultCharacterFormat(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::SetDefaultParagraphFormat( + winrt::Microsoft::UI::Text::ITextParagraphFormat const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetDefaultParagraphFormat(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetDefaultParagraphFormat(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::SetText( + winrt::Microsoft::UI::Text::TextSetOptions const& options, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetText(static_cast(options), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetText(static_cast(options), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::Undo() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Undo()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Undo()); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument< + D>::AlignmentIncludesTrailingWhitespace() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AlignmentIncludesTrailingWhitespace(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AlignmentIncludesTrailingWhitespace(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextDocument< + D>::AlignmentIncludesTrailingWhitespace(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_AlignmentIncludesTrailingWhitespace(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_AlignmentIncludesTrailingWhitespace(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument< + D>::IgnoreTrailingCharacterSpacing() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IgnoreTrailingCharacterSpacing(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IgnoreTrailingCharacterSpacing(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextDocument::IgnoreTrailingCharacterSpacing( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IgnoreTrailingCharacterSpacing(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IgnoreTrailingCharacterSpacing(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument::ClearUndoRedoHistory() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearUndoRedoHistory()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ClearUndoRedoHistory()); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument2::GetMathMode() const { + winrt::Microsoft::UI::Text::RichEditMathMode result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument2>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetMathMode(reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetMathMode(reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextDocument2::SetMathMode( + winrt::Microsoft::UI::Text::RichEditMathMode const& mode) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMathMode(static_cast(mode))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetMathMode(static_cast(mode))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument2::GetMathML( + hstring& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetMathML(impl::bind_out(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetMathML(impl::bind_out(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextDocument2::SetMathML( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextDocument2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMathML(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetMathML(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::Alignment() const { + winrt::Microsoft::UI::Text::ParagraphAlignment value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Alignment(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Alignment(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::Alignment( + winrt::Microsoft::UI::Text::ParagraphAlignment const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Alignment(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Alignment(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::FirstLineIndent() + const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstLineIndent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstLineIndent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::KeepTogether() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeepTogether(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeepTogether(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::KeepTogether( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_KeepTogether(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_KeepTogether(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::KeepWithNext() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeepWithNext(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeepWithNext(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::KeepWithNext( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_KeepWithNext(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_KeepWithNext(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::LeftIndent() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftIndent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftIndent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::LineSpacing() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineSpacing(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineSpacing(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::LineSpacingRule() + const { + winrt::Microsoft::UI::Text::LineSpacingRule value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineSpacingRule( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineSpacingRule( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListAlignment() const { + winrt::Microsoft::UI::Text::MarkerAlignment value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListAlignment(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListAlignment(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListAlignment( + winrt::Microsoft::UI::Text::MarkerAlignment const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ListAlignment(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ListAlignment(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListLevelIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ListLevelIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ListLevelIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListLevelIndex( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListLevelIndex(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListLevelIndex(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListStart() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ListStart(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ListStart(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListStart( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListStart(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListStart(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListStyle() const { + winrt::Microsoft::UI::Text::MarkerStyle value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListStyle(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListStyle(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListStyle( + winrt::Microsoft::UI::Text::MarkerStyle const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListStyle(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListStyle(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListTab() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ListTab(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ListTab(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListTab( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListTab(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListTab(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListType() const { + winrt::Microsoft::UI::Text::MarkerType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListType(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListType(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ListType( + winrt::Microsoft::UI::Text::MarkerType const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListType(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListType(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::NoLineNumber() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_NoLineNumber(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_NoLineNumber(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::NoLineNumber( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_NoLineNumber(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_NoLineNumber(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::PageBreakBefore() + const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PageBreakBefore( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PageBreakBefore( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::PageBreakBefore( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PageBreakBefore(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PageBreakBefore(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::RightIndent() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightIndent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightIndent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::RightIndent( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightIndent(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightIndent(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::RightToLeft() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_RightToLeft(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_RightToLeft(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::RightToLeft( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RightToLeft(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RightToLeft(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::Style() const { + winrt::Microsoft::UI::Text::ParagraphStyle value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Style(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Style(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::Style( + winrt::Microsoft::UI::Text::ParagraphStyle const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Style(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Style(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SpaceAfter() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpaceAfter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpaceAfter(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SpaceAfter( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SpaceAfter(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SpaceAfter(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SpaceBefore() const { + float value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpaceBefore(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpaceBefore(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SpaceBefore( + float value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SpaceBefore(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SpaceBefore(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::WidowControl() const { + winrt::Microsoft::UI::Text::FormatEffect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WidowControl(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WidowControl(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::WidowControl( + winrt::Microsoft::UI::Text::FormatEffect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_WidowControl(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_WidowControl(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::TabCount() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::AddTab( + float position, winrt::Microsoft::UI::Text::TabAlignment const& align, + winrt::Microsoft::UI::Text::TabLeader const& leader) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddTab(position, static_cast(align), + static_cast(leader))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddTab(position, static_cast(align), + static_cast(leader))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::ClearAllTabs() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearAllTabs()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ClearAllTabs()); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::DeleteTab( + float position) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DeleteTab(position)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->DeleteTab(position)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::GetClone() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClone(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClone(&result)); + } + return winrt::Microsoft::UI::Text::ITextParagraphFormat{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::GetTab( + int32_t index, float& position, + winrt::Microsoft::UI::Text::TabAlignment& align, + winrt::Microsoft::UI::Text::TabLeader& leader) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTab(index, &position, + reinterpret_cast(&align), + reinterpret_cast(&leader))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTab(index, &position, + reinterpret_cast(&align), + reinterpret_cast(&leader))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::IsEqual( + winrt::Microsoft::UI::Text::ITextParagraphFormat const& format) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsEqual(*(void**)(&format), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SetClone( + winrt::Microsoft::UI::Text::ITextParagraphFormat const& format) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetClone(*(void**)(&format))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetClone(*(void**)(&format))); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SetIndents( + float start, float left, float right) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIndents(start, left, right)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIndents(start, left, right)); + } +} +template +auto consume_Microsoft_UI_Text_ITextParagraphFormat::SetLineSpacing( + winrt::Microsoft::UI::Text::LineSpacingRule const& rule, + float spacing) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Text::ITextParagraphFormat>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Text::ITextParagraphFormat, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetLineSpacing(static_cast(rule), spacing)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetLineSpacing(static_cast(rule), spacing)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Character() const { + char16_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Character(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Character(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Character(char16_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Character(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Character(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::CharacterFormat() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterFormat(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterFormat(&value)); + } + return winrt::Microsoft::UI::Text::ITextCharacterFormat{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextRange::CharacterFormat( + winrt::Microsoft::UI::Text::ITextCharacterFormat const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterFormat(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterFormat(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::FormattedText() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FormattedText(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FormattedText(&value)); + } + return winrt::Microsoft::UI::Text::ITextRange{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextRange::FormattedText( + winrt::Microsoft::UI::Text::ITextRange const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FormattedText(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FormattedText(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::EndPosition() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextRange::EndPosition(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EndPosition(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EndPosition(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Gravity() const { + winrt::Microsoft::UI::Text::RangeGravity value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Gravity(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Gravity(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Gravity( + winrt::Microsoft::UI::Text::RangeGravity const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Gravity(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Gravity(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Length() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Length(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Link() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Link(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Link(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Link( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Link(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Link(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::ParagraphFormat() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ParagraphFormat(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ParagraphFormat(&value)); + } + return winrt::Microsoft::UI::Text::ITextParagraphFormat{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextRange::ParagraphFormat( + winrt::Microsoft::UI::Text::ITextParagraphFormat const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ParagraphFormat(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ParagraphFormat(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::StartPosition() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextRange::StartPosition( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StartPosition(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StartPosition(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::StoryLength() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StoryLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StoryLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Text() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Text( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::CanPaste(int32_t format) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanPaste(format, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanPaste(format, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::ChangeCase( + winrt::Microsoft::UI::Text::LetterCase const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ChangeCase(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ChangeCase(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Collapse(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Collapse(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Collapse(value)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Copy() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Copy()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Copy()); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Cut() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Cut()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Cut()); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::Delete( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, + int32_t count) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Delete(static_cast(unit), count, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Delete(static_cast(unit), count, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::EndOf( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->EndOf(static_cast(unit), extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->EndOf(static_cast(unit), extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Expand( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Expand(static_cast(unit), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Expand(static_cast(unit), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::FindText( + param::hstring const& value, int32_t scanLength, + winrt::Microsoft::UI::Text::FindOptions const& options) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindText(*(void**)(&value), scanLength, + static_cast(options), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindText(*(void**)(&value), scanLength, + static_cast(options), + &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetCharacterUtf32( + uint32_t& value, int32_t offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCharacterUtf32(&value, offset)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCharacterUtf32(&value, offset)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetClone() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClone(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClone(&result)); + } + return winrt::Microsoft::UI::Text::ITextRange{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetIndex( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIndex(static_cast(unit), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIndex(static_cast(unit), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetPoint( + winrt::Microsoft::UI::Text::HorizontalCharacterAlignment const& + horizontalAlign, + winrt::Microsoft::UI::Text::VerticalCharacterAlignment const& verticalAlign, + winrt::Microsoft::UI::Text::PointOptions const& options, + winrt::Windows::Foundation::Point& point) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPoint( + static_cast(horizontalAlign), + static_cast(verticalAlign), static_cast(options), + impl::bind_out(point))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPoint( + static_cast(horizontalAlign), + static_cast(verticalAlign), static_cast(options), + impl::bind_out(point))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetRect( + winrt::Microsoft::UI::Text::PointOptions const& options, + winrt::Windows::Foundation::Rect& rect, int32_t& hit) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRect(static_cast(options), + impl::bind_out(rect), &hit)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRect(static_cast(options), + impl::bind_out(rect), &hit)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetText( + winrt::Microsoft::UI::Text::TextGetOptions const& options, + hstring& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetText(static_cast(options), + impl::bind_out(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetText(static_cast(options), + impl::bind_out(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::GetTextViaStream( + winrt::Microsoft::UI::Text::TextGetOptions const& options, + winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTextViaStream( + static_cast(options), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTextViaStream( + static_cast(options), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::InRange( + winrt::Microsoft::UI::Text::ITextRange const& range) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InRange(*(void**)(&range), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InRange(*(void**)(&range), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::InsertImage( + int32_t width, int32_t height, int32_t ascent, + winrt::Microsoft::UI::Text::VerticalCharacterAlignment const& verticalAlign, + param::hstring const& alternateText, + winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertImage( + width, height, ascent, static_cast(verticalAlign), + *(void**)(&alternateText), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertImage( + width, height, ascent, static_cast(verticalAlign), + *(void**)(&alternateText), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::InStory( + winrt::Microsoft::UI::Text::ITextRange const& range) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InStory(*(void**)(&range), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InStory(*(void**)(&range), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::IsEqual( + winrt::Microsoft::UI::Text::ITextRange const& range) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsEqual(*(void**)(&range), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsEqual(*(void**)(&range), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Move( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, + int32_t count) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Move(static_cast(unit), count, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Move(static_cast(unit), count, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::MoveEnd( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, + int32_t count) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->MoveEnd(static_cast(unit), count, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->MoveEnd(static_cast(unit), count, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::MoveStart( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, + int32_t count) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->MoveStart(static_cast(unit), count, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->MoveStart(static_cast(unit), count, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextRange::Paste(int32_t format) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Paste(format)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Paste(format)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::ScrollIntoView( + winrt::Microsoft::UI::Text::PointOptions const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ScrollIntoView(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ScrollIntoView(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::MatchSelection() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MatchSelection()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MatchSelection()); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::SetIndex( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, int32_t index, + bool extend) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIndex(static_cast(unit), index, extend)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIndex(static_cast(unit), index, extend)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::SetPoint( + winrt::Windows::Foundation::Point const& point, + winrt::Microsoft::UI::Text::PointOptions const& options, + bool extend) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPoint( + impl::bind_in(point), static_cast(options), extend)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPoint( + impl::bind_in(point), static_cast(options), extend)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::SetRange( + int32_t startPosition, int32_t endPosition) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRange(startPosition, endPosition)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetRange(startPosition, endPosition)); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::SetText( + winrt::Microsoft::UI::Text::TextSetOptions const& options, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetText(static_cast(options), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetText(static_cast(options), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::SetTextViaStream( + winrt::Microsoft::UI::Text::TextSetOptions const& options, + winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTextViaStream( + static_cast(options), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTextViaStream( + static_cast(options), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextRange::StartOf( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->StartOf(static_cast(unit), extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->StartOf(static_cast(unit), extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::Options() const { + winrt::Microsoft::UI::Text::SelectionOptions value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Options(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Options(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::Options( + winrt::Microsoft::UI::Text::SelectionOptions const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Options(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Options(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Text_ITextSelection::Type() const { + winrt::Microsoft::UI::Text::SelectionType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Type(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Type(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::EndKey( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->EndKey(static_cast(unit), extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->EndKey(static_cast(unit), extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::HomeKey( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->HomeKey(static_cast(unit), extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->HomeKey(static_cast(unit), extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::MoveDown( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, int32_t count, + bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveDown(static_cast(unit), count, + extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveDown(static_cast(unit), count, + extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::MoveLeft( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, int32_t count, + bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveLeft(static_cast(unit), count, + extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveLeft(static_cast(unit), count, + extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::MoveRight( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, int32_t count, + bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveRight(static_cast(unit), count, + extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveRight(static_cast(unit), count, + extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::MoveUp( + winrt::Microsoft::UI::Text::TextRangeUnit const& unit, int32_t count, + bool extend) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveUp(static_cast(unit), count, + extend, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveUp(static_cast(unit), count, + extend, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Text_ITextSelection::TypeText( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Text::ITextSelection>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TypeText(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TypeText(*(void**)(&value))); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Black( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Black()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Bold( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Bold()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtraBlack( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExtraBlack()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtraBold( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExtraBold()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtraLight( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExtraLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Light( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Light()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Medium( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Medium()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Normal( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Normal()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SemiBold( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SemiBold()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SemiLight( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SemiLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Thin( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Thin()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_AllCaps(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllCaps()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllCaps(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllCaps( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BackgroundColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().BackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BackgroundColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Bold(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Bold()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Bold(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Bold( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontStretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontStretch(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontStretch( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontStyle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ForegroundColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ForegroundColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ForegroundColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Hidden(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Hidden()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Hidden(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Hidden( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Italic(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Italic()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Italic(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Italic( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Kerning(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Kerning()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Kerning(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Kerning(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LanguageTag(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LanguageTag()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LanguageTag(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LanguageTag(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LinkType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LinkType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Name(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Name(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Outline(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Outline()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Outline(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Outline( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Position(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Position(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProtectedText(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProtectedText()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProtectedText(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProtectedText( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Size(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Size(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallCaps(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SmallCaps()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SmallCaps(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SmallCaps( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Spacing(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Spacing()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Spacing(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Spacing(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Strikethrough(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Strikethrough()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Strikethrough(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Strikethrough( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Subscript(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Subscript()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Subscript(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Subscript( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Superscript(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Superscript()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Superscript(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Superscript( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TextScript(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextScript()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TextScript(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TextScript( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Underline(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Underline()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Underline(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Underline( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Weight(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Weight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Weight(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Weight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetClone(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetClone( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextCharacterFormat const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClone(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetClone()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsEqual(void* format, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsEqual( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextCharacterFormat const*>(&format))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutoColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinUnitCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinUnitCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxUnitCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxUnitCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UndefinedColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().UndefinedColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UndefinedFloatValue(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UndefinedFloatValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UndefinedInt32Value(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UndefinedInt32Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UndefinedFontStretch(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UndefinedFontStretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UndefinedFontStyle(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UndefinedFontStyle()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CaretType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CaretType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CaretType(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CaretType( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DefaultTabStop(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultTabStop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DefaultTabStop(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultTabStop(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Selection(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Selection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UndoLimit(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UndoLimit()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UndoLimit(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UndoLimit(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CanCopy(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanCopy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CanPaste(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanPaste()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CanRedo(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanRedo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CanUndo(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanUndo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ApplyDisplayUpdates(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ApplyDisplayUpdates()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall BatchDisplayUpdates(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().BatchDisplayUpdates()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall BeginUndoGroup() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BeginUndoGroup(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall EndUndoGroup() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EndUndoGroup(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDefaultCharacterFormat(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDefaultCharacterFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDefaultParagraphFormat(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDefaultParagraphFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRange(int32_t startPosition, int32_t endPosition, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetRange(startPosition, endPosition)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRangeFromPoint(winrt::Windows::Foundation::Point point, + uint32_t options, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetRangeFromPoint( + *reinterpret_cast(&point), + *reinterpret_cast( + &options))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetText(uint32_t options, void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + this->shim().GetText( + *reinterpret_cast( + &options), + *reinterpret_cast(value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LoadFromStream(uint32_t options, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().LoadFromStream( + *reinterpret_cast( + &options), + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Redo() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Redo(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SaveToStream(uint32_t options, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SaveToStream( + *reinterpret_cast( + &options), + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDefaultCharacterFormat(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDefaultCharacterFormat( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextCharacterFormat const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDefaultParagraphFormat(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDefaultParagraphFormat( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextParagraphFormat const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetText(uint32_t options, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetText( + *reinterpret_cast( + &options), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Undo() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Undo(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlignmentIncludesTrailingWhitespace( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().AlignmentIncludesTrailingWhitespace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AlignmentIncludesTrailingWhitespace( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AlignmentIncludesTrailingWhitespace(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IgnoreTrailingCharacterSpacing( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IgnoreTrailingCharacterSpacing()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IgnoreTrailingCharacterSpacing( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IgnoreTrailingCharacterSpacing(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ClearUndoRedoHistory() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearUndoRedoHistory(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetMathMode(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetMathMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetMathMode(int32_t mode) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetMathMode( + *reinterpret_cast( + &mode)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetMathML(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + this->shim().GetMathML(*reinterpret_cast(value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetMathML(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetMathML(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_Alignment(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Alignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Alignment(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Alignment( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ParagraphAlignment const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FirstLineIndent(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstLineIndent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeepTogether(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeepTogether()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeepTogether(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeepTogether( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeepWithNext(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeepWithNext()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeepWithNext(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeepWithNext( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LeftIndent(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftIndent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LineSpacing(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineSpacing()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LineSpacingRule(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LineSpacingRule()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListAlignment(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListAlignment(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListAlignment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListLevelIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ListLevelIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListLevelIndex(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListLevelIndex(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListStart(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ListStart()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListStart(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListStart(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListStyle(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListStyle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListStyle(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListStyle( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListTab(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ListTab()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListTab(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListTab(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListType(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListType( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NoLineNumber(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NoLineNumber()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NoLineNumber(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NoLineNumber( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PageBreakBefore(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PageBreakBefore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PageBreakBefore(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageBreakBefore( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightIndent(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightIndent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RightIndent(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RightIndent(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightToLeft(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RightToLeft()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RightToLeft(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RightToLeft( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Style(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Style()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Style(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Style( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpaceAfter(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpaceAfter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpaceAfter(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpaceAfter(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpaceBefore(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpaceBefore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpaceBefore(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpaceBefore(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidowControl(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WidowControl()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_WidowControl(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().WidowControl( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddTab(float position, int32_t align, + int32_t leader) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddTab( + position, + *reinterpret_cast( + &align), + *reinterpret_cast( + &leader)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ClearAllTabs() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearAllTabs(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall DeleteTab(float position) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DeleteTab(position); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClone(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetClone()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTab(int32_t index, float* position, int32_t* align, + int32_t* leader) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GetTab( + index, *position, + *reinterpret_cast(align), + *reinterpret_cast(leader)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsEqual(void* format, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsEqual( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextParagraphFormat const*>(&format))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetClone(void* format) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetClone( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextParagraphFormat const*>(&format)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIndents(float start, float left, + float right) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIndents(start, left, right); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLineSpacing(int32_t rule, float spacing) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLineSpacing( + *reinterpret_cast( + &rule), + spacing); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_Character(char16_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Character()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Character(char16_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Character(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CharacterFormat(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CharacterFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CharacterFormat(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterFormat( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextCharacterFormat const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FormattedText(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FormattedText()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FormattedText(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FormattedText( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EndPosition(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EndPosition(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EndPosition(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Gravity(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Gravity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Gravity(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Gravity( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Length(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Length()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Link(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Link()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Link(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Link(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ParagraphFormat(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ParagraphFormat()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ParagraphFormat(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ParagraphFormat( + *reinterpret_cast< + winrt::Microsoft::UI::Text::ITextParagraphFormat const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StartPosition(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StartPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StartPosition(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartPosition(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StoryLength(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StoryLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Text(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Text(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CanPaste(int32_t format, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanPaste(format)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ChangeCase(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChangeCase( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Collapse(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Collapse(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Copy() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Copy(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Cut() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cut(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Delete(int32_t unit, int32_t count, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Delete( + *reinterpret_cast( + &unit), + count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall EndOf(int32_t unit, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().EndOf( + *reinterpret_cast( + &unit), + extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Expand(int32_t unit, int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Expand( + *reinterpret_cast( + &unit))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindText(void* value, int32_t scanLength, uint32_t options, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().FindText( + *reinterpret_cast(&value), scanLength, + *reinterpret_cast( + &options))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCharacterUtf32(uint32_t* value, + int32_t offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GetCharacterUtf32(*value, offset); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClone(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetClone()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIndex(int32_t unit, int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIndex( + *reinterpret_cast( + &unit))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPoint( + int32_t horizontalAlign, int32_t verticalAlign, uint32_t options, + winrt::Windows::Foundation::Point* point) noexcept final try { + zero_abi(point); + typename D::abi_guard guard(this->shim()); + this->shim().GetPoint( + *reinterpret_cast< + winrt::Microsoft::UI::Text::HorizontalCharacterAlignment const*>( + &horizontalAlign), + *reinterpret_cast< + winrt::Microsoft::UI::Text::VerticalCharacterAlignment const*>( + &verticalAlign), + *reinterpret_cast( + &options), + *reinterpret_cast(point)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRect(uint32_t options, + winrt::Windows::Foundation::Rect* rect, + int32_t* hit) noexcept final try { + zero_abi(rect); + typename D::abi_guard guard(this->shim()); + this->shim().GetRect( + *reinterpret_cast( + &options), + *reinterpret_cast(rect), *hit); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetText(uint32_t options, void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + this->shim().GetText( + *reinterpret_cast( + &options), + *reinterpret_cast(value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTextViaStream(uint32_t options, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GetTextViaStream( + *reinterpret_cast( + &options), + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InRange(void* range, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().InRange( + *reinterpret_cast( + &range))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertImage(int32_t width, int32_t height, int32_t ascent, + int32_t verticalAlign, void* alternateText, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertImage( + width, height, ascent, + *reinterpret_cast< + winrt::Microsoft::UI::Text::VerticalCharacterAlignment const*>( + &verticalAlign), + *reinterpret_cast(&alternateText), + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InStory(void* range, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().InStory( + *reinterpret_cast( + &range))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsEqual(void* range, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsEqual( + *reinterpret_cast( + &range))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Move(int32_t unit, int32_t count, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Move( + *reinterpret_cast( + &unit), + count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveEnd(int32_t unit, int32_t count, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveEnd( + *reinterpret_cast( + &unit), + count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveStart(int32_t unit, int32_t count, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveStart( + *reinterpret_cast( + &unit), + count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Paste(int32_t format) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Paste(format); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollIntoView(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollIntoView( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MatchSelection() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MatchSelection(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIndex(int32_t unit, int32_t index, + bool extend) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIndex( + *reinterpret_cast( + &unit), + index, extend); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPoint(winrt::Windows::Foundation::Point point, + uint32_t options, bool extend) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPoint( + *reinterpret_cast(&point), + *reinterpret_cast( + &options), + extend); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetRange(int32_t startPosition, + int32_t endPosition) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetRange(startPosition, endPosition); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetText(uint32_t options, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetText( + *reinterpret_cast( + &options), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTextViaStream(uint32_t options, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTextViaStream( + *reinterpret_cast( + &options), + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartOf(int32_t unit, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().StartOf( + *reinterpret_cast( + &unit), + extend)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_Options(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Options()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Options(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Options( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Type(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall EndKey(int32_t unit, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().EndKey( + *reinterpret_cast( + &unit), + extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall HomeKey(int32_t unit, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().HomeKey( + *reinterpret_cast( + &unit), + extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveDown(int32_t unit, int32_t count, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveDown( + *reinterpret_cast( + &unit), + count, extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveLeft(int32_t unit, int32_t count, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveLeft( + *reinterpret_cast( + &unit), + count, extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveRight(int32_t unit, int32_t count, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveRight( + *reinterpret_cast( + &unit), + count, extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveUp(int32_t unit, int32_t count, bool extend, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveUp( + *reinterpret_cast( + &unit), + count, extend)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TypeText(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TypeText(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Text { + constexpr auto operator|(FindOptions const left, + FindOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(FindOptions& left, + FindOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(FindOptions const left, + FindOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(FindOptions& left, + FindOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(FindOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(FindOptions const left, + FindOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(FindOptions& left, + FindOptions const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(PointOptions const left, + PointOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(PointOptions& left, + PointOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(PointOptions const left, + PointOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(PointOptions& left, + PointOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(PointOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(PointOptions const left, + PointOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(PointOptions& left, + PointOptions const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(SelectionOptions const left, + SelectionOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(SelectionOptions& left, + SelectionOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(SelectionOptions const left, + SelectionOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(SelectionOptions& left, + SelectionOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(SelectionOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(SelectionOptions const left, + SelectionOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(SelectionOptions& left, + SelectionOptions const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(TextGetOptions const left, + TextGetOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(TextGetOptions& left, + TextGetOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(TextGetOptions const left, + TextGetOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(TextGetOptions& left, + TextGetOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(TextGetOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(TextGetOptions const left, + TextGetOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(TextGetOptions& left, + TextGetOptions const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(TextSetOptions const left, + TextSetOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(TextSetOptions& left, + TextSetOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(TextSetOptions const left, + TextSetOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(TextSetOptions& left, + TextSetOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(TextSetOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(TextSetOptions const left, + TextSetOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(TextSetOptions& left, + TextSetOptions const right) noexcept { + left = left ^ right; + return left; + } + inline auto FontWeights::Black() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.Black(); }); + } + inline auto FontWeights::Bold() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.Bold(); }); + } + inline auto FontWeights::ExtraBlack() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.ExtraBlack(); }); + } + inline auto FontWeights::ExtraBold() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.ExtraBold(); }); + } + inline auto FontWeights::ExtraLight() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.ExtraLight(); }); + } + inline auto FontWeights::Light() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.Light(); }); + } + inline auto FontWeights::Medium() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.Medium(); }); + } + inline auto FontWeights::Normal() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.Normal(); }); + } + inline auto FontWeights::SemiBold() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.SemiBold(); }); + } + inline auto FontWeights::SemiLight() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.SemiLight(); }); + } + inline auto FontWeights::Thin() { + return impl::call_factory_cast( + [](IFontWeightsStatics const& f) { return f.Thin(); }); + } + inline auto TextConstants::AutoColor() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.AutoColor(); }); + } + inline auto TextConstants::MinUnitCount() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.MinUnitCount(); }); + } + inline auto TextConstants::MaxUnitCount() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.MaxUnitCount(); }); + } + inline auto TextConstants::UndefinedColor() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.UndefinedColor(); }); + } + inline auto TextConstants::UndefinedFloatValue() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.UndefinedFloatValue(); }); + } + inline auto TextConstants::UndefinedInt32Value() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.UndefinedInt32Value(); }); + } + inline auto TextConstants::UndefinedFontStretch() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { + return f.UndefinedFontStretch(); + }); + } + inline auto TextConstants::UndefinedFontStyle() { + return impl::call_factory_cast( + [](ITextConstantsStatics const& f) { return f.UndefinedFontStyle(); }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Windowing.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Windowing.h new file mode 100644 index 00000000..4871d162 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Windowing.h @@ -0,0 +1,5473 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Windowing_H +#define WINRT_Microsoft_UI_Windowing_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Microsoft.UI.Windowing.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Graphics.2.h" +#include "winrt/impl/Windows.UI.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Id() const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Id(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Id(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::IsShownInSwitchers() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsShownInSwitchers(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsShownInSwitchers(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::IsShownInSwitchers( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsShownInSwitchers(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsShownInSwitchers(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::IsVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::OwnerWindowId() const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OwnerWindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OwnerWindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Position() const { + winrt::Windows::Graphics::PointInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Presenter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Presenter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Presenter(&value)); + } + return winrt::Microsoft::UI::Windowing::AppWindowPresenter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Size() const { + winrt::Windows::Graphics::SizeInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Title() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Title( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::TitleBar() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleBar(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleBar(&value)); + } + return winrt::Microsoft::UI::Windowing::AppWindowTitleBar{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Destroy() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Destroy()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Destroy()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Hide() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Move( + winrt::Windows::Graphics::PointInt32 const& position) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Move(impl::bind_in(position))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Move(impl::bind_in(position))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::MoveAndResize( + winrt::Windows::Graphics::RectInt32 const& rect) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveAndResize(impl::bind_in(rect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveAndResize(impl::bind_in(rect))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::MoveAndResize( + winrt::Windows::Graphics::RectInt32 const& rect, + winrt::Microsoft::UI::Windowing::DisplayArea const& displayarea) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveAndResizeRelativeToDisplayArea( + impl::bind_in(rect), *(void**)(&displayarea))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveAndResizeRelativeToDisplayArea( + impl::bind_in(rect), *(void**)(&displayarea))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Resize( + winrt::Windows::Graphics::SizeInt32 const& size) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resize(impl::bind_in(size))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Resize(impl::bind_in(size))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::SetIcon( + param::hstring const& iconPath) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIcon(*(void**)(&iconPath))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIcon(*(void**)(&iconPath))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::SetIcon( + winrt::Microsoft::UI::IconId const& iconId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIconWithIconId(impl::bind_in(iconId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIconWithIconId(impl::bind_in(iconId))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::SetPresenter( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetPresenter(*(void**)(&appWindowPresenter))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetPresenter(*(void**)(&appWindowPresenter))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::SetPresenter( + winrt::Microsoft::UI::Windowing::AppWindowPresenterKind const& + appWindowPresenterKind) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPresenterByKind( + static_cast(appWindowPresenterKind))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPresenterByKind( + static_cast(appWindowPresenterKind))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Show() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Show()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Show()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Show( + bool activateWindow) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowWithActivation(activateWindow)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowWithActivation(activateWindow)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Changed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::AppWindow, + winrt::Microsoft::UI::Windowing::AppWindowChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Changed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::AppWindow, + winrt::Microsoft::UI::Windowing::AppWindowChangedEventArgs> const& + handler) const { + return impl::make_event_revoker(this, Changed(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Changed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Closing( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::AppWindow, + winrt::Microsoft::UI::Windowing::AppWindowClosingEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Closing( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::AppWindow, + winrt::Microsoft::UI::Windowing::AppWindowClosingEventArgs> const& + handler) const { + return impl::make_event_revoker(this, Closing(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Closing( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Destroying( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::AppWindow, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Destroying(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Destroying(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Destroying( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::AppWindow, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, + Destroying(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow::Destroying( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Destroying(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Destroying(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow2::ClientSize() const { + winrt::Windows::Graphics::SizeInt32 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClientSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClientSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow2::MoveInZOrderAtBottom() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderAtBottom()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderAtBottom()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow2::MoveInZOrderAtTop() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderAtTop()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderAtTop()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow2::MoveInZOrderBelow( + winrt::Microsoft::UI::WindowId const& windowId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveInZOrderBelow(impl::bind_in(windowId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveInZOrderBelow(impl::bind_in(windowId))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow2::ResizeClient( + winrt::Windows::Graphics::SizeInt32 const& size) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ResizeClient(impl::bind_in(size))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ResizeClient(impl::bind_in(size))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow2< + D>::ShowOnceWithRequestedStartupState() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowOnceWithRequestedStartupState()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowOnceWithRequestedStartupState()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow3:: + AssociateWithDispatcherQueue( + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& + dispatcherQueue) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AssociateWithDispatcherQueue( + *(void**)(&dispatcherQueue))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AssociateWithDispatcherQueue( + *(void**)(&dispatcherQueue))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow3::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow4::SetTaskbarIcon( + param::hstring const& iconPath) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTaskbarIcon(*(void**)(&iconPath))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTaskbarIcon(*(void**)(&iconPath))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow4::SetTaskbarIcon( + winrt::Microsoft::UI::IconId const& iconId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetTaskbarIconWithIconId(impl::bind_in(iconId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetTaskbarIconWithIconId(impl::bind_in(iconId))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow4::SetTitleBarIcon( + param::hstring const& iconPath) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTitleBarIcon(*(void**)(&iconPath))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTitleBarIcon(*(void**)(&iconPath))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindow4::SetTitleBarIcon( + winrt::Microsoft::UI::IconId const& iconId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetTitleBarIconWithIconId(impl::bind_in(iconId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetTitleBarIconWithIconId(impl::bind_in(iconId))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs< + D>::DidPositionChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidPositionChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_DidPositionChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs< + D>::DidPresenterChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidPresenterChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_DidPresenterChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs< + D>::DidSizeChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidSizeChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_DidSizeChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs< + D>::DidVisibilityChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidVisibilityChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_DidVisibilityChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs2< + D>::DidZOrderChange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DidZOrderChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DidZOrderChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs2< + D>::IsZOrderAtBottom() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZOrderAtBottom(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZOrderAtBottom(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs2< + D>::IsZOrderAtTop() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZOrderAtTop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZOrderAtTop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowChangedEventArgs2< + D>::ZOrderBelowWindowId() const { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZOrderBelowWindowId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZOrderBelowWindowId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowClosingEventArgs::Cancel() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowClosingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowClosingEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowClosingEventArgs::Cancel( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowClosingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowClosingEventArgs>**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowPresenter::Kind() const { + winrt::Microsoft::UI::Windowing::AppWindowPresenterKind value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowStatics::Create() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(&result)); + } + return winrt::Microsoft::UI::Windowing::AppWindow{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowStatics::Create( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithPresenter( + *(void**)(&appWindowPresenter), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithPresenter( + *(void**)(&appWindowPresenter), &result)); + } + return winrt::Microsoft::UI::Windowing::AppWindow{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowStatics::Create( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter, + winrt::Microsoft::UI::WindowId const& ownerWindowId) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithPresenterAndOwner( + *(void**)(&appWindowPresenter), impl::bind_in(ownerWindowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithPresenterAndOwner( + *(void**)(&appWindowPresenter), impl::bind_in(ownerWindowId), &result)); + } + return winrt::Microsoft::UI::Windowing::AppWindow{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowStatics::GetFromWindowId( + winrt::Microsoft::UI::WindowId const& windowId) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetFromWindowId(impl::bind_in(windowId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetFromWindowId(impl::bind_in(windowId), &result)); + } + return winrt::Microsoft::UI::Windowing::AppWindow{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowStatics2::Create( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter, + winrt::Microsoft::UI::WindowId const& ownerWindowId, + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& DispatcherQueue) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithDispatcherQueue( + *(void**)(&appWindowPresenter), impl::bind_in(ownerWindowId), + *(void**)(&DispatcherQueue), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithDispatcherQueue( + *(void**)(&appWindowPresenter), impl::bind_in(ownerWindowId), + *(void**)(&DispatcherQueue), &result)); + } + return winrt::Microsoft::UI::Windowing::AppWindow{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::BackgroundColor() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::BackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonBackgroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonBackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonBackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonBackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonBackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonBackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonForegroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonForegroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonForegroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonForegroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonForegroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonForegroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonHoverBackgroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonHoverBackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonHoverBackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonHoverBackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonHoverBackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonHoverBackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonHoverForegroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonHoverForegroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonHoverForegroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonHoverForegroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonHoverForegroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonHoverForegroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonInactiveBackgroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonInactiveBackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonInactiveBackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonInactiveBackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonInactiveBackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonInactiveBackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonInactiveForegroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonInactiveForegroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonInactiveForegroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonInactiveForegroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonInactiveForegroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonInactiveForegroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonPressedBackgroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonPressedBackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonPressedBackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonPressedBackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonPressedBackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonPressedBackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ButtonPressedForegroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ButtonPressedForegroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ButtonPressedForegroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + ButtonPressedForegroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ButtonPressedForegroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ButtonPressedForegroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ExtendsContentIntoTitleBar() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtendsContentIntoTitleBar(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtendsContentIntoTitleBar(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::ExtendsContentIntoTitleBar(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExtendsContentIntoTitleBar(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExtendsContentIntoTitleBar(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::ForegroundColor() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::ForegroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ForegroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ForegroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::Height() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Height(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Height(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::IconShowOptions() + const { + winrt::Microsoft::UI::Windowing::IconShowOptions value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconShowOptions( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconShowOptions( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::IconShowOptions( + winrt::Microsoft::UI::Windowing::IconShowOptions const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IconShowOptions(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_IconShowOptions(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::InactiveBackgroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InactiveBackgroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InactiveBackgroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + InactiveBackgroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_InactiveBackgroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_InactiveBackgroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar< + D>::InactiveForegroundColor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InactiveForegroundColor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InactiveForegroundColor(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar:: + InactiveForegroundColor( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_InactiveForegroundColor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_InactiveForegroundColor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::LeftInset() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftInset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::RightInset() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightInset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightInset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::ResetToDefault() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ResetToDefault()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ResetToDefault()); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar::SetDragRectangles( + array_view value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetDragRectangles(value.size(), get_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetDragRectangles(value.size(), get_abi(value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar2< + D>::PreferredHeightOption() const { + winrt::Microsoft::UI::Windowing::TitleBarHeightOption value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredHeightOption( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredHeightOption( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar2:: + PreferredHeightOption( + winrt::Microsoft::UI::Windowing::TitleBarHeightOption const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreferredHeightOption( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreferredHeightOption( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar3::PreferredTheme() + const { + winrt::Microsoft::UI::Windowing::TitleBarTheme value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredTheme( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredTheme( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBar3::PreferredTheme( + winrt::Microsoft::UI::Windowing::TitleBarTheme const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IAppWindowTitleBar3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBar3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PreferredTheme(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PreferredTheme(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IAppWindowTitleBarStatics< + D>::IsCustomizationSupported() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBarStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsCustomizationSupported(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Windowing::IAppWindowTitleBarStatics>**)this; + check_hresult(_winrt_abi_type->IsCustomizationSupported(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Windowing_ICompactOverlayPresenter::InitialSize() + const { + winrt::Microsoft::UI::Windowing::CompactOverlaySize value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::ICompactOverlayPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_InitialSize(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_InitialSize(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_ICompactOverlayPresenter::InitialSize( + winrt::Microsoft::UI::Windowing::CompactOverlaySize const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::ICompactOverlayPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_InitialSize(static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->put_InitialSize(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Windowing_ICompactOverlayPresenterStatics::Create() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::ICompactOverlayPresenterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(&result)); + } + return winrt::Microsoft::UI::Windowing::CompactOverlayPresenter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayArea::DisplayId() const { + winrt::Microsoft::UI::DisplayId value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayArea>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayArea::IsPrimary() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayArea>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPrimary(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPrimary(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayArea::OuterBounds() const { + winrt::Windows::Graphics::RectInt32 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayArea>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OuterBounds(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OuterBounds(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayArea::WorkArea() const { + winrt::Windows::Graphics::RectInt32 value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayArea>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WorkArea(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WorkArea(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics::Primary() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Primary(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Primary(&value)); + } + return winrt::Microsoft::UI::Windowing::DisplayArea{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics::CreateWatcher() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWatcher(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWatcher(&result)); + } + return winrt::Microsoft::UI::Windowing::DisplayAreaWatcher{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics::FindAll() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindAll(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindAll(&result)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Windowing::DisplayArea>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics::GetFromWindowId( + winrt::Microsoft::UI::WindowId const& windowId, + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const& + displayAreaFallback) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFromWindowId( + impl::bind_in(windowId), static_cast(displayAreaFallback), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFromWindowId( + impl::bind_in(windowId), static_cast(displayAreaFallback), + &result)); + } + return winrt::Microsoft::UI::Windowing::DisplayArea{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics::GetFromPoint( + winrt::Windows::Graphics::PointInt32 const& point, + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const& + displayAreaFallback) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFromPoint( + impl::bind_in(point), static_cast(displayAreaFallback), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFromPoint( + impl::bind_in(point), static_cast(displayAreaFallback), + &result)); + } + return winrt::Microsoft::UI::Windowing::DisplayArea{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics::GetFromRect( + winrt::Windows::Graphics::RectInt32 const& rect, + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const& + displayAreaFallback) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFromRect( + impl::bind_in(rect), static_cast(displayAreaFallback), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFromRect( + impl::bind_in(rect), static_cast(displayAreaFallback), + &result)); + } + return winrt::Microsoft::UI::Windowing::DisplayArea{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaStatics2::GetFromDisplayId( + winrt::Microsoft::UI::DisplayId const& displayId) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetFromDisplayId(impl::bind_in(displayId), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetFromDisplayId(impl::bind_in(displayId), &result)); + } + return winrt::Microsoft::UI::Windowing::DisplayArea{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Status() const { + winrt::Microsoft::UI::Windowing::DisplayAreaWatcherStatus value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Status(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Status(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Start() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Start()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Start()); + } +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Stop() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Added( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Microsoft::UI::Windowing::DisplayArea> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Added(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Added(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Added( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Microsoft::UI::Windowing::DisplayArea> const& handler) const { + return impl::make_event_revoker(this, Added(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Added( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Added(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Added(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher:: + EnumerationCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_EnumerationCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_EnumerationCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher:: + EnumerationCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, EnumerationCompleted(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher< + D>::EnumerationCompleted(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_EnumerationCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_EnumerationCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Removed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Microsoft::UI::Windowing::DisplayArea> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Removed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Removed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Removed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Microsoft::UI::Windowing::DisplayArea> const& handler) const { + return impl::make_event_revoker(this, Removed(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Removed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Removed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Removed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Stopped( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Stopped(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Stopped(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Stopped( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Stopped(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Stopped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Stopped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Stopped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Updated( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Microsoft::UI::Windowing::DisplayArea> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Updated(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Updated(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Updated( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher, + winrt::Microsoft::UI::Windowing::DisplayArea> const& handler) const { + return impl::make_event_revoker(this, Updated(handler)); +} +template +auto consume_Microsoft_UI_Windowing_IDisplayAreaWatcher::Updated( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IDisplayAreaWatcher, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Updated(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Updated(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Windowing_IFullScreenPresenterStatics::Create() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IFullScreenPresenterStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(&result)); + } + return winrt::Microsoft::UI::Windowing::FullScreenPresenter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::HasBorder() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasBorder(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasBorder(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::HasTitleBar() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasTitleBar(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasTitleBar(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsAlwaysOnTop() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlwaysOnTop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlwaysOnTop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsAlwaysOnTop( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAlwaysOnTop(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAlwaysOnTop(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsMaximizable() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMaximizable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMaximizable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsMaximizable( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsMaximizable(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsMaximizable(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsMinimizable() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMinimizable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMinimizable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsMinimizable( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsMinimizable(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsMinimizable(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsModal() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsModal(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsModal(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsModal( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsModal(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsModal(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsResizable() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsResizable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsResizable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::IsResizable( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsResizable(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsResizable(value)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::State() const { + winrt::Microsoft::UI::Windowing::OverlappedPresenterState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::Maximize() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Maximize()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Maximize()); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::Minimize() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Minimize()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Minimize()); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter::Restore() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Restore()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Restore()); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter< + D>::SetBorderAndTitleBar(bool hasBorder, bool hasTitleBar) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetBorderAndTitleBar(hasBorder, hasTitleBar)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetBorderAndTitleBar(hasBorder, hasTitleBar)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter2::Minimize( + bool activateWindow) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MinimizeWithActivation(activateWindow)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MinimizeWithActivation(activateWindow)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter2::Restore( + bool activateWindow) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RestoreWithActivation(activateWindow)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RestoreWithActivation(activateWindow)); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3< + D>::PreferredMinimumHeight() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredMinimumHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredMinimumHeight(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3:: + PreferredMinimumHeight( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PreferredMinimumHeight(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PreferredMinimumHeight(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3< + D>::PreferredMinimumWidth() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredMinimumWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredMinimumWidth(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3:: + PreferredMinimumWidth( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PreferredMinimumWidth(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PreferredMinimumWidth(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3< + D>::PreferredMaximumWidth() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredMaximumWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredMaximumWidth(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3:: + PreferredMaximumWidth( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PreferredMaximumWidth(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PreferredMaximumWidth(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3< + D>::PreferredMaximumHeight() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredMaximumHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredMaximumHeight(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenter3:: + PreferredMaximumHeight( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenter3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PreferredMaximumHeight(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PreferredMaximumHeight(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenterStatics::Create() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Create(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Create(&result)); + } + return winrt::Microsoft::UI::Windowing::OverlappedPresenter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenterStatics< + D>::CreateForContextMenu() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForContextMenu(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForContextMenu(&result)); + } + return winrt::Microsoft::UI::Windowing::OverlappedPresenter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenterStatics< + D>::CreateForDialog() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForDialog(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForDialog(&result)); + } + return winrt::Microsoft::UI::Windowing::OverlappedPresenter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenterStatics< + D>::CreateForToolWindow() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateForToolWindow(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateForToolWindow(&result)); + } + return winrt::Microsoft::UI::Windowing::OverlappedPresenter{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Windowing_IOverlappedPresenterStatics2< + D>::RequestedStartupState() const { + winrt::Microsoft::UI::Windowing::OverlappedPresenterState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedStartupState( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedStartupState( + reinterpret_cast(&value))); + } + return value; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Id( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Id()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsShownInSwitchers(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsShownInSwitchers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsShownInSwitchers(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsShownInSwitchers(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OwnerWindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OwnerWindowId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + struct struct_Windows_Graphics_PointInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Presenter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Presenter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Title(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Title(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TitleBar(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TitleBar()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Destroy() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Destroy(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Hide() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Hide(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Move( + struct struct_Windows_Graphics_PointInt32 position) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Move( + *reinterpret_cast( + &position)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveAndResize( + struct struct_Windows_Graphics_RectInt32 rect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveAndResize( + *reinterpret_cast(&rect)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveAndResizeRelativeToDisplayArea( + struct struct_Windows_Graphics_RectInt32 rect, + void* displayarea) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveAndResize( + *reinterpret_cast(&rect), + *reinterpret_cast( + &displayarea)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Resize( + struct struct_Windows_Graphics_SizeInt32 size) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resize( + *reinterpret_cast(&size)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIcon(void* iconPath) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIcon(*reinterpret_cast(&iconPath)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIconWithIconId( + struct struct_Microsoft_UI_IconId iconId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIcon( + *reinterpret_cast(&iconId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPresenter(void* appWindowPresenter) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPresenter( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::AppWindowPresenter const*>( + &appWindowPresenter)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPresenterByKind( + int32_t appWindowPresenterKind) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPresenter( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::AppWindowPresenterKind const*>( + &appWindowPresenterKind)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Show() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Show(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowWithActivation(bool activateWindow) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Show(activateWindow); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Changed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Changed( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Changed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closing(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closing( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Closing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Destroying(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Destroying( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Destroying(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Destroying( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ClientSize( + struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClientSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderAtBottom() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderAtBottom(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderAtTop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderAtTop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveInZOrderBelow( + struct struct_Microsoft_UI_WindowId windowId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveInZOrderBelow( + *reinterpret_cast(&windowId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ResizeClient( + struct struct_Windows_Graphics_SizeInt32 size) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResizeClient( + *reinterpret_cast(&size)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowOnceWithRequestedStartupState() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowOnceWithRequestedStartupState(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall AssociateWithDispatcherQueue( + void* dispatcherQueue) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AssociateWithDispatcherQueue( + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueue const*>( + &dispatcherQueue)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetTaskbarIcon(void* iconPath) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTaskbarIcon(*reinterpret_cast(&iconPath)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTaskbarIconWithIconId( + struct struct_Microsoft_UI_IconId iconId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTaskbarIcon( + *reinterpret_cast(&iconId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTitleBarIcon(void* iconPath) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTitleBarIcon(*reinterpret_cast(&iconPath)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTitleBarIconWithIconId( + struct struct_Microsoft_UI_IconId iconId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTitleBarIcon( + *reinterpret_cast(&iconId)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs> { + int32_t __stdcall get_DidPositionChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidPositionChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidPresenterChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidPresenterChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidSizeChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidSizeChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DidVisibilityChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidVisibilityChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IAppWindowChangedEventArgs2> { + int32_t __stdcall get_DidZOrderChange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DidZOrderChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsZOrderAtBottom(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZOrderAtBottom()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsZOrderAtTop(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZOrderAtTop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZOrderBelowWindowId( + struct struct_Microsoft_UI_WindowId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ZOrderBelowWindowId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IAppWindowClosingEventArgs> { + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Kind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Kind()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IAppWindowPresenterFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Create(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithPresenter(void* appWindowPresenter, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::AppWindowPresenter const*>( + &appWindowPresenter))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithPresenterAndOwner( + void* appWindowPresenter, + struct struct_Microsoft_UI_WindowId ownerWindowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::AppWindowPresenter const*>( + &appWindowPresenter), + *reinterpret_cast( + &ownerWindowId))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFromWindowId( + struct struct_Microsoft_UI_WindowId windowId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFromWindowId( + *reinterpret_cast( + &windowId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateWithDispatcherQueue( + void* appWindowPresenter, + struct struct_Microsoft_UI_WindowId ownerWindowId, void* DispatcherQueue, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::AppWindowPresenter const*>( + &appWindowPresenter), + *reinterpret_cast( + &ownerWindowId), + *reinterpret_cast< + winrt::Microsoft::UI::Dispatching::DispatcherQueue const*>( + &DispatcherQueue))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_BackgroundColor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().BackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BackgroundColor(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonBackgroundColor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonBackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonBackgroundColor(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonBackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonForegroundColor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonForegroundColor(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonForegroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonHoverBackgroundColor(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonHoverBackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonHoverBackgroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonHoverBackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonHoverForegroundColor(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonHoverForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonHoverForegroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonHoverForegroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonInactiveBackgroundColor( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonInactiveBackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonInactiveBackgroundColor( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonInactiveBackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonInactiveForegroundColor( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonInactiveForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonInactiveForegroundColor( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonInactiveForegroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonPressedBackgroundColor( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonPressedBackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonPressedBackgroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonPressedBackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ButtonPressedForegroundColor( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ButtonPressedForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ButtonPressedForegroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ButtonPressedForegroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtendsContentIntoTitleBar(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtendsContentIntoTitleBar()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExtendsContentIntoTitleBar(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ExtendsContentIntoTitleBar(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ForegroundColor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ForegroundColor(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ForegroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Height(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Height()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IconShowOptions(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IconShowOptions()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IconShowOptions(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IconShowOptions( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::IconShowOptions const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InactiveBackgroundColor(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().InactiveBackgroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InactiveBackgroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InactiveBackgroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InactiveForegroundColor(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().InactiveForegroundColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InactiveForegroundColor(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().InactiveForegroundColor( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LeftInset(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightInset(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightInset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ResetToDefault() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResetToDefault(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDragRectangles( + uint32_t __valueSize, + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDragRectangles( + array_view( + reinterpret_cast(value), + reinterpret_cast( + value) + + __valueSize)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PreferredHeightOption(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PreferredHeightOption()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PreferredHeightOption(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredHeightOption( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::TitleBarHeightOption const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PreferredTheme(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PreferredTheme()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PreferredTheme(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredTheme( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::TitleBarTheme const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall IsCustomizationSupported(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsCustomizationSupported()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_InitialSize(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InitialSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InitialSize(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InitialSize( + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::CompactOverlaySize const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::ICompactOverlayPresenterStatics> { + int32_t __stdcall Create(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().Create()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DisplayId( + struct struct_Microsoft_UI_DisplayId* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DisplayId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPrimary(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPrimary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OuterBounds( + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OuterBounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WorkArea( + struct struct_Windows_Graphics_RectInt32* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WorkArea()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Primary(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Primary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWatcher(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateWatcher()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAll(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>(this->shim().FindAll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFromWindowId( + struct struct_Microsoft_UI_WindowId windowId, int32_t displayAreaFallback, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFromWindowId( + *reinterpret_cast(&windowId), + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const*>( + &displayAreaFallback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFromPoint( + struct struct_Windows_Graphics_PointInt32 point, + int32_t displayAreaFallback, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFromPoint( + *reinterpret_cast( + &point), + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const*>( + &displayAreaFallback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFromRect(struct struct_Windows_Graphics_RectInt32 rect, + int32_t displayAreaFallback, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFromRect( + *reinterpret_cast( + &rect), + *reinterpret_cast< + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const*>( + &displayAreaFallback))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetFromDisplayId( + struct struct_Microsoft_UI_DisplayId displayId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFromDisplayId( + *reinterpret_cast( + &displayId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Status(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Status()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Start() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Start(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Stop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Added(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Added( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Added(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Added(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_EnumerationCompleted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().EnumerationCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_EnumerationCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().EnumerationCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Removed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Removed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Removed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Stopped(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Stopped( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Stopped(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Updated(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Updated( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Updated(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IFullScreenPresenterStatics> { + int32_t __stdcall Create(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HasBorder(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasBorder()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasTitleBar(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasTitleBar()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAlwaysOnTop(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlwaysOnTop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsAlwaysOnTop(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsAlwaysOnTop(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsMaximizable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMaximizable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsMaximizable(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsMaximizable(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsMinimizable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMinimizable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsMinimizable(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsMinimizable(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsModal(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsModal()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsModal(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsModal(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsResizable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsResizable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsResizable(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsResizable(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_State(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Maximize() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Maximize(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Minimize() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Minimize(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Restore() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Restore(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetBorderAndTitleBar(bool hasBorder, + bool hasTitleBar) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetBorderAndTitleBar(hasBorder, hasTitleBar); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall MinimizeWithActivation(bool activateWindow) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().Minimize(activateWindow); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RestoreWithActivation(bool activateWindow) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().Restore(activateWindow); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PreferredMinimumHeight(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().PreferredMinimumHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PreferredMinimumHeight(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredMinimumHeight( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PreferredMinimumWidth(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().PreferredMinimumWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PreferredMinimumWidth(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredMinimumWidth( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PreferredMaximumWidth(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().PreferredMaximumWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PreferredMaximumWidth(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredMaximumWidth( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PreferredMaximumHeight(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().PreferredMaximumHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PreferredMaximumHeight(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredMaximumHeight( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics> { + int32_t __stdcall Create(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForContextMenu(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForContextMenu()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForDialog(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForDialog()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateForToolWindow(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateForToolWindow()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Windowing::IOverlappedPresenterStatics2> { + int32_t __stdcall get_RequestedStartupState(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RequestedStartupState()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Windowing { + inline auto AppWindow::Create() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::AppWindow (*)( + IAppWindowStatics const&), + AppWindow, IAppWindowStatics>( + [](IAppWindowStatics const& f) { return f.Create(); }); + } + inline auto AppWindow::Create( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter) { + return impl::call_factory( + [&](IAppWindowStatics const& f) { + return f.Create(appWindowPresenter); + }); + } + inline auto AppWindow::Create( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter, + winrt::Microsoft::UI::WindowId const& ownerWindowId) { + return impl::call_factory( + [&](IAppWindowStatics const& f) { + return f.Create(appWindowPresenter, ownerWindowId); + }); + } + inline auto AppWindow::GetFromWindowId( + winrt::Microsoft::UI::WindowId const& windowId) { + return impl::call_factory( + [&](IAppWindowStatics const& f) { + return f.GetFromWindowId(windowId); + }); + } + inline auto AppWindow::Create( + winrt::Microsoft::UI::Windowing::AppWindowPresenter const& + appWindowPresenter, + winrt::Microsoft::UI::WindowId const& ownerWindowId, + winrt::Microsoft::UI::Dispatching::DispatcherQueue const& + DispatcherQueue) { + return impl::call_factory( + [&](IAppWindowStatics2 const& f) { + return f.Create(appWindowPresenter, ownerWindowId, DispatcherQueue); + }); + } + inline auto AppWindowTitleBar::IsCustomizationSupported() { + return impl::call_factory_cast( + [](IAppWindowTitleBarStatics const& f) { + return f.IsCustomizationSupported(); + }); + } + inline auto CompactOverlayPresenter::Create() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::CompactOverlayPresenter (*)( + ICompactOverlayPresenterStatics const&), + CompactOverlayPresenter, ICompactOverlayPresenterStatics>( + [](ICompactOverlayPresenterStatics const& f) { return f.Create(); }); + } + inline auto DisplayArea::Primary() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::DisplayArea (*)( + IDisplayAreaStatics const&), + DisplayArea, IDisplayAreaStatics>( + [](IDisplayAreaStatics const& f) { return f.Primary(); }); + } + inline auto DisplayArea::CreateWatcher() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::DisplayAreaWatcher (*)( + IDisplayAreaStatics const&), + DisplayArea, IDisplayAreaStatics>( + [](IDisplayAreaStatics const& f) { return f.CreateWatcher(); }); + } + inline auto DisplayArea::FindAll() { + return impl::call_factory_cast< + winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Windowing::DisplayArea> (*)( + IDisplayAreaStatics const&), + DisplayArea, IDisplayAreaStatics>( + [](IDisplayAreaStatics const& f) { return f.FindAll(); }); + } + inline auto DisplayArea::GetFromWindowId( + winrt::Microsoft::UI::WindowId const& windowId, + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const& + displayAreaFallback) { + return impl::call_factory( + [&](IDisplayAreaStatics const& f) { + return f.GetFromWindowId(windowId, displayAreaFallback); + }); + } + inline auto DisplayArea::GetFromPoint( + winrt::Windows::Graphics::PointInt32 const& point, + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const& + displayAreaFallback) { + return impl::call_factory( + [&](IDisplayAreaStatics const& f) { + return f.GetFromPoint(point, displayAreaFallback); + }); + } + inline auto DisplayArea::GetFromRect( + winrt::Windows::Graphics::RectInt32 const& rect, + winrt::Microsoft::UI::Windowing::DisplayAreaFallback const& + displayAreaFallback) { + return impl::call_factory( + [&](IDisplayAreaStatics const& f) { + return f.GetFromRect(rect, displayAreaFallback); + }); + } + inline auto DisplayArea::GetFromDisplayId( + winrt::Microsoft::UI::DisplayId const& displayId) { + return impl::call_factory( + [&](IDisplayAreaStatics2 const& f) { + return f.GetFromDisplayId(displayId); + }); + } + inline auto FullScreenPresenter::Create() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::FullScreenPresenter (*)( + IFullScreenPresenterStatics const&), + FullScreenPresenter, IFullScreenPresenterStatics>( + [](IFullScreenPresenterStatics const& f) { return f.Create(); }); + } + inline auto OverlappedPresenter::Create() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::OverlappedPresenter (*)( + IOverlappedPresenterStatics const&), + OverlappedPresenter, IOverlappedPresenterStatics>( + [](IOverlappedPresenterStatics const& f) { return f.Create(); }); + } + inline auto OverlappedPresenter::CreateForContextMenu() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::OverlappedPresenter (*)( + IOverlappedPresenterStatics const&), + OverlappedPresenter, IOverlappedPresenterStatics>( + [](IOverlappedPresenterStatics const& f) { + return f.CreateForContextMenu(); + }); + } + inline auto OverlappedPresenter::CreateForDialog() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::OverlappedPresenter (*)( + IOverlappedPresenterStatics const&), + OverlappedPresenter, IOverlappedPresenterStatics>( + [](IOverlappedPresenterStatics const& f) { + return f.CreateForDialog(); + }); + } + inline auto OverlappedPresenter::CreateForToolWindow() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::OverlappedPresenter (*)( + IOverlappedPresenterStatics const&), + OverlappedPresenter, IOverlappedPresenterStatics>( + [](IOverlappedPresenterStatics const& f) { + return f.CreateForToolWindow(); + }); + } + inline auto OverlappedPresenter::RequestedStartupState() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Windowing::OverlappedPresenterState (*)( + IOverlappedPresenterStatics2 const&), + OverlappedPresenter, IOverlappedPresenterStatics2>( + [](IOverlappedPresenterStatics2 const& f) { + return f.RequestedStartupState(); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Peers.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Peers.h new file mode 100644 index 00000000..1e02fffa --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Peers.h @@ -0,0 +1,18291 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Automation_Peers_H +#define WINRT_Microsoft_UI_Xaml_Automation_Peers_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Automation.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Provider.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAnimatedVisualPlayerAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::AnimatedVisualPlayer const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAnimatedVisualPlayerAutomationPeerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAnimatedVisualPlayerAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + AnimatedVisualPlayerAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAppBarAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::AppBar const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AppBarAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAppBarButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::AppBarButton const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + AppBarButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAppBarToggleButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::AppBarToggleButton const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAppBarToggleButtonAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + AppBarToggleButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutoSuggestBoxAutomationPeerFactory< + D>::CreateInstanceWithOwner(winrt::Microsoft::UI::Xaml::Controls:: + AutoSuggestBox const& owner) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithOwner(*(void**)(&owner), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithOwner(*(void**)(&owner), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutoSuggestBoxAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::EventsSource() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EventsSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EventsSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer:: + EventsSource( + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EventsSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EventsSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::GetPattern( + winrt::Microsoft::UI::Xaml::Automation::Peers::PatternInterface const& + patternInterface) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPattern( + static_cast(patternInterface), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPattern( + static_cast(patternInterface), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer:: + RaiseAutomationEvent( + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationEvents const& + eventId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->RaiseAutomationEvent(static_cast(eventId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->RaiseAutomationEvent(static_cast(eventId))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer:: + RaisePropertyChangedEvent( + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty const& + automationProperty, + winrt::Windows::Foundation::IInspectable const& oldValue, + winrt::Windows::Foundation::IInspectable const& newValue) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RaisePropertyChangedEvent( + *(void**)(&automationProperty), *(void**)(&oldValue), + *(void**)(&newValue))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RaisePropertyChangedEvent( + *(void**)(&automationProperty), *(void**)(&oldValue), + *(void**)(&newValue))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetAcceleratorKey() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAcceleratorKey(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAcceleratorKey(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetAccessKey() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAccessKey(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAccessKey(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetAutomationControlType() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAutomationControlType( + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAutomationControlType( + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetAutomationId() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAutomationId(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAutomationId(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetBoundingRectangle() const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBoundingRectangle(put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBoundingRectangle(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetChildren() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetChildren(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetChildren(&result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::Navigate( + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNavigationDirection const& direction) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Navigate(static_cast(direction), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Navigate(static_cast(direction), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetClassName() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClassName(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClassName(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetClickablePoint() const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClickablePoint(put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClickablePoint(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetHelpText() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHelpText(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHelpText(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetItemStatus() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemStatus(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemStatus(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetItemType() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemType(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemType(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetLabeledBy() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLabeledBy(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLabeledBy(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetLocalizedControlType() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLocalizedControlType(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLocalizedControlType(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::GetName() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetName(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetName(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetOrientation() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationOrientation result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetOrientation(reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetOrientation(reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::HasKeyboardFocus() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->HasKeyboardFocus(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->HasKeyboardFocus(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsContentElement() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsContentElement(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsContentElement(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsControlElement() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsControlElement(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsControlElement(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::IsEnabled() + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsEnabled(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsEnabled(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsKeyboardFocusable() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsKeyboardFocusable(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsKeyboardFocusable(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsOffscreen() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsOffscreen(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsOffscreen(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::IsPassword() + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsPassword(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsPassword(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsRequiredForForm() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsRequiredForForm(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsRequiredForForm(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::SetFocus() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetFocus()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetFocus()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::GetParent() + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetParent(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetParent(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::InvalidatePeer() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidatePeer()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidatePeer()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetPeerFromPoint(winrt::Windows::Foundation::Point const& point) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPeerFromPoint(impl::bind_in(point), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPeerFromPoint(impl::bind_in(point), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetElementFromPoint(winrt::Windows::Foundation::Point const& + pointInWindowCoordinates) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetElementFromPoint( + impl::bind_in(pointInWindowCoordinates), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetElementFromPoint( + impl::bind_in(pointInWindowCoordinates), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetFocusedElement() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFocusedElement(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFocusedElement(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetLiveSetting() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLiveSetting result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetLiveSetting(reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetLiveSetting(reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::ShowContextMenu() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowContextMenu()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowContextMenu()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetControlledPeers() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetControlledPeers(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetControlledPeers(&result)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetAnnotations() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAnnotations(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAnnotations(&result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeerAnnotation>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::SetParent( + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& peer) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetParent(*(void**)(&peer))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetParent(*(void**)(&peer))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer:: + RaiseTextEditTextChangedEvent( + winrt::Microsoft::UI::Xaml::Automation:: + AutomationTextEditChangeType const& automationTextEditChangeType, + param::vector_view const& changedData) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RaiseTextEditTextChangedEvent( + static_cast(automationTextEditChangeType), + *(void**)(&changedData))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RaiseTextEditTextChangedEvent( + static_cast(automationTextEditChangeType), + *(void**)(&changedData))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetPositionInSet() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPositionInSet(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPositionInSet(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetSizeOfSet() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSizeOfSet(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSizeOfSet(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::GetLevel() + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLevel(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLevel(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer:: + RaiseStructureChangedEvent( + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationStructureChangeType const& structureChangeType, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& + child) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RaiseStructureChangedEvent( + static_cast(structureChangeType), *(void**)(&child))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RaiseStructureChangedEvent( + static_cast(structureChangeType), *(void**)(&child))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetLandmarkType() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLandmarkType + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetLandmarkType(reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetLandmarkType(reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetLocalizedLandmarkType() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLocalizedLandmarkType(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLocalizedLandmarkType(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsPeripheral() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsPeripheral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsPeripheral(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::IsDataValidForForm() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsDataValidForForm(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsDataValidForForm(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetFullDescription() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFullDescription(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFullDescription(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::GetCulture() + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCulture(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCulture(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer:: + RaiseNotificationEvent( + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNotificationKind const& notificationKind, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNotificationProcessing const& notificationProcessing, + param::hstring const& displayString, + param::hstring const& activityId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RaiseNotificationEvent( + static_cast(notificationKind), + static_cast(notificationProcessing), *(void**)(&displayString), + *(void**)(&activityId))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RaiseNotificationEvent( + static_cast(notificationKind), + static_cast(notificationProcessing), *(void**)(&displayString), + *(void**)(&activityId))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer< + D>::GetHeadingLevel() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationHeadingLevel + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetHeadingLevel(reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetHeadingLevel(reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeer::IsDialog() + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsDialog(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsDialog(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotation< + D>::Type() const { + winrt::Microsoft::UI::Xaml::Automation::AnnotationType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Type(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Type(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotation< + D>::Type(winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Type(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Type(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotation< + D>::Peer() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Peer(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Peer(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotation:: + Peer(winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Peer(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Peer(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotationFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Automation:: + AnnotationType const& type) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(static_cast(type), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(static_cast(type), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationPeerAnnotation{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotationFactory< + D>:: + CreateWithPeerParameter( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& type, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& + peer) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithPeerParameter( + static_cast(type), *(void**)(&peer), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithPeerParameter( + static_cast(type), *(void**)(&peer), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationPeerAnnotation{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotationStatics< + D>::TypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerAnnotationStatics< + D>::PeerProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PeerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PeerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides:: + GetPatternCore( + winrt::Microsoft::UI::Xaml::Automation::Peers::PatternInterface const& + patternInterface) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPatternCore( + static_cast(patternInterface), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPatternCore( + static_cast(patternInterface), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetAcceleratorKeyCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAcceleratorKeyCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAcceleratorKeyCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetAccessKeyCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAccessKeyCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAccessKeyCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetAutomationControlTypeCore() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAutomationControlTypeCore( + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAutomationControlTypeCore( + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetAutomationIdCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAutomationIdCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAutomationIdCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetBoundingRectangleCore() const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBoundingRectangleCore(put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBoundingRectangleCore(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetChildrenCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetChildrenCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetChildrenCore(&result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::NavigateCore(winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNavigationDirection const& direction) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateCore(static_cast(direction), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateCore(static_cast(direction), + &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetClassNameCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClassNameCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClassNameCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetClickablePointCore() const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetClickablePointCore(put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetClickablePointCore(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetHelpTextCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHelpTextCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHelpTextCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetItemStatusCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemStatusCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemStatusCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetItemTypeCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemTypeCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemTypeCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetLabeledByCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLabeledByCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLabeledByCore(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetLocalizedControlTypeCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLocalizedControlTypeCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLocalizedControlTypeCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetNameCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetNameCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetNameCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetOrientationCore() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationOrientation result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOrientationCore( + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetOrientationCore( + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::HasKeyboardFocusCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->HasKeyboardFocusCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->HasKeyboardFocusCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsContentElementCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsContentElementCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsContentElementCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsControlElementCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsControlElementCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsControlElementCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsEnabledCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsEnabledCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsEnabledCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsKeyboardFocusableCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsKeyboardFocusableCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsKeyboardFocusableCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsOffscreenCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsOffscreenCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsOffscreenCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsPasswordCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsPasswordCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsPasswordCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsRequiredForFormCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsRequiredForFormCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsRequiredForFormCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::SetFocusCore() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetFocusCore()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetFocusCore()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides:: + GetPeerFromPointCore(winrt::Windows::Foundation::Point const& point) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPeerFromPointCore(impl::bind_in(point), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPeerFromPointCore(impl::bind_in(point), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetElementFromPointCore(winrt::Windows::Foundation::Point const& + pointInWindowCoordinates) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetElementFromPointCore( + impl::bind_in(pointInWindowCoordinates), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetElementFromPointCore( + impl::bind_in(pointInWindowCoordinates), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetFocusedElementCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFocusedElementCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFocusedElementCore(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetLiveSettingCore() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLiveSetting result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLiveSettingCore( + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLiveSettingCore( + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::ShowContextMenuCore() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowContextMenuCore()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowContextMenuCore()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetControlledPeersCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetControlledPeersCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetControlledPeersCore(&result)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetAnnotationsCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAnnotationsCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAnnotationsCore(&result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeerAnnotation>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetPositionInSetCore() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPositionInSetCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPositionInSetCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetSizeOfSetCore() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSizeOfSetCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSizeOfSetCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetLevelCore() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLevelCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLevelCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetLandmarkTypeCore() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLandmarkType + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLandmarkTypeCore( + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLandmarkTypeCore( + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetLocalizedLandmarkTypeCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLocalizedLandmarkTypeCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLocalizedLandmarkTypeCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsPeripheralCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsPeripheralCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsPeripheralCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsDataValidForFormCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsDataValidForFormCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsDataValidForFormCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetFullDescriptionCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFullDescriptionCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFullDescriptionCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetDescribedByCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDescribedByCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDescribedByCore(&result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetFlowsToCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFlowsToCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFlowsToCore(&result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetFlowsFromCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFlowsFromCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFlowsFromCore(&result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetCultureCore() const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCultureCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCultureCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::GetHeadingLevelCore() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationHeadingLevel + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHeadingLevelCore( + reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHeadingLevelCore( + reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerOverrides< + D>::IsDialogCore() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsDialogCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsDialogCore(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerProtected< + D>::PeerFromProvider(winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple const& provider) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerProtected, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->PeerFromProvider(*(void**)(&provider), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->PeerFromProvider(*(void**)(&provider), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerProtected:: + ProviderFromPeer( + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& + peer) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerProtected, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProviderFromPeer(*(void**)(&peer), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProviderFromPeer(*(void**)(&peer), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerStatics:: + ListenerExists( + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationEvents const& + eventId) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ListenerExists(static_cast(eventId), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ListenerExists(static_cast(eventId), + &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IAutomationPeerStatics< + D>::GenerateRawElementProviderRuntimeId() const { + winrt::Microsoft::UI::Xaml::Automation::Peers::RawElementProviderRuntimeId + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GenerateRawElementProviderRuntimeId(put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GenerateRawElementProviderRuntimeId(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IBreadcrumbBarItemAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::BreadcrumbBarItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IBreadcrumbBarItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + BreadcrumbBarItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Button const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ButtonAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IButtonBaseAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ButtonBase const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ICalendarDatePickerAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::CalendarDatePicker const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ICalendarDatePickerAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + CalendarDatePickerAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ICheckBoxAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::CheckBox const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::CheckBoxAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IColorPickerSliderAutomationPeerFactory< + D>::CreateInstanceWithOwner(winrt::Microsoft::UI::Xaml::Controls:: + Primitives::ColorPickerSlider const& owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& + innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IColorPickerSliderAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ColorPickerSliderAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IColorSpectrumAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ColorSpectrumAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IComboBoxAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IComboBoxItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ComboBoxItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ComboBoxItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IComboBoxItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ComboBoxAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IComboBoxItemDataAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ComboBoxItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IDatePickerAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::DatePicker const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + DatePickerAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IDropDownButtonAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::DropDownButton const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + DropDownButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IExpanderAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::Expander const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ExpanderAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFlipViewAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::FlipView const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::FlipViewAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFlipViewItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::FlipViewItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + FlipViewItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFlipViewItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FlipViewAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFlipViewItemDataAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + FlipViewItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFlyoutPresenterAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::FlyoutPresenter const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFlyoutPresenterAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + FlyoutPresenterAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFrameworkElementAutomationPeer< + D>::Owner() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Owner(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Owner(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFrameworkElementAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::FrameworkElement const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFrameworkElementAutomationPeerStatics< + D>::FromElement(winrt::Microsoft::UI::Xaml::UIElement const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeerStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromElement(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IFrameworkElementAutomationPeerStatics< + D>::CreatePeerForElement(winrt::Microsoft::UI::Xaml::UIElement const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeerStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreatePeerForElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreatePeerForElement(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IGridViewAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::GridView const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::GridViewAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IGridViewHeaderItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::GridViewHeaderItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGridViewHeaderItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + GridViewHeaderItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IGridViewItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::GridViewItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + GridViewItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IGridViewItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + GridViewAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGridViewItemDataAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + GridViewItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IGroupItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::GroupItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::GroupItemAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IHubAutomationPeerFactory:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Hub const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::HubAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IHubSectionAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::HubSection const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + HubSectionAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IHyperlinkButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::HyperlinkButton const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IHyperlinkButtonAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + HyperlinkButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IImageAutomationPeerFactory:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Image const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ImageAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IInfoBarAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::InfoBar const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::InfoBarAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemAutomationPeer::Item() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemAutomationPeer< + D>::ItemsControlAutomationPeer() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsControlAutomationPeer(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsControlAutomationPeer(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemAutomationPeerFactory:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemContainerAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::ItemContainer const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemContainerAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemsControlAutomationPeer< + D>::CreateItemAutomationPeer(winrt::Windows::Foundation::IInspectable const& + item) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateItemAutomationPeer(*(void**)(&item), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateItemAutomationPeer(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemsControlAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ItemsControl const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemsControlAutomationPeerOverrides< + D>::OnCreateItemAutomationPeer(winrt::Windows::Foundation:: + IInspectable const& item) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->OnCreateItemAutomationPeer(*(void**)(&item), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->OnCreateItemAutomationPeer(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IItemsViewAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::ItemsView const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ItemsViewAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListBoxAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListBox const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ListBoxAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListBoxItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListBoxItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListBoxItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListBoxItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListBoxAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListBoxItemDataAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListBoxItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListViewAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListView const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ListViewAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListViewBaseAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListViewBaseHeaderItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListViewBaseHeaderItem const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseHeaderItemAutomationPeerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseHeaderItemAutomationPeerFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseHeaderItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseHeaderItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListViewHeaderItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListViewHeaderItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewHeaderItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewHeaderItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListViewItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ListViewItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IListViewItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewItemDataAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IMediaPlayerElementAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::MediaPlayerElement const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMediaPlayerElementAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + MediaPlayerElementAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IMediaTransportControlsAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::MediaTransportControls const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMediaTransportControlsAutomationPeerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMediaTransportControlsAutomationPeerFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMediaTransportControlsAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + MediaTransportControlsAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IMenuBarAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::MenuBar const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::MenuBarAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IMenuBarItemAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::MenuBarItem const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + MenuBarItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IMenuFlyoutItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + MenuFlyoutItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IMenuFlyoutPresenterAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutPresenter const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMenuFlyoutPresenterAutomationPeerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMenuFlyoutPresenterAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + MenuFlyoutPresenterAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_INavigationViewAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::NavigationView const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + NavigationViewAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_INavigationViewItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::NavigationViewItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + INavigationViewItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + NavigationViewItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_INumberBoxAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::NumberBox const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::NumberBoxAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IPasswordBoxAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::PasswordBox const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + PasswordBoxAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IPersonPictureAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::PersonPicture const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + PersonPictureAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IPipsPagerAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::PipsPager const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::PipsPagerAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IPivotAutomationPeerFactory:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Pivot const& owner) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithOwner(*(void**)(&owner), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithOwner(*(void**)(&owner), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::PivotAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IPivotItemAutomationPeerFactory< + D>::CreateInstanceWithOwner(winrt::Microsoft::UI::Xaml::Controls:: + PivotItem const& owner) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithOwner(*(void**)(&owner), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithOwner(*(void**)(&owner), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::PivotItemAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IPivotItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + PivotAutomationPeer const& parent) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + PivotItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IProgressBarAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::ProgressBar const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ProgressBarAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IProgressRingAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::ProgressRing const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ProgressRingAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRadioButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::RadioButton const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RadioButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRadioButtonsAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::RadioButtons const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RadioButtonsAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRangeBaseAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::RangeBase const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::RangeBaseAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRatingControlAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::RatingControl const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RatingControlAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRepeatButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::RepeatButton const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RepeatButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRepeaterAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::ItemsRepeater const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::RepeaterAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRichEditBoxAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::RichEditBox const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RichEditBoxAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRichTextBlockAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::RichTextBlock const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RichTextBlockAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IRichTextBlockOverflowAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRichTextBlockOverflowAutomationPeerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRichTextBlockOverflowAutomationPeerFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRichTextBlockOverflowAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + RichTextBlockOverflowAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IScrollBarAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollBar const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ScrollBarAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IScrollPresenterAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IScrollPresenterAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ScrollPresenterAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IScrollViewerAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ScrollViewerAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ISelectorAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::Selector const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::SelectorAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ISelectorBarItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorBarItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorBarItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ISelectorItemAutomationPeerFactory< + D>:: + CreateInstanceWithParentAndItem( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithParentAndItem( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ISemanticZoomAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::SemanticZoom const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + SemanticZoomAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ISliderAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Slider const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::SliderAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ISplitButtonAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::SplitButton const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + SplitButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITabViewAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::TabView const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::TabViewAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITabViewItemAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::TabViewItem const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + TabViewItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITeachingTipAutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::TeachingTip const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + TeachingTipAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITextBlockAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::TextBlock const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::TextBlockAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITextBoxAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::TextBox const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::TextBoxAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IThumbAutomationPeerFactory:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::Thumb const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::ThumbAutomationPeer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITimePickerAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::TimePicker const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + TimePickerAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IToggleButtonAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ToggleButton const& + owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IToggleMenuFlyoutItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ToggleMenuFlyoutItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleMenuFlyoutItemAutomationPeerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleMenuFlyoutItemAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleMenuFlyoutItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IToggleSplitButtonAutomationPeerFactory< + D>:: + CreateInstance( + winrt::Microsoft::UI::Xaml::Controls::ToggleSplitButton const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleSplitButtonAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleSplitButtonAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IToggleSwitchAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::ToggleSwitch const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleSwitchAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITreeViewItemAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::TreeViewItem const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + TreeViewItemAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITreeViewItemDataAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + TreeViewListAutomationPeer const& parent, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITreeViewItemDataAutomationPeerFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&item), *(void**)(&parent), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + TreeViewItemDataAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_ITreeViewListAutomationPeerFactory< + D>:: + CreateInstanceWithOwner( + winrt::Microsoft::UI::Xaml::Controls::TreeViewList const& owner, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithOwner( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers:: + TreeViewListAutomationPeer{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Peers_IWebView2AutomationPeerFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::WebView2 const& + owner, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&owner), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::WebView2AutomationPeer{ + value, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AnimatedVisualPlayerAutomationPeer>(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::AnimatedVisualPlayer const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAppBarAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAppBarAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AppBarAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::AppBar const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAppBarButtonAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::AppBarButton const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const*>( + &owner))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer> { + int32_t __stdcall get_EventsSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().EventsSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EventsSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EventsSource( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPattern(int32_t patternInterface, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetPattern( + *reinterpret_cast(&patternInterface))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RaiseAutomationEvent(int32_t eventId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RaiseAutomationEvent( + *reinterpret_cast(&eventId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RaisePropertyChangedEvent(void* automationProperty, + void* oldValue, + void* newValue) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().RaisePropertyChangedEvent( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty const*>( + &automationProperty), + *reinterpret_cast( + &oldValue), + *reinterpret_cast( + &newValue)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAcceleratorKey(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAcceleratorKey()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAccessKey(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAccessKey()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationControlType(int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType>( + this->shim().GetAutomationControlType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationId(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAutomationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBoundingRectangle( + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetBoundingRectangle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetChildren(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetChildren()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Navigate(int32_t direction, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Navigate( + *reinterpret_cast( + &direction))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClassName(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetClassName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClickablePoint( + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetClickablePoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHelpText(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHelpText()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItemStatus(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemStatus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItemType(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLabeledBy(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().GetLabeledBy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLocalizedControlType(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLocalizedControlType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetName(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetOrientation(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationOrientation>( + this->shim().GetOrientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall HasKeyboardFocus(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().HasKeyboardFocus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsContentElement(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsContentElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsControlElement(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsControlElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsEnabled(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsKeyboardFocusable(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsKeyboardFocusable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsOffscreen(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsOffscreen()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsPassword(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsPassword()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsRequiredForForm(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsRequiredForForm()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetFocus() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetFocus(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetParent(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().GetParent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InvalidatePeer() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidatePeer(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPeerFromPoint(winrt::Windows::Foundation::Point point, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().GetPeerFromPoint( + *reinterpret_cast( + &point))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetElementFromPoint( + winrt::Windows::Foundation::Point pointInWindowCoordinates, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetElementFromPoint( + *reinterpret_cast( + &pointInWindowCoordinates))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFocusedElement(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLiveSetting(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLiveSetting>( + this->shim().GetLiveSetting()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowContextMenu() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowContextMenu(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetControlledPeers(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetControlledPeers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnnotations(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>(this->shim().GetAnnotations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetParent(void* peer) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetParent( + *reinterpret_cast(&peer)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RaiseTextEditTextChangedEvent( + int32_t automationTextEditChangeType, void* changedData) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().RaiseTextEditTextChangedEvent( + *reinterpret_cast( + &automationTextEditChangeType), + *reinterpret_cast const*>(&changedData)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPositionInSet(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPositionInSet()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSizeOfSet(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetSizeOfSet()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLevel(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLevel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RaiseStructureChangedEvent(int32_t structureChangeType, + void* child) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RaiseStructureChangedEvent( + *reinterpret_cast( + &structureChangeType), + *reinterpret_cast(&child)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLandmarkType(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLandmarkType>( + this->shim().GetLandmarkType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLocalizedLandmarkType(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLocalizedLandmarkType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsPeripheral(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsPeripheral()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsDataValidForForm(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsDataValidForForm()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFullDescription(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetFullDescription()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCulture(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetCulture()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RaiseNotificationEvent(int32_t notificationKind, + int32_t notificationProcessing, + void* displayString, + void* activityId) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().RaiseNotificationEvent( + *reinterpret_cast( + ¬ificationKind), + *reinterpret_cast( + ¬ificationProcessing), + *reinterpret_cast(&displayString), + *reinterpret_cast(&activityId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHeadingLevel(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationHeadingLevel>( + this->shim().GetHeadingLevel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsDialog(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsDialog()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerAnnotation> + : produce_base { + int32_t __stdcall get_Type(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Type(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Type( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Peer(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().Peer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Peer(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Peer( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(int32_t type, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const*>( + &type))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithPeerParameter(int32_t type, void* peer, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateWithPeerParameter( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const*>( + &type), + *reinterpret_cast(&peer))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PeerProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PeerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides> + : produce_base { + int32_t __stdcall GetPatternCore(int32_t patternInterface, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetPatternCore( + *reinterpret_cast(&patternInterface))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAcceleratorKeyCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAcceleratorKeyCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAccessKeyCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAccessKeyCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationControlTypeCore(int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType>( + this->shim().GetAutomationControlTypeCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationIdCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAutomationIdCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBoundingRectangleCore( + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetBoundingRectangleCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetChildrenCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetChildrenCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall NavigateCore(int32_t direction, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().NavigateCore( + *reinterpret_cast( + &direction))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClassNameCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetClassNameCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetClickablePointCore( + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetClickablePointCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHelpTextCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHelpTextCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItemStatusCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemStatusCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItemTypeCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemTypeCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLabeledByCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().GetLabeledByCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLocalizedControlTypeCore(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLocalizedControlTypeCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetNameCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetNameCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetOrientationCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationOrientation>( + this->shim().GetOrientationCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall HasKeyboardFocusCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().HasKeyboardFocusCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsContentElementCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsContentElementCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsControlElementCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsControlElementCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsEnabledCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsEnabledCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsKeyboardFocusableCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsKeyboardFocusableCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsOffscreenCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsOffscreenCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsPasswordCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsPasswordCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsRequiredForFormCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsRequiredForFormCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetFocusCore() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetFocusCore(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPeerFromPointCore( + winrt::Windows::Foundation::Point point, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().GetPeerFromPointCore( + *reinterpret_cast( + &point))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetElementFromPointCore( + winrt::Windows::Foundation::Point pointInWindowCoordinates, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetElementFromPointCore( + *reinterpret_cast( + &pointInWindowCoordinates))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFocusedElementCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFocusedElementCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLiveSettingCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLiveSetting>( + this->shim().GetLiveSettingCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowContextMenuCore() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowContextMenuCore(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetControlledPeersCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetControlledPeersCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnnotationsCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>(this->shim().GetAnnotationsCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPositionInSetCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPositionInSetCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSizeOfSetCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetSizeOfSetCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLevelCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLevelCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLandmarkTypeCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLandmarkType>( + this->shim().GetLandmarkTypeCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLocalizedLandmarkTypeCore(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLocalizedLandmarkTypeCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsPeripheralCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsPeripheralCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsDataValidForFormCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsDataValidForFormCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFullDescriptionCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetFullDescriptionCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDescribedByCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetDescribedByCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFlowsToCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetFlowsToCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFlowsFromCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetFlowsFromCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCultureCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetCultureCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHeadingLevelCore(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationHeadingLevel>( + this->shim().GetHeadingLevelCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsDialogCore(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsDialogCore()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerProtected> + : produce_base { + int32_t __stdcall PeerFromProvider(void* provider, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().PeerFromProvider( + *reinterpret_cast( + &provider))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProviderFromPeer(void* peer, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ProviderFromPeer( + *reinterpret_cast(&peer))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerStatics> + : produce_base { + int32_t __stdcall ListenerExists(int32_t eventId, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ListenerExists( + *reinterpret_cast(&eventId))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GenerateRawElementProviderRuntimeId( + struct + struct_Microsoft_UI_Xaml_Automation_Peers_RawElementProviderRuntimeId* + result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GenerateRawElementProviderRuntimeId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::BreadcrumbBarItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IButtonAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IButtonAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ButtonAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Button const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IButtonBaseAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ICheckBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::CheckBoxAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::CheckBox const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IColorSpectrumAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IComboBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ComboBox const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IComboBoxItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ComboBoxItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IDatePickerAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::DatePicker const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::DropDownButton const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IExpanderAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ExpanderAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Expander const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IFlipViewAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::FlipViewAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::FlipView const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IFlipViewItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::FlipViewItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::FlyoutPresenter const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Owner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Owner()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FrameworkElement const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall FromElement(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().FromElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreatePeerForElement(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().CreatePeerForElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IGridViewAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::GridViewAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::GridView const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IGridViewItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::GridViewItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IGroupItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::GroupItemAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::GroupItem const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IHubAutomationPeer> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IHubAutomationPeer> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IHubAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::HubAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IHubSectionAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::HubSection const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::HyperlinkButton const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IImageAutomationPeer> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IImageAutomationPeer> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IImageAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ImageAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Image const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IInfoBarAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::InfoBarAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::InfoBar const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer> { + int32_t __stdcall get_Item(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Item()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemsControlAutomationPeer(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemsControlAutomationPeer()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer>( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemContainerAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ItemContainer const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemsControlAutomationPeer> + : produce_base { + int32_t __stdcall CreateItemAutomationPeer(void* item, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer>( + this->shim().CreateItemAutomationPeer( + *reinterpret_cast( + &item))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ItemsControl const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall OnCreateItemAutomationPeer(void* item, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer>( + this->shim().OnCreateItemAutomationPeer( + *reinterpret_cast( + &item))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IItemsViewAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemsViewAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ItemsView const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IListBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListBoxAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListBox const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IListBoxItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListBoxItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IListViewAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListViewAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListView const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IListViewBaseAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IListViewItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListViewItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IMenuBarAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::MenuBarAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::MenuBar const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IMenuBarItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::MenuBarItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::NavigationView const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::INumberBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::NumberBoxAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::NumberBox const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IPasswordBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::PasswordBox const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IPersonPictureAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::PersonPicture const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IPipsPagerAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::PipsPagerAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::PipsPager const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotAutomationPeer> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotAutomationPeer> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::PivotAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Pivot const*>(&owner))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::PivotItemAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::PivotItem const*>( + &owner))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotItemDataAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IProgressBarAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ProgressBar const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IProgressRingAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ProgressRing const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IRadioButtonAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::RadioButton const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IRadioButtonsAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::RadioButtons const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IRangeBaseAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::RangeBaseAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IRatingControlAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::RatingControl const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IRepeatButtonAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IRepeaterAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::RepeaterAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ItemsRepeater const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IRichEditBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::RichEditBox const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IRichTextBlockAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::RichTextBlock const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IScrollBarAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ScrollBarAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IScrollViewerAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ISelectorAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::SelectorAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ISelectorItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithParentAndItem(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithParentAndItem( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ISemanticZoomAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::SemanticZoom const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ISliderAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ISliderAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::SliderAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Slider const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ISplitButtonAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::SplitButton const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ITabViewAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::TabViewAutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TabView const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ITabViewItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TabViewItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ITeachingTipAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TeachingTip const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ITextBlockAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::TextBlockAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TextBlock const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ITextBoxAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::TextBoxAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TextBox const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IThumbAutomationPeer> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IThumbAutomationPeer> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IThumbAutomationPeerFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::ThumbAutomationPeer>( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Primitives::Thumb const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::ITimePickerAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TimePicker const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IToggleButtonAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ToggleSplitButton const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IToggleSwitchAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ToggleSwitch const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ITreeViewItemAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TreeViewItem const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* item, void* parent, + void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast( + &item), + *reinterpret_cast(&parent), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::ITreeViewListAutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithOwner(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithOwner( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::TreeViewList const*>( + &owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IWebView2AutomationPeer> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::WebView2AutomationPeer>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::WebView2 const*>(&owner), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverrides> { + auto GetPatternCore( + winrt::Microsoft::UI::Xaml::Automation::Peers::PatternInterface const& + patternInterface) { + if (auto overridable = this->shim_overridable()) { + return overridable.GetPatternCore(patternInterface); + } + + return this->shim().GetPatternCore(patternInterface); + } + auto GetAcceleratorKeyCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetAcceleratorKeyCore(); + } + + return this->shim().GetAcceleratorKeyCore(); + } + auto GetAccessKeyCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetAccessKeyCore(); + } + + return this->shim().GetAccessKeyCore(); + } + auto GetAutomationControlTypeCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetAutomationControlTypeCore(); + } + + return this->shim().GetAutomationControlTypeCore(); + } + auto GetAutomationIdCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetAutomationIdCore(); + } + + return this->shim().GetAutomationIdCore(); + } + auto GetBoundingRectangleCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetBoundingRectangleCore(); + } + + return this->shim().GetBoundingRectangleCore(); + } + auto GetChildrenCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetChildrenCore(); + } + + return this->shim().GetChildrenCore(); + } + auto NavigateCore(winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNavigationDirection const& direction) { + if (auto overridable = this->shim_overridable()) { + return overridable.NavigateCore(direction); + } + + return this->shim().NavigateCore(direction); + } + auto GetClassNameCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetClassNameCore(); + } + + return this->shim().GetClassNameCore(); + } + auto GetClickablePointCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetClickablePointCore(); + } + + return this->shim().GetClickablePointCore(); + } + auto GetHelpTextCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetHelpTextCore(); + } + + return this->shim().GetHelpTextCore(); + } + auto GetItemStatusCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetItemStatusCore(); + } + + return this->shim().GetItemStatusCore(); + } + auto GetItemTypeCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetItemTypeCore(); + } + + return this->shim().GetItemTypeCore(); + } + auto GetLabeledByCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetLabeledByCore(); + } + + return this->shim().GetLabeledByCore(); + } + auto GetLocalizedControlTypeCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetLocalizedControlTypeCore(); + } + + return this->shim().GetLocalizedControlTypeCore(); + } + auto GetNameCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetNameCore(); + } + + return this->shim().GetNameCore(); + } + auto GetOrientationCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetOrientationCore(); + } + + return this->shim().GetOrientationCore(); + } + auto HasKeyboardFocusCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.HasKeyboardFocusCore(); + } + + return this->shim().HasKeyboardFocusCore(); + } + auto IsContentElementCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsContentElementCore(); + } + + return this->shim().IsContentElementCore(); + } + auto IsControlElementCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsControlElementCore(); + } + + return this->shim().IsControlElementCore(); + } + auto IsEnabledCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsEnabledCore(); + } + + return this->shim().IsEnabledCore(); + } + auto IsKeyboardFocusableCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsKeyboardFocusableCore(); + } + + return this->shim().IsKeyboardFocusableCore(); + } + auto IsOffscreenCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsOffscreenCore(); + } + + return this->shim().IsOffscreenCore(); + } + auto IsPasswordCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsPasswordCore(); + } + + return this->shim().IsPasswordCore(); + } + auto IsRequiredForFormCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsRequiredForFormCore(); + } + + return this->shim().IsRequiredForFormCore(); + } + auto SetFocusCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.SetFocusCore(); + } + + return this->shim().SetFocusCore(); + } + auto GetPeerFromPointCore(winrt::Windows::Foundation::Point const& point) { + if (auto overridable = this->shim_overridable()) { + return overridable.GetPeerFromPointCore(point); + } + + return this->shim().GetPeerFromPointCore(point); + } + auto GetElementFromPointCore( + winrt::Windows::Foundation::Point const& pointInWindowCoordinates) { + if (auto overridable = this->shim_overridable()) { + return overridable.GetElementFromPointCore(pointInWindowCoordinates); + } + + return this->shim().GetElementFromPointCore(pointInWindowCoordinates); + } + auto GetFocusedElementCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetFocusedElementCore(); + } + + return this->shim().GetFocusedElementCore(); + } + auto GetLiveSettingCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetLiveSettingCore(); + } + + return this->shim().GetLiveSettingCore(); + } + auto ShowContextMenuCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.ShowContextMenuCore(); + } + + return this->shim().ShowContextMenuCore(); + } + auto GetControlledPeersCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetControlledPeersCore(); + } + + return this->shim().GetControlledPeersCore(); + } + auto GetAnnotationsCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetAnnotationsCore(); + } + + return this->shim().GetAnnotationsCore(); + } + auto GetPositionInSetCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetPositionInSetCore(); + } + + return this->shim().GetPositionInSetCore(); + } + auto GetSizeOfSetCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetSizeOfSetCore(); + } + + return this->shim().GetSizeOfSetCore(); + } + auto GetLevelCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetLevelCore(); + } + + return this->shim().GetLevelCore(); + } + auto GetLandmarkTypeCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetLandmarkTypeCore(); + } + + return this->shim().GetLandmarkTypeCore(); + } + auto GetLocalizedLandmarkTypeCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetLocalizedLandmarkTypeCore(); + } + + return this->shim().GetLocalizedLandmarkTypeCore(); + } + auto IsPeripheralCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsPeripheralCore(); + } + + return this->shim().IsPeripheralCore(); + } + auto IsDataValidForFormCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsDataValidForFormCore(); + } + + return this->shim().IsDataValidForFormCore(); + } + auto GetFullDescriptionCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetFullDescriptionCore(); + } + + return this->shim().GetFullDescriptionCore(); + } + auto GetDescribedByCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetDescribedByCore(); + } + + return this->shim().GetDescribedByCore(); + } + auto GetFlowsToCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetFlowsToCore(); + } + + return this->shim().GetFlowsToCore(); + } + auto GetFlowsFromCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetFlowsFromCore(); + } + + return this->shim().GetFlowsFromCore(); + } + auto GetCultureCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetCultureCore(); + } + + return this->shim().GetCultureCore(); + } + auto GetHeadingLevelCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetHeadingLevelCore(); + } + + return this->shim().GetHeadingLevelCore(); + } + auto IsDialogCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.IsDialogCore(); + } + + return this->shim().IsDialogCore(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverrides> { + auto OnCreateItemAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnCreateItemAutomationPeer(item); + } + + return this->shim().OnCreateItemAutomationPeer(item); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Automation::Peers { + inline AnimatedVisualPlayerAutomationPeer::AnimatedVisualPlayerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::AnimatedVisualPlayer const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IAnimatedVisualPlayerAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline AppBarAutomationPeer::AppBarAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::AppBar const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IAppBarAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline AppBarButtonAutomationPeer::AppBarButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::AppBarButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IAppBarButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline AppBarToggleButtonAutomationPeer::AppBarToggleButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::AppBarToggleButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IAppBarToggleButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline AutoSuggestBoxAutomationPeer::AutoSuggestBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const& owner) + : AutoSuggestBoxAutomationPeer( + impl::call_factory( + [&](IAutoSuggestBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner); + })) {} + inline auto AutomationPeer::ListenerExists( + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationEvents const& + eventId) { + return impl::call_factory( + [&](IAutomationPeerStatics const& f) { + return f.ListenerExists(eventId); + }); + } + inline auto AutomationPeer::GenerateRawElementProviderRuntimeId() { + return impl::call_factory_cast( + [](IAutomationPeerStatics const& f) { + return f.GenerateRawElementProviderRuntimeId(); + }); + } + inline AutomationPeerAnnotation::AutomationPeerAnnotation() + : AutomationPeerAnnotation( + impl::call_factory_cast< + AutomationPeerAnnotation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AutomationPeerAnnotation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline AutomationPeerAnnotation::AutomationPeerAnnotation( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& type) + : AutomationPeerAnnotation( + impl::call_factory( + [&](IAutomationPeerAnnotationFactory const& f) { + return f.CreateInstance(type); + })) {} + inline AutomationPeerAnnotation::AutomationPeerAnnotation( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& type, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer const& peer) + : AutomationPeerAnnotation( + impl::call_factory( + [&](IAutomationPeerAnnotationFactory const& f) { + return f.CreateWithPeerParameter(type, peer); + })) {} + inline auto AutomationPeerAnnotation::TypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPeerAnnotationStatics const&), + AutomationPeerAnnotation, IAutomationPeerAnnotationStatics>( + [](IAutomationPeerAnnotationStatics const& f) { + return f.TypeProperty(); + }); + } + inline auto AutomationPeerAnnotation::PeerProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPeerAnnotationStatics const&), + AutomationPeerAnnotation, IAutomationPeerAnnotationStatics>( + [](IAutomationPeerAnnotationStatics const& f) { + return f.PeerProperty(); + }); + } + inline BreadcrumbBarItemAutomationPeer::BreadcrumbBarItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::BreadcrumbBarItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IBreadcrumbBarItemAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ButtonAutomationPeer::ButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Button const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline CalendarDatePickerAutomationPeer::CalendarDatePickerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::CalendarDatePicker const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICalendarDatePickerAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline CheckBoxAutomationPeer::CheckBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::CheckBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICheckBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ColorPickerSliderAutomationPeer::ColorPickerSliderAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorPickerSlider const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IColorPickerSliderAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ColorSpectrumAutomationPeer::ColorSpectrumAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IColorSpectrumAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ComboBoxAutomationPeer::ComboBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IComboBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ComboBoxItemAutomationPeer::ComboBoxItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ComboBoxItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IComboBoxItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ComboBoxItemDataAutomationPeer::ComboBoxItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ComboBoxAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IComboBoxItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline DatePickerAutomationPeer::DatePickerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::DatePicker const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDatePickerAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline DropDownButtonAutomationPeer::DropDownButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::DropDownButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDropDownButtonAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ExpanderAutomationPeer::ExpanderAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Expander const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IExpanderAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline FlipViewAutomationPeer::FlipViewAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::FlipView const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFlipViewAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline FlipViewItemAutomationPeer::FlipViewItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::FlipViewItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFlipViewItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline FlipViewItemDataAutomationPeer::FlipViewItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FlipViewAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFlipViewItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline FlyoutPresenterAutomationPeer::FlyoutPresenterAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::FlyoutPresenter const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFlyoutPresenterAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline FrameworkElementAutomationPeer::FrameworkElementAutomationPeer( + winrt::Microsoft::UI::Xaml::FrameworkElement const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFrameworkElementAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline auto FrameworkElementAutomationPeer::FromElement( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IFrameworkElementAutomationPeerStatics const& f) { + return f.FromElement(element); + }); + } + inline auto FrameworkElementAutomationPeer::CreatePeerForElement( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IFrameworkElementAutomationPeerStatics const& f) { + return f.CreatePeerForElement(element); + }); + } + inline GridViewAutomationPeer::GridViewAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::GridView const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGridViewAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline GridViewHeaderItemAutomationPeer::GridViewHeaderItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::GridViewHeaderItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGridViewHeaderItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline GridViewItemAutomationPeer::GridViewItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::GridViewItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGridViewItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline GridViewItemDataAutomationPeer::GridViewItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + GridViewAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGridViewItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline GroupItemAutomationPeer::GroupItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::GroupItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGroupItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline HubAutomationPeer::HubAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Hub const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IHubAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline HubSectionAutomationPeer::HubSectionAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::HubSection const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IHubSectionAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline HyperlinkButtonAutomationPeer::HyperlinkButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::HyperlinkButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IHyperlinkButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ImageAutomationPeer::ImageAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Image const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IImageAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline InfoBarAutomationPeer::InfoBarAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::InfoBar const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IInfoBarAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ItemAutomationPeer::ItemAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline ItemContainerAutomationPeer::ItemContainerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ItemContainer const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IItemContainerAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ItemsControlAutomationPeer::ItemsControlAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ItemsControl const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IItemsControlAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ItemsViewAutomationPeer::ItemsViewAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ItemsView const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IItemsViewAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ListBoxAutomationPeer::ListBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ListBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ListBoxItemAutomationPeer::ListBoxItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ListBoxItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListBoxItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ListBoxItemDataAutomationPeer::ListBoxItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListBoxAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListBoxItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline ListViewAutomationPeer::ListViewAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ListView const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListViewAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ListViewBaseAutomationPeer::ListViewBaseAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListViewBaseAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ListViewHeaderItemAutomationPeer::ListViewHeaderItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ListViewHeaderItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListViewHeaderItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ListViewItemAutomationPeer::ListViewItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ListViewItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListViewItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ListViewItemDataAutomationPeer::ListViewItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListViewItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline MediaPlayerElementAutomationPeer::MediaPlayerElementAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::MediaPlayerElement const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMediaPlayerElementAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline MediaTransportControlsAutomationPeer:: + MediaTransportControlsAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::MediaTransportControls const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMediaTransportControlsAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline MenuBarAutomationPeer::MenuBarAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::MenuBar const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMenuBarAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline MenuBarItemAutomationPeer::MenuBarItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::MenuBarItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMenuBarItemAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline MenuFlyoutItemAutomationPeer::MenuFlyoutItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMenuFlyoutItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline MenuFlyoutPresenterAutomationPeer::MenuFlyoutPresenterAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutPresenter const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMenuFlyoutPresenterAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline NavigationViewAutomationPeer::NavigationViewAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::NavigationView const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](INavigationViewAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline NavigationViewItemAutomationPeer::NavigationViewItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::NavigationViewItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](INavigationViewItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline NumberBoxAutomationPeer::NumberBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::NumberBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](INumberBoxAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline PasswordBoxAutomationPeer::PasswordBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::PasswordBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPasswordBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline PersonPictureAutomationPeer::PersonPictureAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::PersonPicture const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPersonPictureAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline PipsPagerAutomationPeer::PipsPagerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::PipsPager const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPipsPagerAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline PivotAutomationPeer::PivotAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Pivot const& owner) + : PivotAutomationPeer(impl::call_factory( + [&](IPivotAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner); + })) {} + inline PivotItemAutomationPeer::PivotItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::PivotItem const& owner) + : PivotItemAutomationPeer( + impl::call_factory( + [&](IPivotItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner); + })) {} + inline PivotItemDataAutomationPeer::PivotItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers::PivotAutomationPeer const& + parent) + : PivotItemDataAutomationPeer( + impl::call_factory( + [&](IPivotItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent); + })) {} + inline ProgressBarAutomationPeer::ProgressBarAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ProgressBar const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IProgressBarAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ProgressRingAutomationPeer::ProgressRingAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ProgressRing const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IProgressRingAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline RadioButtonAutomationPeer::RadioButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::RadioButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRadioButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline RadioButtonsAutomationPeer::RadioButtonsAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::RadioButtons const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRadioButtonsAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline RangeBaseAutomationPeer::RangeBaseAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::RangeBase const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRangeBaseAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline RatingControlAutomationPeer::RatingControlAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::RatingControl const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRatingControlAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline RepeatButtonAutomationPeer::RepeatButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::RepeatButton const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRepeatButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline RepeaterAutomationPeer::RepeaterAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ItemsRepeater const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRepeaterAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline RichEditBoxAutomationPeer::RichEditBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::RichEditBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRichEditBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline RichTextBlockAutomationPeer::RichTextBlockAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::RichTextBlock const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRichTextBlockAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline RichTextBlockOverflowAutomationPeer:: + RichTextBlockOverflowAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRichTextBlockOverflowAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ScrollBarAutomationPeer::ScrollBarAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollBar const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IScrollBarAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ScrollPresenterAutomationPeer::ScrollPresenterAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IScrollPresenterAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ScrollViewerAutomationPeer::ScrollViewerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IScrollViewerAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline SelectorAutomationPeer::SelectorAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::Selector const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISelectorAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline SelectorBarItemAutomationPeer::SelectorBarItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISelectorBarItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline SelectorItemAutomationPeer::SelectorItemAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISelectorItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithParentAndItem(item, parent, baseInterface, + innerInterface); + }); + } + inline SemanticZoomAutomationPeer::SemanticZoomAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::SemanticZoom const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISemanticZoomAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline SliderAutomationPeer::SliderAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Slider const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](ISliderAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline SplitButtonAutomationPeer::SplitButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::SplitButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISplitButtonAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline TabViewAutomationPeer::TabViewAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TabView const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITabViewAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline TabViewItemAutomationPeer::TabViewItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TabViewItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITabViewItemAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline TeachingTipAutomationPeer::TeachingTipAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TeachingTip const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITeachingTipAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline TextBlockAutomationPeer::TextBlockAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TextBlock const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITextBlockAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline TextBoxAutomationPeer::TextBoxAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TextBox const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITextBoxAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ThumbAutomationPeer::ThumbAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::Thumb const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IThumbAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline TimePickerAutomationPeer::TimePickerAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TimePicker const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITimePickerAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ToggleButtonAutomationPeer::ToggleButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ToggleButton const& + owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IToggleButtonAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ToggleMenuFlyoutItemAutomationPeer::ToggleMenuFlyoutItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ToggleMenuFlyoutItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IToggleMenuFlyoutItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline ToggleSplitButtonAutomationPeer::ToggleSplitButtonAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ToggleSplitButton const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IToggleSplitButtonAutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + inline ToggleSwitchAutomationPeer::ToggleSwitchAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::ToggleSwitch const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IToggleSwitchAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline TreeViewItemAutomationPeer::TreeViewItemAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TreeViewItem const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITreeViewItemAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline TreeViewItemDataAutomationPeer::TreeViewItemDataAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + TreeViewListAutomationPeer const& parent) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITreeViewItemDataAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(item, parent, baseInterface, + innerInterface); + }); + } + inline TreeViewListAutomationPeer::TreeViewListAutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::TreeViewList const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITreeViewListAutomationPeerFactory const& f) { + return f.CreateInstanceWithOwner(owner, baseInterface, + innerInterface); + }); + } + inline WebView2AutomationPeer::WebView2AutomationPeer( + winrt::Microsoft::UI::Xaml::Controls::WebView2 const& owner) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IWebView2AutomationPeerFactory const& f) { + return f.CreateInstance(owner, baseInterface, innerInterface); + }); + } + template + auto IAutomationPeerOverridesT::GetPatternCore( + winrt::Microsoft::UI::Xaml::Automation::Peers::PatternInterface const& + patternInterface) const { + return shim().template try_as().GetPatternCore( + patternInterface); + } + template + auto IAutomationPeerOverridesT::GetAcceleratorKeyCore() const { + return shim() + .template try_as() + .GetAcceleratorKeyCore(); + } + template + auto IAutomationPeerOverridesT::GetAccessKeyCore() const { + return shim() + .template try_as() + .GetAccessKeyCore(); + } + template + auto IAutomationPeerOverridesT::GetAutomationControlTypeCore() const { + return shim() + .template try_as() + .GetAutomationControlTypeCore(); + } + template + auto IAutomationPeerOverridesT::GetAutomationIdCore() const { + return shim() + .template try_as() + .GetAutomationIdCore(); + } + template + auto IAutomationPeerOverridesT::GetBoundingRectangleCore() const { + return shim() + .template try_as() + .GetBoundingRectangleCore(); + } + template + auto IAutomationPeerOverridesT::GetChildrenCore() const { + return shim().template try_as().GetChildrenCore(); + } + template + auto IAutomationPeerOverridesT::NavigateCore( + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNavigationDirection const& direction) const { + return shim().template try_as().NavigateCore( + direction); + } + template + auto IAutomationPeerOverridesT::GetClassNameCore() const { + return shim() + .template try_as() + .GetClassNameCore(); + } + template + auto IAutomationPeerOverridesT::GetClickablePointCore() const { + return shim() + .template try_as() + .GetClickablePointCore(); + } + template + auto IAutomationPeerOverridesT::GetHelpTextCore() const { + return shim().template try_as().GetHelpTextCore(); + } + template + auto IAutomationPeerOverridesT::GetItemStatusCore() const { + return shim() + .template try_as() + .GetItemStatusCore(); + } + template + auto IAutomationPeerOverridesT::GetItemTypeCore() const { + return shim().template try_as().GetItemTypeCore(); + } + template + auto IAutomationPeerOverridesT::GetLabeledByCore() const { + return shim() + .template try_as() + .GetLabeledByCore(); + } + template + auto IAutomationPeerOverridesT::GetLocalizedControlTypeCore() const { + return shim() + .template try_as() + .GetLocalizedControlTypeCore(); + } + template + auto IAutomationPeerOverridesT::GetNameCore() const { + return shim().template try_as().GetNameCore(); + } + template + auto IAutomationPeerOverridesT::GetOrientationCore() const { + return shim() + .template try_as() + .GetOrientationCore(); + } + template + auto IAutomationPeerOverridesT::HasKeyboardFocusCore() const { + return shim() + .template try_as() + .HasKeyboardFocusCore(); + } + template + auto IAutomationPeerOverridesT::IsContentElementCore() const { + return shim() + .template try_as() + .IsContentElementCore(); + } + template + auto IAutomationPeerOverridesT::IsControlElementCore() const { + return shim() + .template try_as() + .IsControlElementCore(); + } + template + auto IAutomationPeerOverridesT::IsEnabledCore() const { + return shim().template try_as().IsEnabledCore(); + } + template + auto IAutomationPeerOverridesT::IsKeyboardFocusableCore() const { + return shim() + .template try_as() + .IsKeyboardFocusableCore(); + } + template + auto IAutomationPeerOverridesT::IsOffscreenCore() const { + return shim().template try_as().IsOffscreenCore(); + } + template + auto IAutomationPeerOverridesT::IsPasswordCore() const { + return shim().template try_as().IsPasswordCore(); + } + template + auto IAutomationPeerOverridesT::IsRequiredForFormCore() const { + return shim() + .template try_as() + .IsRequiredForFormCore(); + } + template + auto IAutomationPeerOverridesT::SetFocusCore() const { + return shim().template try_as().SetFocusCore(); + } + template + auto IAutomationPeerOverridesT::GetPeerFromPointCore( + winrt::Windows::Foundation::Point const& point) const { + return shim() + .template try_as() + .GetPeerFromPointCore(point); + } + template + auto IAutomationPeerOverridesT::GetElementFromPointCore( + winrt::Windows::Foundation::Point const& pointInWindowCoordinates) const { + return shim() + .template try_as() + .GetElementFromPointCore(pointInWindowCoordinates); + } + template + auto IAutomationPeerOverridesT::GetFocusedElementCore() const { + return shim() + .template try_as() + .GetFocusedElementCore(); + } + template + auto IAutomationPeerOverridesT::GetLiveSettingCore() const { + return shim() + .template try_as() + .GetLiveSettingCore(); + } + template + auto IAutomationPeerOverridesT::ShowContextMenuCore() const { + return shim() + .template try_as() + .ShowContextMenuCore(); + } + template + auto IAutomationPeerOverridesT::GetControlledPeersCore() const { + return shim() + .template try_as() + .GetControlledPeersCore(); + } + template + auto IAutomationPeerOverridesT::GetAnnotationsCore() const { + return shim() + .template try_as() + .GetAnnotationsCore(); + } + template + auto IAutomationPeerOverridesT::GetPositionInSetCore() const { + return shim() + .template try_as() + .GetPositionInSetCore(); + } + template + auto IAutomationPeerOverridesT::GetSizeOfSetCore() const { + return shim() + .template try_as() + .GetSizeOfSetCore(); + } + template + auto IAutomationPeerOverridesT::GetLevelCore() const { + return shim().template try_as().GetLevelCore(); + } + template + auto IAutomationPeerOverridesT::GetLandmarkTypeCore() const { + return shim() + .template try_as() + .GetLandmarkTypeCore(); + } + template + auto IAutomationPeerOverridesT::GetLocalizedLandmarkTypeCore() const { + return shim() + .template try_as() + .GetLocalizedLandmarkTypeCore(); + } + template + auto IAutomationPeerOverridesT::IsPeripheralCore() const { + return shim() + .template try_as() + .IsPeripheralCore(); + } + template + auto IAutomationPeerOverridesT::IsDataValidForFormCore() const { + return shim() + .template try_as() + .IsDataValidForFormCore(); + } + template + auto IAutomationPeerOverridesT::GetFullDescriptionCore() const { + return shim() + .template try_as() + .GetFullDescriptionCore(); + } + template + auto IAutomationPeerOverridesT::GetDescribedByCore() const { + return shim() + .template try_as() + .GetDescribedByCore(); + } + template + auto IAutomationPeerOverridesT::GetFlowsToCore() const { + return shim().template try_as().GetFlowsToCore(); + } + template + auto IAutomationPeerOverridesT::GetFlowsFromCore() const { + return shim() + .template try_as() + .GetFlowsFromCore(); + } + template + auto IAutomationPeerOverridesT::GetCultureCore() const { + return shim().template try_as().GetCultureCore(); + } + template + auto IAutomationPeerOverridesT::GetHeadingLevelCore() const { + return shim() + .template try_as() + .GetHeadingLevelCore(); + } + template + auto IAutomationPeerOverridesT::IsDialogCore() const { + return shim().template try_as().IsDialogCore(); + } + template + auto IItemsControlAutomationPeerOverridesT::OnCreateItemAutomationPeer( + winrt::Windows::Foundation::IInspectable const& item) const { + return shim() + .template try_as() + .OnCreateItemAutomationPeer(item); + } + template + struct AnimatedVisualPlayerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAnimatedVisualPlayerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, AnimatedVisualPlayerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = AnimatedVisualPlayerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + AnimatedVisualPlayerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::AnimatedVisualPlayer const& + owner) { + impl::call_factory( + [&](IAnimatedVisualPlayerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct AppBarAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAppBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, AppBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = AppBarAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + AppBarAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::AppBar const& owner) { + impl::call_factory( + [&](IAppBarAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct AppBarButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAppBarButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, AppBarButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = AppBarButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + AppBarButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::AppBarButton const& owner) { + impl::call_factory( + [&](IAppBarButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct AppBarToggleButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAppBarToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, AppBarToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = AppBarToggleButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + AppBarToggleButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::AppBarToggleButton const& owner) { + impl::call_factory( + [&](IAppBarToggleButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct AutomationPeerT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = AutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + AutomationPeerT() { + impl::call_factory( + [&](IAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct BreadcrumbBarItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IBreadcrumbBarItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, BreadcrumbBarItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = BreadcrumbBarItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + BreadcrumbBarItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::BreadcrumbBarItem const& owner) { + impl::call_factory( + [&](IBreadcrumbBarItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Button const& owner) { + impl::call_factory( + [&](IButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ButtonBaseAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ButtonBaseAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ButtonBaseAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ButtonBase const& + owner) { + impl::call_factory( + [&](IButtonBaseAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct CalendarDatePickerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ICalendarDatePickerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, CalendarDatePickerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = CalendarDatePickerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + CalendarDatePickerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::CalendarDatePicker const& owner) { + impl::call_factory( + [&](ICalendarDatePickerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct CheckBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ICheckBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, CheckBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = CheckBoxAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + CheckBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::CheckBox const& owner) { + impl::call_factory( + [&](ICheckBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ColorPickerSliderAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IColorPickerSliderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISliderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRangeValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ColorPickerSliderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::SliderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + RangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ColorPickerSliderAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ColorPickerSliderAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ColorPickerSlider const& owner) { + impl::call_factory( + [&](IColorPickerSliderAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct ColorSpectrumAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IColorSpectrumAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ColorSpectrumAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ColorSpectrumAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ColorSpectrumAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum const& + owner) { + impl::call_factory( + [&](IColorSpectrumAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ComboBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IComboBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ComboBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ComboBoxAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ComboBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& owner) { + impl::call_factory( + [&](IComboBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct ComboBoxItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IComboBoxItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ComboBoxItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ComboBoxItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ComboBoxItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ComboBoxItem const& owner) { + impl::call_factory( + [&](IComboBoxItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ComboBoxItemDataAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IComboBoxItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IScrollItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ComboBoxItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ComboBoxItemDataAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ComboBoxItemDataAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ComboBoxAutomationPeer const& parent) { + impl::call_factory( + [&](IComboBoxItemDataAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct DatePickerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IDatePickerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, DatePickerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = DatePickerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + DatePickerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::DatePicker const& owner) { + impl::call_factory( + [&](IDatePickerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct DropDownButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IDropDownButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, DropDownButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = DropDownButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + DropDownButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::DropDownButton const& owner) { + impl::call_factory( + [&](IDropDownButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ExpanderAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IExpanderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ExpanderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ExpanderAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ExpanderAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Expander const& owner) { + impl::call_factory( + [&](IExpanderAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct FlipViewAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFlipViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, FlipViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = FlipViewAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + FlipViewAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::FlipView const& owner) { + impl::call_factory( + [&](IFlipViewAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct FlipViewItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFlipViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, FlipViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = FlipViewItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + FlipViewItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::FlipViewItem const& owner) { + impl::call_factory( + [&](IFlipViewItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct FlipViewItemDataAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFlipViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IScrollItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, FlipViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = FlipViewItemDataAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + FlipViewItemDataAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FlipViewAutomationPeer const& parent) { + impl::call_factory( + [&](IFlipViewItemDataAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct FlyoutPresenterAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFlyoutPresenterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, FlyoutPresenterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = FlyoutPresenterAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + FlyoutPresenterAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::FlyoutPresenter const& owner) { + impl::call_factory( + [&](IFlyoutPresenterAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct FrameworkElementAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = FrameworkElementAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + FrameworkElementAutomationPeerT( + winrt::Microsoft::UI::Xaml::FrameworkElement const& owner) { + impl::call_factory( + [&](IFrameworkElementAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct GridViewAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGridViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IDropTargetProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, GridViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = GridViewAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + GridViewAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::GridView const& owner) { + impl::call_factory( + [&](IGridViewAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct GridViewHeaderItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGridViewHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, GridViewHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = GridViewHeaderItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + GridViewHeaderItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::GridViewHeaderItem const& owner) { + impl::call_factory( + [&](IGridViewHeaderItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct GridViewItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGridViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, GridViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = GridViewItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + GridViewItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::GridViewItem const& owner) { + impl::call_factory( + [&](IGridViewItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct GridViewItemDataAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGridViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IScrollItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, GridViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = GridViewItemDataAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + GridViewItemDataAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + GridViewAutomationPeer const& parent) { + impl::call_factory( + [&](IGridViewItemDataAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct GroupItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IGroupItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, GroupItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = GroupItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + GroupItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::GroupItem const& owner) { + impl::call_factory( + [&](IGroupItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct HubAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IHubAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, HubAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = HubAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + HubAutomationPeerT(winrt::Microsoft::UI::Xaml::Controls::Hub const& owner) { + impl::call_factory( + [&](IHubAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct HubSectionAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IHubSectionAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IScrollItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, HubSectionAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = HubSectionAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + HubSectionAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::HubSection const& owner) { + impl::call_factory( + [&](IHubSectionAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct HyperlinkButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IHyperlinkButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, HyperlinkButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = HyperlinkButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + HyperlinkButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::HyperlinkButton const& owner) { + impl::call_factory( + [&](IHyperlinkButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ImageAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IImageAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ImageAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ImageAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ImageAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Image const& owner) { + impl::call_factory( + [&](IImageAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct InfoBarAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IInfoBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, InfoBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = InfoBarAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + InfoBarAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::InfoBar const& owner) { + impl::call_factory( + [&](IInfoBarAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ItemAutomationPeerT(winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer const& parent) { + impl::call_factory( + [&](IItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct ItemContainerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemContainerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ItemContainerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ItemContainerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ItemContainerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ItemContainer const& owner) { + impl::call_factory( + [&](IItemContainerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ItemsControlAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ItemsControlAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ItemsControlAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ItemsControl const& owner) { + impl::call_factory( + [&](IItemsControlAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ItemsViewAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ItemsViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ItemsViewAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ItemsViewAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ItemsView const& owner) { + impl::call_factory( + [&](IItemsViewAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ListBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListBoxAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListBox const& owner) { + impl::call_factory( + [&](IListBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListBoxItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListBoxItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListBoxItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListBoxItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListBoxItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListBoxItem const& owner) { + impl::call_factory( + [&](IListBoxItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListBoxItemDataAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListBoxItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IScrollItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListBoxItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListBoxItemDataAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListBoxItemDataAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListBoxAutomationPeer const& parent) { + impl::call_factory( + [&](IListBoxItemDataAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct ListViewAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IDropTargetProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListViewAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListView const& owner) { + impl::call_factory( + [&](IListViewAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListViewBaseAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IDropTargetProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListViewBaseAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewBaseAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& owner) { + impl::call_factory( + [&](IListViewBaseAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListViewBaseHeaderItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListViewBaseHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListViewBaseHeaderItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewBaseHeaderItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListViewBaseHeaderItem const& + owner) { + impl::call_factory( + [&](IListViewBaseHeaderItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListViewHeaderItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListViewHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseHeaderItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListViewHeaderItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewHeaderItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListViewHeaderItem const& owner) { + impl::call_factory( + [&](IListViewHeaderItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListViewItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListViewItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ListViewItem const& owner) { + impl::call_factory( + [&](IListViewItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ListViewItemDataAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IScrollItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ListViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ListViewItemDataAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewItemDataAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer const& parent) { + impl::call_factory( + [&](IListViewItemDataAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct MediaPlayerElementAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMediaPlayerElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, MediaPlayerElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = MediaPlayerElementAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MediaPlayerElementAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::MediaPlayerElement const& owner) { + impl::call_factory( + [&](IMediaPlayerElementAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct MediaTransportControlsAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMediaTransportControlsAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, MediaTransportControlsAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = MediaTransportControlsAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MediaTransportControlsAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::MediaTransportControls const& + owner) { + impl::call_factory( + [&](IMediaTransportControlsAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct MenuBarAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMenuBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, MenuBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = MenuBarAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MenuBarAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::MenuBar const& owner) { + impl::call_factory( + [&](IMenuBarAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct MenuBarItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMenuBarItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, MenuBarItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = MenuBarItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MenuBarItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::MenuBarItem const& owner) { + impl::call_factory( + [&](IMenuBarItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct MenuFlyoutItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMenuFlyoutItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, MenuFlyoutItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = MenuFlyoutItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MenuFlyoutItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutItem const& owner) { + impl::call_factory( + [&](IMenuFlyoutItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct MenuFlyoutPresenterAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IMenuFlyoutPresenterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, MenuFlyoutPresenterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = MenuFlyoutPresenterAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MenuFlyoutPresenterAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutPresenter const& + owner) { + impl::call_factory( + [&](IMenuFlyoutPresenterAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct NavigationViewAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + INavigationViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, NavigationViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = NavigationViewAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + NavigationViewAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::NavigationView const& owner) { + impl::call_factory( + [&](INavigationViewAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct NavigationViewItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + INavigationViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, NavigationViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = NavigationViewItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + NavigationViewItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::NavigationViewItem const& owner) { + impl::call_factory( + [&](INavigationViewItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct NumberBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + INumberBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, NumberBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = NumberBoxAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + NumberBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::NumberBox const& owner) { + impl::call_factory( + [&](INumberBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct PasswordBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IPasswordBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, PasswordBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = PasswordBoxAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + PasswordBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::PasswordBox const& owner) { + impl::call_factory( + [&](IPasswordBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct PersonPictureAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IPersonPictureAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, PersonPictureAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = PersonPictureAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + PersonPictureAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::PersonPicture const& owner) { + impl::call_factory( + [&](IPersonPictureAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct PipsPagerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IPipsPagerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, PipsPagerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = PipsPagerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + PipsPagerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::PipsPager const& owner) { + impl::call_factory( + [&](IPipsPagerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ProgressBarAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IProgressBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRangeValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ProgressBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + RangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ProgressBarAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ProgressBarAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ProgressBar const& owner) { + impl::call_factory( + [&](IProgressBarAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct ProgressRingAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IProgressRingAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRangeValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ProgressRingAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ProgressRingAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ProgressRingAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ProgressRing const& owner) { + impl::call_factory( + [&](IProgressRingAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct RadioButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRadioButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RadioButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RadioButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RadioButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::RadioButton const& owner) { + impl::call_factory( + [&](IRadioButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct RadioButtonsAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRadioButtonsAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RadioButtonsAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RadioButtonsAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RadioButtonsAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::RadioButtons const& owner) { + impl::call_factory( + [&](IRadioButtonsAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct RangeBaseAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRangeValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RangeBaseAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RangeBaseAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::RangeBase const& + owner) { + impl::call_factory( + [&](IRangeBaseAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct RatingControlAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRatingControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RatingControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RatingControlAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RatingControlAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::RatingControl const& owner) { + impl::call_factory( + [&](IRatingControlAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct RepeatButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRepeatButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RepeatButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RepeatButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RepeatButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::RepeatButton const& + owner) { + impl::call_factory( + [&](IRepeatButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct RepeaterAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRepeaterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RepeaterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RepeaterAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RepeaterAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ItemsRepeater const& owner) { + impl::call_factory( + [&](IRepeaterAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct RichEditBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRichEditBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RichEditBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RichEditBoxAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RichEditBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::RichEditBox const& owner) { + impl::call_factory( + [&](IRichEditBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct RichTextBlockAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRichTextBlockAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RichTextBlockAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RichTextBlockAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RichTextBlockAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::RichTextBlock const& owner) { + impl::call_factory( + [&](IRichTextBlockAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct RichTextBlockOverflowAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRichTextBlockOverflowAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, RichTextBlockOverflowAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = RichTextBlockOverflowAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RichTextBlockOverflowAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow const& + owner) { + impl::call_factory( + [&](IRichTextBlockOverflowAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ScrollBarAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IScrollBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRangeValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ScrollBarAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + RangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ScrollBarAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ScrollBarAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollBar const& + owner) { + impl::call_factory( + [&](IScrollBarAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct ScrollPresenterAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IScrollPresenterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ScrollPresenterAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ScrollPresenterAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ScrollPresenterAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter const& + owner) { + impl::call_factory( + [&](IScrollPresenterAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ScrollViewerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IScrollViewerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ScrollViewerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ScrollViewerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ScrollViewerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const& owner) { + impl::call_factory( + [&](IScrollViewerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct SelectorAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = SelectorAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SelectorAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::Selector const& + owner) { + impl::call_factory( + [&](ISelectorAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct SelectorBarItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorBarItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemContainerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, SelectorBarItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemContainerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = SelectorBarItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SelectorBarItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem const& owner) { + impl::call_factory( + [&](ISelectorBarItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct SelectorItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, SelectorItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = SelectorItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SelectorItemAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer const& parent) { + impl::call_factory( + [&](ISelectorItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithParentAndItem(item, parent, *this, + this->m_inner); + }); + } + }; + template + struct SemanticZoomAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISemanticZoomAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, SemanticZoomAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = SemanticZoomAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SemanticZoomAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::SemanticZoom const& owner) { + impl::call_factory( + [&](ISemanticZoomAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct SliderAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISliderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IRangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRangeValueProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, SliderAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + RangeBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = SliderAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SliderAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Slider const& owner) { + impl::call_factory( + [&](ISliderAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + using impl::consume_t::SetValue; + using impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>::SetValue; + }; + template + struct SplitButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISplitButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, SplitButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = SplitButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SplitButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::SplitButton const& owner) { + impl::call_factory( + [&](ISplitButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct TabViewAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITabViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TabViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TabViewAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TabViewAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TabView const& owner) { + impl::call_factory( + [&](ITabViewAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct TabViewItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITabViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TabViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TabViewItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TabViewItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TabViewItem const& owner) { + impl::call_factory( + [&](ITabViewItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct TeachingTipAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITeachingTipAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TeachingTipAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TeachingTipAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TeachingTipAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TeachingTip const& owner) { + impl::call_factory( + [&](ITeachingTipAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct TextBlockAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITextBlockAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TextBlockAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TextBlockAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TextBlockAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TextBlock const& owner) { + impl::call_factory( + [&](ITextBlockAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct TextBoxAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITextBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TextBoxAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TextBoxAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TextBoxAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TextBox const& owner) { + impl::call_factory( + [&](ITextBoxAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ThumbAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers::IThumbAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ThumbAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ThumbAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ThumbAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::Thumb const& owner) { + impl::call_factory( + [&](IThumbAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct TimePickerAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITimePickerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TimePickerAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TimePickerAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TimePickerAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TimePicker const& owner) { + impl::call_factory( + [&](ITimePickerAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ToggleButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ToggleButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ButtonBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ToggleButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ToggleButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ToggleButton const& + owner) { + impl::call_factory( + [&](IToggleButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ToggleMenuFlyoutItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleMenuFlyoutItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ToggleMenuFlyoutItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ToggleMenuFlyoutItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ToggleMenuFlyoutItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ToggleMenuFlyoutItem const& + owner) { + impl::call_factory( + [&](IToggleMenuFlyoutItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct ToggleSplitButtonAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleSplitButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ToggleSplitButtonAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ToggleSplitButtonAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ToggleSplitButtonAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ToggleSplitButton const& owner) { + impl::call_factory( + [&](IToggleSplitButtonAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; + template + struct ToggleSwitchAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IToggleSwitchAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, ToggleSwitchAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = ToggleSwitchAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ToggleSwitchAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::ToggleSwitch const& owner) { + impl::call_factory( + [&](IToggleSwitchAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct TreeViewItemAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITreeViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TreeViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TreeViewItemAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TreeViewItemAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TreeViewItem const& owner) { + impl::call_factory( + [&](ITreeViewItemAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct TreeViewItemDataAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITreeViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IExpandCollapseProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IVirtualizedItemProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TreeViewItemDataAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TreeViewItemDataAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TreeViewItemDataAutomationPeerT( + winrt::Windows::Foundation::IInspectable const& item, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + TreeViewListAutomationPeer const& parent) { + impl::call_factory( + [&](ITreeViewItemDataAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(item, parent, *this, this->m_inner); + }); + } + }; + template + struct TreeViewListAutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ITreeViewListAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IDropTargetProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ISelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ISelectionProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IItemContainerProvider, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, TreeViewListAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ListViewBaseAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + SelectorAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + ItemsControlAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IItemsControlAutomationPeerOverridesT, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = TreeViewListAutomationPeer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TreeViewListAutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::TreeViewList const& owner) { + impl::call_factory( + [&](ITreeViewListAutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithOwner(owner, *this, this->m_inner); + }); + } + }; + template + struct WebView2AutomationPeerT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IWebView2AutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IFrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeer, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base< + D, WebView2AutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + FrameworkElementAutomationPeer, + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer, + winrt::Microsoft::UI::Xaml::DependencyObject>, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + IAutomationPeerOverridesT { + using composable = WebView2AutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + WebView2AutomationPeerT( + winrt::Microsoft::UI::Xaml::Controls::WebView2 const& owner) { + impl::call_factory( + [&](IWebView2AutomationPeerFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(owner, *this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAppBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAppBarAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAppBarButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerAnnotation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverrides> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerProtected> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerStatics> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IButtonAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IButtonBaseAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ICheckBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IColorSpectrumAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IComboBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IComboBoxItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IDatePickerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IExpanderAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IFlipViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IFlipViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IGridViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IGridViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IGroupItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IHubAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IHubSectionAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IImageAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IInfoBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemContainerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemsControlAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IItemsViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IListBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IListBoxItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IListViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IListViewBaseAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IListViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IMenuBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IMenuBarItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::INumberBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IPasswordBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IPersonPictureAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IPipsPagerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IPivotItemDataAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IProgressBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IProgressRingAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRadioButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRadioButtonsAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRangeBaseAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRatingControlAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRepeatButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRepeaterAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRichEditBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IRichTextBlockAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IScrollBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IScrollViewerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ISelectorAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ISelectorItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ISemanticZoomAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ISliderAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ISliderAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ISplitButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITabViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITabViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITeachingTipAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITextBlockAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITextBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IThumbAutomationPeerFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITimePickerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IToggleButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IToggleSwitchAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITreeViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ITreeViewListAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::IWebView2AutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::AppBarButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutoSuggestBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeerAnnotation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ButtonBaseAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::CheckBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ColorSpectrumAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ComboBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ComboBoxItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::DatePickerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::DropDownButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ExpanderAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::FlipViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::FlipViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::GridViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::GridViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::GroupItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::HubSectionAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::InfoBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemContainerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemsControlAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ItemsViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListBoxItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListViewBaseAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ListViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::MenuBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::MenuBarItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::MenuFlyoutItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::NavigationViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::NumberBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::PasswordBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::PersonPictureAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::PipsPagerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::PivotItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::PivotItemDataAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ProgressBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ProgressRingAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RadioButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RadioButtonsAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RangeBaseAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RatingControlAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RepeatButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RepeaterAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RichEditBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::RichTextBlockAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ScrollBarAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ScrollViewerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::SelectorAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::SelectorItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::SemanticZoomAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::SplitButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TabViewAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TabViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TeachingTipAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TextBlockAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TextBoxAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TimePickerAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ToggleButtonAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::ToggleSwitchAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TreeViewItemAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::TreeViewListAutomationPeer> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Peers::WebView2AutomationPeer> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Provider.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Provider.h new file mode 100644 index 00000000..556287b3 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Provider.h @@ -0,0 +1,4722 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Automation_Provider_H +#define WINRT_Microsoft_UI_Xaml_Automation_Provider_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Automation.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Provider.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Text.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.UI.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IAnnotationProvider< + D>::AnnotationTypeId() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationTypeId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationTypeId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IAnnotationProvider< + D>::AnnotationTypeName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationTypeName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationTypeName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IAnnotationProvider< + D>::Author() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Author(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Author(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IAnnotationProvider< + D>::DateTime() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateTime(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateTime(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IAnnotationProvider< + D>::Target() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Target(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ICustomNavigationProvider< + D>::NavigateCustom(winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationNavigationDirection const& direction) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateCustom( + static_cast(direction), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateCustom( + static_cast(direction), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDockProvider< + D>::DockPosition() const { + winrt::Microsoft::UI::Xaml::Automation::DockPosition value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDockProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DockPosition(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DockPosition(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDockProvider:: + SetDockPosition(winrt::Microsoft::UI::Xaml::Automation::DockPosition const& + dockPosition) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDockProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetDockPosition(static_cast(dockPosition))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetDockPosition(static_cast(dockPosition))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDragProvider::IsGrabbed() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDragProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGrabbed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGrabbed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDragProvider< + D>::DropEffect() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDragProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEffect(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEffect(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDragProvider< + D>::DropEffects() const { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDragProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEffects(&value_impl_size, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEffects(&value_impl_size, &value)); + } + return com_array{value, value_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDragProvider< + D>::GetGrabbedItems() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDragProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetGrabbedItems(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetGrabbedItems(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDropTargetProvider< + D>::DropEffect() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDropTargetProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEffect(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEffect(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IDropTargetProvider< + D>::DropEffects() const { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDropTargetProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEffects(&value_impl_size, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEffects(&value_impl_size, &value)); + } + return com_array{value, value_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IExpandCollapseProvider< + D>::ExpandCollapseState() const { + winrt::Microsoft::UI::Xaml::Automation::ExpandCollapseState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandCollapseState( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandCollapseState( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IExpandCollapseProvider< + D>::Collapse() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Collapse()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Collapse()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IExpandCollapseProvider< + D>::Expand() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Expand()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Expand()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridItemProvider< + D>::Column() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Column(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Column(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridItemProvider< + D>::ColumnSpan() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpan(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpan(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridItemProvider< + D>::ContainingGrid() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainingGrid(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainingGrid(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridItemProvider::Row() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Row(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Row(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridItemProvider< + D>::RowSpan() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpan(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpan(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridProvider< + D>::ColumnCount() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridProvider::RowCount() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IGridProvider::GetItem( + int32_t row, int32_t column) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItem(row, column, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItem(row, column, &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IInvokeProvider::Invoke() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Invoke()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Invoke()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IItemContainerProvider:: + FindItemByProperty( + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple const& startAfter, + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty const& + automationProperty, + winrt::Windows::Foundation::IInspectable const& value) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindItemByProperty( + *(void**)(&startAfter), *(void**)(&automationProperty), + *(void**)(&value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindItemByProperty( + *(void**)(&startAfter), *(void**)(&automationProperty), + *(void**)(&value), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IMultipleViewProvider< + D>::CurrentView() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IMultipleViewProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentView(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentView(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IMultipleViewProvider< + D>::GetSupportedViews() const { + uint32_t result_impl_size{}; + int32_t* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IMultipleViewProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetSupportedViews(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetSupportedViews(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IMultipleViewProvider< + D>::GetViewName(int32_t viewId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IMultipleViewProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetViewName(viewId, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetViewName(viewId, &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IMultipleViewProvider< + D>::SetCurrentView(int32_t viewId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IMultipleViewProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetCurrentView(viewId)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetCurrentView(viewId)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IObjectModelProvider< + D>::GetUnderlyingObjectModel() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IObjectModelProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetUnderlyingObjectModel(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetUnderlyingObjectModel(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::IsReadOnly() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::LargeChange() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LargeChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LargeChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::Maximum() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::Minimum() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::SmallChange() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::Value() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IRangeValueProvider< + D>::SetValue(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetValue(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetValue(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollItemProvider< + D>::ScrollIntoView() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollIntoView()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollIntoView()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::HorizontallyScrollable() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontallyScrollable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontallyScrollable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::HorizontalScrollPercent() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollPercent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollPercent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::HorizontalViewSize() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalViewSize(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalViewSize(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::VerticallyScrollable() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticallyScrollable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticallyScrollable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::VerticalScrollPercent() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollPercent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollPercent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::VerticalViewSize() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalViewSize(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalViewSize(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider::Scroll( + winrt::Microsoft::UI::Xaml::Automation::ScrollAmount const& + horizontalAmount, + winrt::Microsoft::UI::Xaml::Automation::ScrollAmount const& verticalAmount) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Scroll(static_cast(horizontalAmount), + static_cast(verticalAmount))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Scroll(static_cast(horizontalAmount), + static_cast(verticalAmount))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IScrollProvider< + D>::SetScrollPercent(double horizontalPercent, + double verticalPercent) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetScrollPercent(horizontalPercent, verticalPercent)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetScrollPercent(horizontalPercent, verticalPercent)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionItemProvider< + D>::IsSelected() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionItemProvider< + D>::SelectionContainer() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionContainer(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionItemProvider< + D>::AddToSelection() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddToSelection()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddToSelection()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionItemProvider< + D>::RemoveFromSelection() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveFromSelection()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveFromSelection()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionItemProvider< + D>::Select() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Select()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Select()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionProvider< + D>::CanSelectMultiple() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanSelectMultiple(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanSelectMultiple(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionProvider< + D>::IsSelectionRequired() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectionRequired(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectionRequired(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISelectionProvider< + D>::GetSelection() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSelection(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSelection(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISpreadsheetItemProvider< + D>::Formula() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Formula(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Formula(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISpreadsheetItemProvider< + D>::GetAnnotationObjects() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAnnotationObjects(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAnnotationObjects(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISpreadsheetItemProvider< + D>::GetAnnotationTypes() const { + uint32_t result_impl_size{}; + int32_t* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAnnotationTypes(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAnnotationTypes(&result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISpreadsheetProvider< + D>::GetItemByName(param::hstring const& name) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISpreadsheetProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemByName(*(void**)(&name), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemByName(*(void**)(&name), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider< + D>::ExtendedProperties() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtendedProperties(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtendedProperties(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider< + D>::FillColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider< + D>::FillPatternColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillPatternColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillPatternColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider< + D>::FillPatternStyle() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillPatternStyle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillPatternStyle(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider::Shape() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Shape(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Shape(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider::StyleId() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IStylesProvider< + D>::StyleName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISynchronizedInputProvider< + D>::Cancel() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Cancel()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Cancel()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ISynchronizedInputProvider< + D>::StartListening(winrt::Microsoft::UI::Xaml::Automation:: + SynchronizedInputType const& inputType) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->StartListening(static_cast(inputType))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->StartListening(static_cast(inputType))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITableItemProvider< + D>::GetColumnHeaderItems() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITableItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetColumnHeaderItems(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetColumnHeaderItems(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITableItemProvider< + D>::GetRowHeaderItems() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITableItemProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetRowHeaderItems(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetRowHeaderItems(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITableProvider< + D>::RowOrColumnMajor() const { + winrt::Microsoft::UI::Xaml::Automation::RowOrColumnMajor value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITableProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowOrColumnMajor( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowOrColumnMajor( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITableProvider< + D>::GetColumnHeaders() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITableProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetColumnHeaders(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetColumnHeaders(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITableProvider< + D>::GetRowHeaders() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITableProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRowHeaders(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRowHeaders(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextChildProvider< + D>::TextContainer() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextChildProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextContainer(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextChildProvider< + D>::TextRange() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextChildProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextRange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextRange(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextEditProvider< + D>::GetActiveComposition() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextEditProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetActiveComposition(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetActiveComposition(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextEditProvider< + D>::GetConversionTarget() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextEditProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetConversionTarget(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetConversionTarget(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider< + D>::DocumentRange() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DocumentRange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DocumentRange(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider< + D>::SupportedTextSelection() const { + winrt::Microsoft::UI::Xaml::Automation::SupportedTextSelection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SupportedTextSelection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SupportedTextSelection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider< + D>::GetSelection() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSelection(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSelection(&result_impl_size, &result)); + } + return com_array< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider< + D>::GetVisibleRanges() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetVisibleRanges(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetVisibleRanges(&result_impl_size, &result)); + } + return com_array< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider:: + RangeFromChild(winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple const& childElement) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->RangeFromChild(*(void**)(&childElement), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->RangeFromChild(*(void**)(&childElement), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider< + D>::RangeFromPoint(winrt::Windows::Foundation::Point const& screenLocation) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RangeFromPoint(impl::bind_in(screenLocation), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RangeFromPoint(impl::bind_in(screenLocation), + &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider2< + D>::RangeFromAnnotation(winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple const& + annotationElement) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RangeFromAnnotation( + *(void**)(&annotationElement), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RangeFromAnnotation( + *(void**)(&annotationElement), &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextProvider2< + D>::GetCaretRange(bool& isActive) const { + void* returnValue{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCaretRange(&isActive, &returnValue)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCaretRange(&isActive, &returnValue)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + returnValue, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::Clone() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Clone(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Clone(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::Compare(winrt::Microsoft::UI::Xaml::Automation::Provider:: + ITextRangeProvider const& textRangeProvider) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Compare(*(void**)(&textRangeProvider), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Compare(*(void**)(&textRangeProvider), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider:: + CompareEndpoints(winrt::Microsoft::UI::Xaml::Automation::Text:: + TextPatternRangeEndpoint const& endpoint, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ITextRangeProvider const& textRangeProvider, + winrt::Microsoft::UI::Xaml::Automation::Text:: + TextPatternRangeEndpoint const& targetEndpoint) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CompareEndpoints( + static_cast(endpoint), *(void**)(&textRangeProvider), + static_cast(targetEndpoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CompareEndpoints( + static_cast(endpoint), *(void**)(&textRangeProvider), + static_cast(targetEndpoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider:: + ExpandToEnclosingUnit( + winrt::Microsoft::UI::Xaml::Automation::Text::TextUnit const& unit) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ExpandToEnclosingUnit(static_cast(unit))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ExpandToEnclosingUnit(static_cast(unit))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::FindAttribute(int32_t attributeId, + winrt::Windows::Foundation::IInspectable const& value, + bool backward) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindAttribute(attributeId, *(void**)(&value), + backward, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindAttribute(attributeId, *(void**)(&value), + backward, &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::FindText(param::hstring const& text, bool backward, + bool ignoreCase) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindText(*(void**)(&text), backward, + ignoreCase, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindText(*(void**)(&text), backward, + ignoreCase, &result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::GetAttributeValue(int32_t attributeId) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAttributeValue(attributeId, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAttributeValue(attributeId, &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::GetBoundingRectangles(com_array& returnValue) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBoundingRectangles( + impl::put_size_abi(returnValue), put_abi(returnValue))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBoundingRectangles( + impl::put_size_abi(returnValue), put_abi(returnValue))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::GetEnclosingElement() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetEnclosingElement(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetEnclosingElement(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::GetText(int32_t maxLength) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetText(maxLength, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetText(maxLength, &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider::Move( + winrt::Microsoft::UI::Xaml::Automation::Text::TextUnit const& unit, + int32_t count) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Move(static_cast(unit), count, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Move(static_cast(unit), count, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider:: + MoveEndpointByUnit( + winrt::Microsoft::UI::Xaml::Automation::Text:: + TextPatternRangeEndpoint const& endpoint, + winrt::Microsoft::UI::Xaml::Automation::Text::TextUnit const& unit, + int32_t count) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveEndpointByUnit( + static_cast(endpoint), static_cast(unit), count, + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveEndpointByUnit( + static_cast(endpoint), static_cast(unit), count, + &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::MoveEndpointByRange(winrt::Microsoft::UI::Xaml::Automation::Text:: + TextPatternRangeEndpoint const& endpoint, + winrt::Microsoft::UI::Xaml::Automation::Provider:: + ITextRangeProvider const& textRangeProvider, + winrt::Microsoft::UI::Xaml::Automation::Text:: + TextPatternRangeEndpoint const& targetEndpoint) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveEndpointByRange( + static_cast(endpoint), *(void**)(&textRangeProvider), + static_cast(targetEndpoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveEndpointByRange( + static_cast(endpoint), *(void**)(&textRangeProvider), + static_cast(targetEndpoint))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::Select() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Select()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Select()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::AddToSelection() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddToSelection()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddToSelection()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::RemoveFromSelection() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveFromSelection()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveFromSelection()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::ScrollIntoView(bool alignToTop) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollIntoView(alignToTop)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollIntoView(alignToTop)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider< + D>::GetChildren() const { + uint32_t result_impl_size{}; + void** result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetChildren(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetChildren(&result_impl_size, &result)); + } + return com_array{result, result_impl_size, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITextRangeProvider2< + D>::ShowContextMenu() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowContextMenu()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowContextMenu()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IToggleProvider< + D>::ToggleState() const { + winrt::Microsoft::UI::Xaml::Automation::ToggleState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ToggleState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ToggleState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IToggleProvider::Toggle() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Toggle()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Toggle()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider< + D>::CanMove() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanMove(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanMove(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider< + D>::CanResize() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanResize(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanResize(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider< + D>::CanRotate() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanRotate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanRotate(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider::Move( + double x, double y) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Move(x, y)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Move(x, y)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider< + D>::Resize(double width, double height) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resize(width, height)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Resize(width, height)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider< + D>::Rotate(double degrees) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Rotate(degrees)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Rotate(degrees)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider2< + D>::CanZoom() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanZoom(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanZoom(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider2< + D>::ZoomLevel() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomLevel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomLevel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider2< + D>::MaxZoom() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoom(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoom(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider2< + D>::MinZoom() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoom(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoom(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider2::Zoom( + double zoom) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Zoom(zoom)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Zoom(zoom)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_ITransformProvider2< + D>::ZoomByUnit(winrt::Microsoft::UI::Xaml::Automation::ZoomUnit const& + zoomUnit) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomByUnit(static_cast(zoomUnit))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomByUnit(static_cast(zoomUnit))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IValueProvider< + D>::IsReadOnly() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IValueProvider::Value() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IValueProvider::SetValue( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IValueProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IVirtualizedItemProvider< + D>::Realize() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Realize()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Realize()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider::IsModal() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsModal(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsModal(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider< + D>::IsTopmost() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTopmost(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTopmost(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider< + D>::Maximizable() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Maximizable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Maximizable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider< + D>::Minimizable() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Minimizable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Minimizable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider< + D>::InteractionState() const { + winrt::Microsoft::UI::Xaml::Automation::WindowInteractionState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InteractionState( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InteractionState( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider< + D>::VisualState() const { + winrt::Microsoft::UI::Xaml::Automation::WindowVisualState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_VisualState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_VisualState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider::Close() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Close()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Close()); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider:: + SetVisualState( + winrt::Microsoft::UI::Xaml::Automation::WindowVisualState const& state) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVisualState(static_cast(state))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVisualState(static_cast(state))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_Provider_IWindowProvider< + D>::WaitForInputIdle(int32_t milliseconds) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->WaitForInputIdle(milliseconds, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->WaitForInputIdle(milliseconds, &result)); + } + return result; +} +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider> + : produce_base { + int32_t __stdcall get_AnnotationTypeId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnnotationTypeId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AnnotationTypeName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnnotationTypeName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Author(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Author()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DateTime(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Target(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Target()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::ICustomNavigationProvider> + : produce_base { + int32_t __stdcall NavigateCustom(int32_t direction, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().NavigateCustom( + *reinterpret_cast( + &direction))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IDockProvider> { + int32_t __stdcall get_DockPosition(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DockPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDockPosition(int32_t dockPosition) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDockPosition( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::DockPosition const*>( + &dockPosition)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IDragProvider> { + int32_t __stdcall get_IsGrabbed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGrabbed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropEffect(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropEffect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropEffects(uint32_t* __valueSize, + void*** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().DropEffects()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetGrabbedItems(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetGrabbedItems()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IDropTargetProvider> + : produce_base { + int32_t __stdcall get_DropEffect(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropEffect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropEffects(uint32_t* __valueSize, + void*** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().DropEffects()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IExpandCollapseProvider> + : produce_base { + int32_t __stdcall get_ExpandCollapseState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::ExpandCollapseState>( + this->shim().ExpandCollapseState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Collapse() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Collapse(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Expand() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Expand(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IGridItemProvider> { + int32_t __stdcall get_Column(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Column()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColumnSpan(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnSpan()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContainingGrid(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContainingGrid()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Row(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Row()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowSpan(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowSpan()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IGridProvider> { + int32_t __stdcall get_ColumnCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItem(int32_t row, int32_t column, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetItem(row, column)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IInvokeProvider> { + int32_t __stdcall Invoke() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Invoke(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IItemContainerProvider> + : produce_base { + int32_t __stdcall FindItemByProperty(void* startAfter, + void* automationProperty, void* value, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider:: + IRawElementProviderSimple>(this->shim().FindItemByProperty( + *reinterpret_cast(&startAfter), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty const*>( + &automationProperty), + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IMultipleViewProvider> + : produce_base { + int32_t __stdcall get_CurrentView(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSupportedViews(uint32_t* __resultSize, + int32_t** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetSupportedViews()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetViewName(int32_t viewId, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetViewName(viewId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetCurrentView(int32_t viewId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetCurrentView(viewId); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IObjectModelProvider> + : produce_base { + int32_t __stdcall GetUnderlyingObjectModel(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetUnderlyingObjectModel()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider> + : produce_base { + int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnly()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LargeChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LargeChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Maximum(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Maximum()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Minimum(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Minimum()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Value(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetValue(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetValue(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollItemProvider> + : produce_base { + int32_t __stdcall ScrollIntoView() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollIntoView(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollProvider> { + int32_t __stdcall get_HorizontallyScrollable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontallyScrollable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollPercent(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollPercent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalViewSize(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalViewSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticallyScrollable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticallyScrollable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollPercent(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollPercent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalViewSize(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalViewSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Scroll(int32_t horizontalAmount, + int32_t verticalAmount) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scroll( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::ScrollAmount const*>( + &horizontalAmount), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::ScrollAmount const*>( + &verticalAmount)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetScrollPercent(double horizontalPercent, + double verticalPercent) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetScrollPercent(horizontalPercent, verticalPercent); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionItemProvider> + : produce_base { + int32_t __stdcall get_IsSelected(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelected()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionContainer(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionContainer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddToSelection() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddToSelection(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveFromSelection() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveFromSelection(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Select() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Select(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionProvider> + : produce_base { + int32_t __stdcall get_CanSelectMultiple(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanSelectMultiple()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSelectionRequired(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelectionRequired()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSelection(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = detach_abi(this->shim().GetSelection()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::ISpreadsheetItemProvider> + : produce_base { + int32_t __stdcall get_Formula(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Formula()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnnotationObjects(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetAnnotationObjects()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnnotationTypes(uint32_t* __resultSize, + int32_t** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetAnnotationTypes()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ISpreadsheetProvider> + : produce_base { + int32_t __stdcall GetItemByName(void* name, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetItemByName(*reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IStylesProvider> { + int32_t __stdcall get_ExtendedProperties(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtendedProperties()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FillColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillPatternColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().FillPatternColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillPatternStyle(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FillPatternStyle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Shape(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Shape()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StyleId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StyleName()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall Cancel() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartListening(int32_t inputType) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartListening( + *reinterpret_cast(&inputType)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITableItemProvider> + : produce_base { + int32_t __stdcall GetColumnHeaderItems(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetColumnHeaderItems()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRowHeaderItems(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetRowHeaderItems()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITableProvider> { + int32_t __stdcall get_RowOrColumnMajor(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowOrColumnMajor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetColumnHeaders(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetColumnHeaders()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRowHeaders(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = detach_abi(this->shim().GetRowHeaders()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITextChildProvider> + : produce_base { + int32_t __stdcall get_TextContainer(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextContainer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TextRange(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().TextRange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITextEditProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextEditProvider> { + int32_t __stdcall GetActiveComposition(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().GetActiveComposition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetConversionTarget(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().GetConversionTarget()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider> { + int32_t __stdcall get_DocumentRange(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().DocumentRange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SupportedTextSelection(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::SupportedTextSelection>( + this->shim().SupportedTextSelection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSelection(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = detach_abi(this->shim().GetSelection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetVisibleRanges(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetVisibleRanges()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RangeFromChild(void* childElement, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().RangeFromChild( + *reinterpret_cast( + &childElement))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RangeFromPoint( + winrt::Windows::Foundation::Point screenLocation, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().RangeFromPoint( + *reinterpret_cast( + &screenLocation))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITextProvider2> { + int32_t __stdcall RangeFromAnnotation(void* annotationElement, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().RangeFromAnnotation( + *reinterpret_cast( + &annotationElement))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCaretRange(bool* isActive, + void** returnValue) noexcept final try { + clear_abi(returnValue); + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().GetCaretRange(*isActive)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider> + : produce_base { + int32_t __stdcall Clone(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().Clone()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Compare(void* textRangeProvider, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Compare( + *reinterpret_cast(&textRangeProvider))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CompareEndpoints(int32_t endpoint, void* textRangeProvider, + int32_t targetEndpoint, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CompareEndpoints( + *reinterpret_cast(&endpoint), + *reinterpret_cast(&textRangeProvider), + *reinterpret_cast( + &targetEndpoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ExpandToEnclosingUnit(int32_t unit) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExpandToEnclosingUnit( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::Text::TextUnit const*>( + &unit)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAttribute(int32_t attributeId, void* value, + bool backward, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().FindAttribute( + attributeId, + *reinterpret_cast( + &value), + backward)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindText(void* text, bool backward, bool ignoreCase, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider>( + this->shim().FindText(*reinterpret_cast(&text), + backward, ignoreCase)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAttributeValue(int32_t attributeId, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAttributeValue(attributeId)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBoundingRectangles(uint32_t* __returnValueSize, + double** returnValue) noexcept final + try { + clear_abi(returnValue); + typename D::abi_guard guard(this->shim()); + this->shim().GetBoundingRectangles( + detach_abi(__returnValueSize, returnValue)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetEnclosingElement(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetEnclosingElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetText(int32_t maxLength, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetText(maxLength)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Move(int32_t unit, int32_t count, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Move( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::Text::TextUnit const*>( + &unit), + count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveEndpointByUnit(int32_t endpoint, int32_t unit, + int32_t count, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveEndpointByUnit( + *reinterpret_cast(&endpoint), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::Text::TextUnit const*>( + &unit), + count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveEndpointByRange(int32_t endpoint, + void* textRangeProvider, + int32_t targetEndpoint) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().MoveEndpointByRange( + *reinterpret_cast(&endpoint), + *reinterpret_cast(&textRangeProvider), + *reinterpret_cast( + &targetEndpoint)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Select() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Select(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddToSelection() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddToSelection(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveFromSelection() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveFromSelection(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollIntoView(bool alignToTop) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollIntoView(alignToTop); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetChildren(uint32_t* __resultSize, + void*** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = detach_abi(this->shim().GetChildren()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider2> + : produce_base { + int32_t __stdcall ShowContextMenu() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowContextMenu(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IToggleProvider> { + int32_t __stdcall get_ToggleState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToggleState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Toggle() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Toggle(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider> + : produce_base { + int32_t __stdcall get_CanMove(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanMove()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanResize(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanResize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanRotate(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanRotate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Move(double x, double y) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Move(x, y); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Resize(double width, double height) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resize(width, height); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Rotate(double degrees) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Rotate(degrees); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2> + : produce_base { + int32_t __stdcall get_CanZoom(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanZoom()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomLevel(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomLevel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxZoom(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxZoom()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinZoom(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinZoom()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Zoom(double zoom) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Zoom(zoom); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ZoomByUnit(int32_t zoomUnit) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomByUnit( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::ZoomUnit const*>( + &zoomUnit)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IValueProvider> { + int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnly()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Value(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetValue(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IVirtualizedItemProvider> + : produce_base { + int32_t __stdcall Realize() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Realize(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::Provider::IWindowProvider> { + int32_t __stdcall get_IsModal(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsModal()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTopmost(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTopmost()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Maximizable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Maximizable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Minimizable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Minimizable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InteractionState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::WindowInteractionState>( + this->shim().InteractionState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VisualState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VisualState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Close() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Close(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVisualState(int32_t state) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVisualState( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::WindowVisualState const*>( + &state)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall WaitForInputIdle(int32_t milliseconds, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().WaitForInputIdle(milliseconds)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Automation::Provider {} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IAnnotationProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ICustomNavigationProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IDropTargetProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IExpandCollapseProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IItemContainerProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IMultipleViewProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IObjectModelProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRangeValueProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IScrollItemProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionItemProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISelectionProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISpreadsheetItemProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ISpreadsheetProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITableItemProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextChildProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITextRangeProvider2> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::ITransformProvider2> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IVirtualizedItemProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::Provider::IRawElementProviderSimple> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Text.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Text.h new file mode 100644 index 00000000..0682c3f7 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.Text.h @@ -0,0 +1,21 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Automation_Text_H +#define WINRT_Microsoft_UI_Xaml_Automation_Text_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Automation.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Text.2.h" +namespace winrt::impl {} +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Automation::Text {} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.h new file mode 100644 index 00000000..46fb8469 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Automation.h @@ -0,0 +1,9471 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Automation_H +#define WINRT_Microsoft_UI_Xaml_Automation_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Automation_IAnnotationPatternIdentifiersStatics< + D>::AnnotationTypeIdProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationTypeIdProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationTypeIdProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAnnotationPatternIdentifiersStatics< + D>::AnnotationTypeNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationTypeNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationTypeNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAnnotationPatternIdentifiersStatics< + D>::AuthorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AuthorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AuthorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAnnotationPatternIdentifiersStatics< + D>::DateTimeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateTimeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAnnotationPatternIdentifiersStatics< + D>::TargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotation::Type() + const { + winrt::Microsoft::UI::Xaml::Automation::AnnotationType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Type(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Type(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotation::Type( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Type(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Type(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotation::Element() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotation::Element( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Element(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Element(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotationFactory:: + CreateInstance(winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& + type) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(static_cast(type), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(static_cast(type), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationAnnotation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotationFactory:: + CreateWithElementParameter( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& type, + winrt::Microsoft::UI::Xaml::UIElement const& element) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithElementParameter( + static_cast(type), *(void**)(&element), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithElementParameter( + static_cast(type), *(void**)(&element), &value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationAnnotation{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotationStatics< + D>::TypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationAnnotationStatics< + D>::ElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::AcceleratorKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceleratorKeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceleratorKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::AccessKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::AutomationIdProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationIdProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationIdProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::BoundingRectangleProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BoundingRectangleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BoundingRectangleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::ClassNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClassNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClassNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::ClickablePointProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClickablePointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClickablePointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::ControlTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::HasKeyboardFocusProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasKeyboardFocusProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasKeyboardFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::HelpTextProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HelpTextProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HelpTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsContentElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContentElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContentElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsControlElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsControlElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsControlElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsKeyboardFocusableProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsKeyboardFocusableProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsKeyboardFocusableProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsOffscreenProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOffscreenProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOffscreenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsPasswordProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPasswordProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPasswordProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsRequiredForFormProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRequiredForFormProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRequiredForFormProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::ItemStatusProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemStatusProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemStatusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::ItemTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::LabeledByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabeledByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabeledByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::LocalizedControlTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalizedControlTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalizedControlTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::NameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::OrientationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::LiveSettingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LiveSettingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LiveSettingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::ControlledPeersProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlledPeersProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlledPeersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::PositionInSetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionInSetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionInSetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::SizeOfSetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizeOfSetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizeOfSetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::LevelProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LevelProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LevelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::AnnotationsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::LandmarkTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LandmarkTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LandmarkTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::LocalizedLandmarkTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalizedLandmarkTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalizedLandmarkTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsPeripheralProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPeripheralProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPeripheralProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsDataValidForFormProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDataValidForFormProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDataValidForFormProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::FullDescriptionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FullDescriptionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FullDescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::DescribedByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescribedByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescribedByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::FlowsToProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlowsToProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlowsToProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::FlowsFromProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlowsFromProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlowsFromProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::CultureProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CultureProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CultureProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::HeadingLevelProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeadingLevelProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeadingLevelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationElementIdentifiersStatics< + D>::IsDialogProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDialogProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDialogProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::AcceleratorKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceleratorKeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceleratorKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetAcceleratorKey(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAcceleratorKey(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAcceleratorKey(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetAcceleratorKey(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAcceleratorKey(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAcceleratorKey(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::AccessKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetAccessKey(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAccessKey(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAccessKey(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetAccessKey(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetAccessKey(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetAccessKey(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::AutomationIdProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationIdProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationIdProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetAutomationId(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAutomationId(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAutomationId(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetAutomationId(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAutomationId(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAutomationId(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::HelpTextProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HelpTextProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HelpTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetHelpText(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHelpText(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHelpText(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetHelpText(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetHelpText(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetHelpText(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::IsRequiredForFormProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRequiredForFormProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRequiredForFormProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetIsRequiredForForm(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsRequiredForForm(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsRequiredForForm(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetIsRequiredForForm(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsRequiredForForm(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsRequiredForForm(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::ItemStatusProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemStatusProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemStatusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetItemStatus(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemStatus(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemStatus(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetItemStatus(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetItemStatus(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetItemStatus(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::ItemTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetItemType(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemType(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemType(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetItemType(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetItemType(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetItemType(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::LabeledByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabeledByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabeledByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetLabeledBy(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLabeledBy(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLabeledBy(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetLabeledBy(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetLabeledBy(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetLabeledBy(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::NameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + GetName(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetName(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetName(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetName(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetName(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetName(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::LiveSettingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LiveSettingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LiveSettingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetLiveSetting(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLiveSetting result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLiveSetting( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLiveSetting( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetLiveSetting(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationLiveSetting const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLiveSetting(*(void**)(&element), + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLiveSetting(*(void**)(&element), + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::AccessibilityViewProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessibilityViewProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessibilityViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetAccessibilityView(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AccessibilityView result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAccessibilityView( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAccessibilityView( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetAccessibilityView( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers::AccessibilityView const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAccessibilityView( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAccessibilityView( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::ControlledPeersProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlledPeersProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlledPeersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetControlledPeers(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetControlledPeers(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetControlledPeers(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::UIElement>{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::PositionInSetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PositionInSetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PositionInSetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetPositionInSet(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPositionInSet(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPositionInSet(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetPositionInSet(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetPositionInSet(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetPositionInSet(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SizeOfSetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizeOfSetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizeOfSetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetSizeOfSet(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSizeOfSet(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSizeOfSet(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetSizeOfSet(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetSizeOfSet(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetSizeOfSet(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::LevelProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LevelProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LevelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetLevel(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLevel(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLevel(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetLevel(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLevel(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLevel(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::AnnotationsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetAnnotations(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAnnotations(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAnnotations(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Automation::AutomationAnnotation>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::LandmarkTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LandmarkTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LandmarkTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetLandmarkType(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLandmarkType + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLandmarkType( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLandmarkType( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetLandmarkType(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationLandmarkType const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLandmarkType( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLandmarkType( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::LocalizedLandmarkTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalizedLandmarkTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalizedLandmarkTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + GetLocalizedLandmarkType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLocalizedLandmarkType(*(void**)(&element), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLocalizedLandmarkType(*(void**)(&element), + &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetLocalizedLandmarkType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLocalizedLandmarkType(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLocalizedLandmarkType(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::IsPeripheralProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPeripheralProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPeripheralProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetIsPeripheral(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsPeripheral(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsPeripheral(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetIsPeripheral(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsPeripheral(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsPeripheral(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::IsDataValidForFormProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDataValidForFormProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDataValidForFormProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + GetIsDataValidForForm( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsDataValidForForm(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsDataValidForForm(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetIsDataValidForForm( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsDataValidForForm(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsDataValidForForm(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::FullDescriptionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FullDescriptionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FullDescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetFullDescription(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetFullDescription(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetFullDescription(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetFullDescription(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetFullDescription(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetFullDescription(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::LocalizedControlTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalizedControlTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalizedControlTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + GetLocalizedControlType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetLocalizedControlType(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetLocalizedControlType(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetLocalizedControlType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLocalizedControlType(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLocalizedControlType(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::DescribedByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescribedByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescribedByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetDescribedBy(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetDescribedBy(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetDescribedBy(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::DependencyObject>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::FlowsToProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlowsToProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlowsToProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetFlowsTo(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFlowsTo(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFlowsTo(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::DependencyObject>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::FlowsFromProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlowsFromProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlowsFromProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetFlowsFrom(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFlowsFrom(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFlowsFrom(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::DependencyObject>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::CultureProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CultureProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CultureProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetCulture(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCulture(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCulture(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetCulture(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetCulture(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetCulture(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::HeadingLevelProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeadingLevelProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeadingLevelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetHeadingLevel(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationHeadingLevel + result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHeadingLevel( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHeadingLevel( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics:: + SetHeadingLevel(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationHeadingLevel const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHeadingLevel( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHeadingLevel( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::IsDialogProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDialogProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDialogProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::GetIsDialog(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsDialog(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsDialog(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics< + D>::SetIsDialog(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsDialog(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsDialog(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics2< + D>::AutomationControlTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutomationControlTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutomationControlTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics2< + D>::GetAutomationControlType(winrt::Microsoft::UI::Xaml::UIElement const& + element) const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAutomationControlType( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAutomationControlType( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IAutomationPropertiesStatics2< + D>::SetAutomationControlType(winrt::Microsoft::UI::Xaml::UIElement const& + element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationControlType const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAutomationControlType( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAutomationControlType( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDockPatternIdentifiersStatics< + D>::DockPositionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IDockPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DockPositionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DockPositionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDragPatternIdentifiersStatics< + D>::DropEffectProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEffectProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEffectProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDragPatternIdentifiersStatics< + D>::DropEffectsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEffectsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEffectsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDragPatternIdentifiersStatics< + D>::GrabbedItemsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GrabbedItemsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GrabbedItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDragPatternIdentifiersStatics< + D>::IsGrabbedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGrabbedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGrabbedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDropTargetPatternIdentifiersStatics< + D>::DropTargetEffectProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropTargetEffectProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropTargetEffectProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IDropTargetPatternIdentifiersStatics< + D>::DropTargetEffectsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropTargetEffectsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropTargetEffectsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IExpandCollapsePatternIdentifiersStatics< + D>::ExpandCollapseStateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation:: + IExpandCollapsePatternIdentifiersStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandCollapseStateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandCollapseStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridItemPatternIdentifiersStatics< + D>::ColumnProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridItemPatternIdentifiersStatics< + D>::ColumnSpanProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpanProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpanProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridItemPatternIdentifiersStatics< + D>::ContainingGridProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainingGridProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainingGridProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridItemPatternIdentifiersStatics< + D>::RowProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridItemPatternIdentifiersStatics< + D>::RowSpanProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpanProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpanProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridPatternIdentifiersStatics< + D>::ColumnCountProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IGridPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnCountProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnCountProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IGridPatternIdentifiersStatics< + D>::RowCountProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IGridPatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowCountProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowCountProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IMultipleViewPatternIdentifiersStatics< + D>::CurrentViewProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation:: + IMultipleViewPatternIdentifiersStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentViewProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IMultipleViewPatternIdentifiersStatics< + D>::SupportedViewsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation:: + IMultipleViewPatternIdentifiersStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SupportedViewsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SupportedViewsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IRangeValuePatternIdentifiersStatics< + D>::IsReadOnlyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IRangeValuePatternIdentifiersStatics< + D>::LargeChangeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IRangeValuePatternIdentifiersStatics< + D>::MaximumProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IRangeValuePatternIdentifiersStatics< + D>::MinimumProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IRangeValuePatternIdentifiersStatics< + D>::SmallChangeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IRangeValuePatternIdentifiersStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::HorizontallyScrollableProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontallyScrollableProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontallyScrollableProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::HorizontalScrollPercentProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollPercentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollPercentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::HorizontalViewSizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalViewSizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalViewSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::NoScroll() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NoScroll(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NoScroll(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::VerticallyScrollableProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticallyScrollableProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticallyScrollableProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::VerticalScrollPercentProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollPercentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollPercentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IScrollPatternIdentifiersStatics< + D>::VerticalViewSizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalViewSizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalViewSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ISelectionItemPatternIdentifiersStatics< + D>::IsSelectedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation:: + ISelectionItemPatternIdentifiersStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ISelectionItemPatternIdentifiersStatics< + D>::SelectionContainerProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation:: + ISelectionItemPatternIdentifiersStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionContainerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionContainerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ISelectionPatternIdentifiersStatics< + D>::CanSelectMultipleProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanSelectMultipleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanSelectMultipleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ISelectionPatternIdentifiersStatics< + D>::IsSelectionRequiredProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectionRequiredProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectionRequiredProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ISelectionPatternIdentifiersStatics< + D>::SelectionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ISpreadsheetItemPatternIdentifiersStatics< + D>::FormulaProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Automation:: + ISpreadsheetItemPatternIdentifiersStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Automation:: + ISpreadsheetItemPatternIdentifiersStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FormulaProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FormulaProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::ExtendedPropertiesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtendedPropertiesProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtendedPropertiesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::FillColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::FillPatternColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillPatternColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillPatternColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::FillPatternStyleProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillPatternStyleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillPatternStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::ShapeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShapeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShapeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::StyleIdProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleIdProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleIdProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IStylesPatternIdentifiersStatics< + D>::StyleNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITableItemPatternIdentifiersStatics< + D>::ColumnHeaderItemsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnHeaderItemsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnHeaderItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITableItemPatternIdentifiersStatics< + D>::RowHeaderItemsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowHeaderItemsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowHeaderItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITablePatternIdentifiersStatics< + D>::ColumnHeadersProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::ITablePatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnHeadersProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnHeadersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITablePatternIdentifiersStatics< + D>::RowHeadersProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::ITablePatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowHeadersProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowHeadersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITablePatternIdentifiersStatics< + D>::RowOrColumnMajorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::ITablePatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowOrColumnMajorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowOrColumnMajorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITogglePatternIdentifiersStatics< + D>::ToggleStateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToggleStateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToggleStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPattern2IdentifiersStatics< + D>::CanZoomProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanZoomProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanZoomProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPattern2IdentifiersStatics< + D>::ZoomLevelProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomLevelProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomLevelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPattern2IdentifiersStatics< + D>::MaxZoomProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPattern2IdentifiersStatics< + D>::MinZoomProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPatternIdentifiersStatics< + D>::CanMoveProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanMoveProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanMoveProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPatternIdentifiersStatics< + D>::CanResizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanResizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanResizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_ITransformPatternIdentifiersStatics< + D>::CanRotateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanRotateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanRotateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IValuePatternIdentifiersStatics< + D>::IsReadOnlyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IValuePatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IValuePatternIdentifiersStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Automation::IValuePatternIdentifiersStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IWindowPatternIdentifiersStatics< + D>::CanMaximizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanMaximizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanMaximizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IWindowPatternIdentifiersStatics< + D>::CanMinimizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanMinimizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanMinimizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IWindowPatternIdentifiersStatics< + D>::IsModalProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsModalProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsModalProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IWindowPatternIdentifiersStatics< + D>::IsTopmostProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTopmostProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTopmostProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IWindowPatternIdentifiersStatics< + D>::WindowInteractionStateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WindowInteractionStateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WindowInteractionStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Automation_IWindowPatternIdentifiersStatics< + D>::WindowVisualStateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WindowVisualStateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WindowVisualStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Automation::AutomationProperty{ + value, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IAnnotationPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AnnotationTypeIdProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AnnotationTypeIdProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AnnotationTypeNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AnnotationTypeNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AuthorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AuthorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DateTimeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DateTimeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().TargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotation> { + int32_t __stdcall get_Type(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Type(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Type( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Element(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Element()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Element(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Element( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationFactory> + : produce_base { + int32_t __stdcall CreateInstance(int32_t type, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::AutomationAnnotation>( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const*>( + &type))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithElementParameter(int32_t type, void* element, + void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Automation::AutomationAnnotation>( + this->shim().CreateWithElementParameter( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const*>( + &type), + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationStatics> + : produce_base { + int32_t __stdcall get_TypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationElementIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AcceleratorKeyProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AcceleratorKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AccessKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AutomationIdProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AutomationIdProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BoundingRectangleProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().BoundingRectangleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClassNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ClassNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClickablePointProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ClickablePointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ControlTypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ControlTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasKeyboardFocusProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HasKeyboardFocusProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HelpTextProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HelpTextProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsContentElementProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsContentElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsControlElementProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsControlElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEnabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsKeyboardFocusableProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsKeyboardFocusableProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsOffscreenProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsOffscreenProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPasswordProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsPasswordProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRequiredForFormProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsRequiredForFormProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemStatusProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ItemStatusProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemTypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ItemTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LabeledByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LabeledByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalizedControlTypeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LocalizedControlTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().NameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().OrientationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LiveSettingProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LiveSettingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ControlledPeersProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ControlledPeersProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionInSetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().PositionInSetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SizeOfSetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SizeOfSetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LevelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LevelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AnnotationsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().AnnotationsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LandmarkTypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LandmarkTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalizedLandmarkTypeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LocalizedLandmarkTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPeripheralProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsPeripheralProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDataValidForFormProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsDataValidForFormProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FullDescriptionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FullDescriptionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DescribedByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DescribedByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowsToProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FlowsToProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowsFromProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FlowsFromProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CultureProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CultureProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HeadingLevelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HeadingLevelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDialogProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsDialogProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationProperties> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics> + : produce_base { + int32_t __stdcall get_AcceleratorKeyProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AcceleratorKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAcceleratorKey(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAcceleratorKey( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAcceleratorKey(void* element, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAcceleratorKey( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAccessKey(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAccessKey( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAccessKey(void* element, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAccessKey( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AutomationIdProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutomationIdProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationId(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAutomationId( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAutomationId(void* element, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAutomationId( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HelpTextProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HelpTextProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHelpText(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHelpText( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHelpText(void* element, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHelpText( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRequiredForFormProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsRequiredForFormProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsRequiredForForm(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsRequiredForForm( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsRequiredForForm(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsRequiredForForm( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemStatusProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemStatusProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItemStatus(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemStatus( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetItemStatus(void* element, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetItemStatus( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemTypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetItemType(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemType( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetItemType(void* element, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetItemType( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LabeledByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LabeledByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLabeledBy(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::UIElement>(this->shim().GetLabeledBy( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLabeledBy(void* element, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLabeledBy( + *reinterpret_cast( + &element), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetName(void* element, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetName( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetName(void* element, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetName( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LiveSettingProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LiveSettingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLiveSetting(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLiveSetting>( + this->shim().GetLiveSetting( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLiveSetting(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLiveSetting( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessibilityViewProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessibilityViewProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAccessibilityView(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AccessibilityView>( + this->shim().GetAccessibilityView( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAccessibilityView(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAccessibilityView( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ControlledPeersProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ControlledPeersProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetControlledPeers(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetControlledPeers( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PositionInSetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PositionInSetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPositionInSet(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPositionInSet( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPositionInSet(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPositionInSet( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SizeOfSetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SizeOfSetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSizeOfSet(void* element, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetSizeOfSet( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetSizeOfSet(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetSizeOfSet( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LevelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LevelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLevel(void* element, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLevel( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLevel(void* element, int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLevel( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AnnotationsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AnnotationsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnnotations(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetAnnotations( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LandmarkTypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LandmarkTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLandmarkType(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationLandmarkType>( + this->shim().GetLandmarkType( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLandmarkType(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLandmarkType( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalizedLandmarkTypeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalizedLandmarkTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLocalizedLandmarkType(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLocalizedLandmarkType( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLocalizedLandmarkType(void* element, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLocalizedLandmarkType( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPeripheralProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsPeripheralProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsPeripheral(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsPeripheral( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsPeripheral(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsPeripheral( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDataValidForFormProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsDataValidForFormProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsDataValidForForm(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsDataValidForForm( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsDataValidForForm(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsDataValidForForm( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FullDescriptionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FullDescriptionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFullDescription(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetFullDescription( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetFullDescription(void* element, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetFullDescription( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalizedControlTypeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalizedControlTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLocalizedControlType(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLocalizedControlType( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetLocalizedControlType(void* element, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetLocalizedControlType( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DescribedByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DescribedByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDescribedBy(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetDescribedBy( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowsToProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlowsToProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFlowsTo(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetFlowsTo( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowsFromProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlowsFromProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFlowsFrom(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetFlowsFrom( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CultureProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CultureProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCulture(void* element, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetCulture( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetCulture(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetCulture( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HeadingLevelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HeadingLevelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHeadingLevel(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationHeadingLevel>( + this->shim().GetHeadingLevel( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHeadingLevel(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHeadingLevel( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDialogProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsDialogProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsDialog(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsDialog( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsDialog(void* element, bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsDialog( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics2> + : produce_base { + int32_t __stdcall get_AutomationControlTypeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutomationControlTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAutomationControlType(void* element, + int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType>( + this->shim().GetAutomationControlType( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAutomationControlType(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAutomationControlType( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IAutomationProperty> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IDockPatternIdentifiers> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IDockPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_DockPositionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DockPositionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiers> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_DropEffectProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DropEffectProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropEffectsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DropEffectsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GrabbedItemsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().GrabbedItemsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsGrabbedProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsGrabbedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IDropTargetPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DropTargetEffectProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DropTargetEffectProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropTargetEffectsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DropTargetEffectsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::IExpandCollapsePatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ExpandCollapseStateProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ExpandCollapseStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IGridItemPatternIdentifiers> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::IGridItemPatternIdentifiers> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::IGridItemPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_ColumnProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ColumnProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColumnSpanProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ColumnSpanProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContainingGridProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ContainingGridProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowSpanProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowSpanProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IGridPatternIdentifiers> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IGridPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_ColumnCountProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ColumnCountProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowCountProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowCountProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IMultipleViewPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CurrentViewProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CurrentViewProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SupportedViewsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SupportedViewsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IRangeValuePatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsReadOnlyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsReadOnlyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LargeChangeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LargeChangeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaximumProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().MaximumProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinimumProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().MinimumProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallChangeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SmallChangeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IScrollPatternIdentifiers> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::IScrollPatternIdentifiers> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IScrollPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_HorizontallyScrollableProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HorizontallyScrollableProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollPercentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HorizontalScrollPercentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalViewSizeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HorizontalViewSizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NoScroll(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NoScroll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticallyScrollableProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VerticallyScrollableProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollPercentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VerticalScrollPercentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalViewSizeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VerticalViewSizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ISelectionItemPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsSelectedProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsSelectedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionContainerProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SelectionContainerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ISelectionPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::ISelectionPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_CanSelectMultipleProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanSelectMultipleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSelectionRequiredProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsSelectionRequiredProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SelectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::ISpreadsheetItemPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FormulaProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FormulaProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IStylesPatternIdentifiers> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::IStylesPatternIdentifiers> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IStylesPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_ExtendedPropertiesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ExtendedPropertiesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FillColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillPatternColorProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FillPatternColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillPatternStyleProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FillPatternStyleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShapeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ShapeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleIdProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StyleIdProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().StyleNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ITableItemPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::ITableItemPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_ColumnHeaderItemsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ColumnHeaderItemsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowHeaderItemsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowHeaderItemsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::ITablePatternIdentifiers> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ITablePatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_ColumnHeadersProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ColumnHeadersProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowHeadersProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowHeadersProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowOrColumnMajorProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RowOrColumnMajorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ITogglePatternIdentifiers> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::ITogglePatternIdentifiers> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ITogglePatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_ToggleStateProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ToggleStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ITransformPattern2Identifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CanZoomProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanZoomProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomLevelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ZoomLevelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxZoomProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().MaxZoomProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinZoomProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().MinZoomProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::ITransformPatternIdentifiers> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Automation::ITransformPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_CanMoveProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanMoveProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanResizeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanResizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanRotateProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanRotateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Automation::IValuePatternIdentifiers> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IValuePatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_IsReadOnlyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsReadOnlyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IWindowPatternIdentifiers> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Automation::IWindowPatternIdentifiers> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Automation::IWindowPatternIdentifiersStatics> + : produce_base { + int32_t __stdcall get_CanMaximizeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanMaximizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanMinimizeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CanMinimizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsModalProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsModalProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTopmostProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IsTopmostProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WindowInteractionStateProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().WindowInteractionStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WindowVisualStateProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().WindowVisualStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Automation { + inline auto AnnotationPatternIdentifiers::AnnotationTypeIdProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAnnotationPatternIdentifiersStatics const&), + AnnotationPatternIdentifiers, IAnnotationPatternIdentifiersStatics>( + [](IAnnotationPatternIdentifiersStatics const& f) { + return f.AnnotationTypeIdProperty(); + }); + } + inline auto AnnotationPatternIdentifiers::AnnotationTypeNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAnnotationPatternIdentifiersStatics const&), + AnnotationPatternIdentifiers, IAnnotationPatternIdentifiersStatics>( + [](IAnnotationPatternIdentifiersStatics const& f) { + return f.AnnotationTypeNameProperty(); + }); + } + inline auto AnnotationPatternIdentifiers::AuthorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAnnotationPatternIdentifiersStatics const&), + AnnotationPatternIdentifiers, IAnnotationPatternIdentifiersStatics>( + [](IAnnotationPatternIdentifiersStatics const& f) { + return f.AuthorProperty(); + }); + } + inline auto AnnotationPatternIdentifiers::DateTimeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAnnotationPatternIdentifiersStatics const&), + AnnotationPatternIdentifiers, IAnnotationPatternIdentifiersStatics>( + [](IAnnotationPatternIdentifiersStatics const& f) { + return f.DateTimeProperty(); + }); + } + inline auto AnnotationPatternIdentifiers::TargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAnnotationPatternIdentifiersStatics const&), + AnnotationPatternIdentifiers, IAnnotationPatternIdentifiersStatics>( + [](IAnnotationPatternIdentifiersStatics const& f) { + return f.TargetProperty(); + }); + } + inline AutomationAnnotation::AutomationAnnotation() + : AutomationAnnotation( + impl::call_factory_cast< + AutomationAnnotation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AutomationAnnotation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline AutomationAnnotation::AutomationAnnotation( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& type) + : AutomationAnnotation(impl::call_factory( + [&](IAutomationAnnotationFactory const& f) { + return f.CreateInstance(type); + })) {} + inline AutomationAnnotation::AutomationAnnotation( + winrt::Microsoft::UI::Xaml::Automation::AnnotationType const& type, + winrt::Microsoft::UI::Xaml::UIElement const& element) + : AutomationAnnotation(impl::call_factory( + [&](IAutomationAnnotationFactory const& f) { + return f.CreateWithElementParameter(type, element); + })) {} + inline auto AutomationAnnotation::TypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationAnnotationStatics const&), + AutomationAnnotation, IAutomationAnnotationStatics>( + [](IAutomationAnnotationStatics const& f) { return f.TypeProperty(); }); + } + inline auto AutomationAnnotation::ElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationAnnotationStatics const&), + AutomationAnnotation, IAutomationAnnotationStatics>( + [](IAutomationAnnotationStatics const& f) { + return f.ElementProperty(); + }); + } + inline auto AutomationElementIdentifiers::AcceleratorKeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.AcceleratorKeyProperty(); + }); + } + inline auto AutomationElementIdentifiers::AccessKeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.AccessKeyProperty(); + }); + } + inline auto AutomationElementIdentifiers::AutomationIdProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.AutomationIdProperty(); + }); + } + inline auto AutomationElementIdentifiers::BoundingRectangleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.BoundingRectangleProperty(); + }); + } + inline auto AutomationElementIdentifiers::ClassNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.ClassNameProperty(); + }); + } + inline auto AutomationElementIdentifiers::ClickablePointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.ClickablePointProperty(); + }); + } + inline auto AutomationElementIdentifiers::ControlTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.ControlTypeProperty(); + }); + } + inline auto AutomationElementIdentifiers::HasKeyboardFocusProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.HasKeyboardFocusProperty(); + }); + } + inline auto AutomationElementIdentifiers::HelpTextProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.HelpTextProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsContentElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsContentElementProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsControlElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsControlElementProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsEnabledProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsKeyboardFocusableProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsKeyboardFocusableProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsOffscreenProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsOffscreenProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsPasswordProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsPasswordProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsRequiredForFormProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsRequiredForFormProperty(); + }); + } + inline auto AutomationElementIdentifiers::ItemStatusProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.ItemStatusProperty(); + }); + } + inline auto AutomationElementIdentifiers::ItemTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.ItemTypeProperty(); + }); + } + inline auto AutomationElementIdentifiers::LabeledByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.LabeledByProperty(); + }); + } + inline auto AutomationElementIdentifiers::LocalizedControlTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.LocalizedControlTypeProperty(); + }); + } + inline auto AutomationElementIdentifiers::NameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.NameProperty(); + }); + } + inline auto AutomationElementIdentifiers::OrientationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.OrientationProperty(); + }); + } + inline auto AutomationElementIdentifiers::LiveSettingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.LiveSettingProperty(); + }); + } + inline auto AutomationElementIdentifiers::ControlledPeersProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.ControlledPeersProperty(); + }); + } + inline auto AutomationElementIdentifiers::PositionInSetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.PositionInSetProperty(); + }); + } + inline auto AutomationElementIdentifiers::SizeOfSetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.SizeOfSetProperty(); + }); + } + inline auto AutomationElementIdentifiers::LevelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.LevelProperty(); + }); + } + inline auto AutomationElementIdentifiers::AnnotationsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.AnnotationsProperty(); + }); + } + inline auto AutomationElementIdentifiers::LandmarkTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.LandmarkTypeProperty(); + }); + } + inline auto AutomationElementIdentifiers::LocalizedLandmarkTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.LocalizedLandmarkTypeProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsPeripheralProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsPeripheralProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsDataValidForFormProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsDataValidForFormProperty(); + }); + } + inline auto AutomationElementIdentifiers::FullDescriptionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.FullDescriptionProperty(); + }); + } + inline auto AutomationElementIdentifiers::DescribedByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.DescribedByProperty(); + }); + } + inline auto AutomationElementIdentifiers::FlowsToProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.FlowsToProperty(); + }); + } + inline auto AutomationElementIdentifiers::FlowsFromProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.FlowsFromProperty(); + }); + } + inline auto AutomationElementIdentifiers::CultureProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.CultureProperty(); + }); + } + inline auto AutomationElementIdentifiers::HeadingLevelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.HeadingLevelProperty(); + }); + } + inline auto AutomationElementIdentifiers::IsDialogProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IAutomationElementIdentifiersStatics const&), + AutomationElementIdentifiers, IAutomationElementIdentifiersStatics>( + [](IAutomationElementIdentifiersStatics const& f) { + return f.IsDialogProperty(); + }); + } + inline auto AutomationProperties::AcceleratorKeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.AcceleratorKeyProperty(); + }); + } + inline auto AutomationProperties::GetAcceleratorKey( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetAcceleratorKey(element); + }); + } + inline auto AutomationProperties::SetAcceleratorKey( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetAcceleratorKey(element, value); + }); + } + inline auto AutomationProperties::AccessKeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.AccessKeyProperty(); + }); + } + inline auto AutomationProperties::GetAccessKey( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetAccessKey(element); + }); + } + inline auto AutomationProperties::SetAccessKey( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetAccessKey(element, value); + }); + } + inline auto AutomationProperties::AutomationIdProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.AutomationIdProperty(); + }); + } + inline auto AutomationProperties::GetAutomationId( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetAutomationId(element); + }); + } + inline auto AutomationProperties::SetAutomationId( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetAutomationId(element, value); + }); + } + inline auto AutomationProperties::HelpTextProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.HelpTextProperty(); + }); + } + inline auto AutomationProperties::GetHelpText( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetHelpText(element); + }); + } + inline auto AutomationProperties::SetHelpText( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetHelpText(element, value); + }); + } + inline auto AutomationProperties::IsRequiredForFormProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.IsRequiredForFormProperty(); + }); + } + inline auto AutomationProperties::GetIsRequiredForForm( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetIsRequiredForForm(element); + }); + } + inline auto AutomationProperties::SetIsRequiredForForm( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetIsRequiredForForm(element, value); + }); + } + inline auto AutomationProperties::ItemStatusProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.ItemStatusProperty(); + }); + } + inline auto AutomationProperties::GetItemStatus( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetItemStatus(element); + }); + } + inline auto AutomationProperties::SetItemStatus( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetItemStatus(element, value); + }); + } + inline auto AutomationProperties::ItemTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.ItemTypeProperty(); + }); + } + inline auto AutomationProperties::GetItemType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetItemType(element); + }); + } + inline auto AutomationProperties::SetItemType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetItemType(element, value); + }); + } + inline auto AutomationProperties::LabeledByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.LabeledByProperty(); + }); + } + inline auto AutomationProperties::GetLabeledBy( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetLabeledBy(element); + }); + } + inline auto AutomationProperties::SetLabeledBy( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::UIElement const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetLabeledBy(element, value); + }); + } + inline auto AutomationProperties::NameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { return f.NameProperty(); }); + } + inline auto AutomationProperties::GetName( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetName(element); + }); + } + inline auto AutomationProperties::SetName( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetName(element, value); + }); + } + inline auto AutomationProperties::LiveSettingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.LiveSettingProperty(); + }); + } + inline auto AutomationProperties::GetLiveSetting( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetLiveSetting(element); + }); + } + inline auto AutomationProperties::SetLiveSetting( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationLiveSetting const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetLiveSetting(element, value); + }); + } + inline auto AutomationProperties::AccessibilityViewProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.AccessibilityViewProperty(); + }); + } + inline auto AutomationProperties::GetAccessibilityView( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetAccessibilityView(element); + }); + } + inline auto AutomationProperties::SetAccessibilityView( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers::AccessibilityView const& + value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetAccessibilityView(element, value); + }); + } + inline auto AutomationProperties::ControlledPeersProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.ControlledPeersProperty(); + }); + } + inline auto AutomationProperties::GetControlledPeers( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetControlledPeers(element); + }); + } + inline auto AutomationProperties::PositionInSetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.PositionInSetProperty(); + }); + } + inline auto AutomationProperties::GetPositionInSet( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetPositionInSet(element); + }); + } + inline auto AutomationProperties::SetPositionInSet( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetPositionInSet(element, value); + }); + } + inline auto AutomationProperties::SizeOfSetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.SizeOfSetProperty(); + }); + } + inline auto AutomationProperties::GetSizeOfSet( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetSizeOfSet(element); + }); + } + inline auto AutomationProperties::SetSizeOfSet( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetSizeOfSet(element, value); + }); + } + inline auto AutomationProperties::LevelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.LevelProperty(); + }); + } + inline auto AutomationProperties::GetLevel( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetLevel(element); + }); + } + inline auto AutomationProperties::SetLevel( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetLevel(element, value); + }); + } + inline auto AutomationProperties::AnnotationsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.AnnotationsProperty(); + }); + } + inline auto AutomationProperties::GetAnnotations( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetAnnotations(element); + }); + } + inline auto AutomationProperties::LandmarkTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.LandmarkTypeProperty(); + }); + } + inline auto AutomationProperties::GetLandmarkType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetLandmarkType(element); + }); + } + inline auto AutomationProperties::SetLandmarkType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationLandmarkType const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetLandmarkType(element, value); + }); + } + inline auto AutomationProperties::LocalizedLandmarkTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.LocalizedLandmarkTypeProperty(); + }); + } + inline auto AutomationProperties::GetLocalizedLandmarkType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetLocalizedLandmarkType(element); + }); + } + inline auto AutomationProperties::SetLocalizedLandmarkType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetLocalizedLandmarkType(element, value); + }); + } + inline auto AutomationProperties::IsPeripheralProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.IsPeripheralProperty(); + }); + } + inline auto AutomationProperties::GetIsPeripheral( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetIsPeripheral(element); + }); + } + inline auto AutomationProperties::SetIsPeripheral( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetIsPeripheral(element, value); + }); + } + inline auto AutomationProperties::IsDataValidForFormProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.IsDataValidForFormProperty(); + }); + } + inline auto AutomationProperties::GetIsDataValidForForm( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetIsDataValidForForm(element); + }); + } + inline auto AutomationProperties::SetIsDataValidForForm( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetIsDataValidForForm(element, value); + }); + } + inline auto AutomationProperties::FullDescriptionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.FullDescriptionProperty(); + }); + } + inline auto AutomationProperties::GetFullDescription( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetFullDescription(element); + }); + } + inline auto AutomationProperties::SetFullDescription( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetFullDescription(element, value); + }); + } + inline auto AutomationProperties::LocalizedControlTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.LocalizedControlTypeProperty(); + }); + } + inline auto AutomationProperties::GetLocalizedControlType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetLocalizedControlType(element); + }); + } + inline auto AutomationProperties::SetLocalizedControlType( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetLocalizedControlType(element, value); + }); + } + inline auto AutomationProperties::DescribedByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.DescribedByProperty(); + }); + } + inline auto AutomationProperties::GetDescribedBy( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetDescribedBy(element); + }); + } + inline auto AutomationProperties::FlowsToProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.FlowsToProperty(); + }); + } + inline auto AutomationProperties::GetFlowsTo( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetFlowsTo(element); + }); + } + inline auto AutomationProperties::FlowsFromProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.FlowsFromProperty(); + }); + } + inline auto AutomationProperties::GetFlowsFrom( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetFlowsFrom(element); + }); + } + inline auto AutomationProperties::CultureProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.CultureProperty(); + }); + } + inline auto AutomationProperties::GetCulture( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetCulture(element); + }); + } + inline auto AutomationProperties::SetCulture( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetCulture(element, value); + }); + } + inline auto AutomationProperties::HeadingLevelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.HeadingLevelProperty(); + }); + } + inline auto AutomationProperties::GetHeadingLevel( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetHeadingLevel(element); + }); + } + inline auto AutomationProperties::SetHeadingLevel( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationHeadingLevel const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetHeadingLevel(element, value); + }); + } + inline auto AutomationProperties::IsDialogProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics const&), + AutomationProperties, IAutomationPropertiesStatics>( + [](IAutomationPropertiesStatics const& f) { + return f.IsDialogProperty(); + }); + } + inline auto AutomationProperties::GetIsDialog( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.GetIsDialog(element); + }); + } + inline auto AutomationProperties::SetIsDialog( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](IAutomationPropertiesStatics const& f) { + return f.SetIsDialog(element, value); + }); + } + inline auto AutomationProperties::AutomationControlTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutomationPropertiesStatics2 const&), + AutomationProperties, IAutomationPropertiesStatics2>( + [](IAutomationPropertiesStatics2 const& f) { + return f.AutomationControlTypeProperty(); + }); + } + inline auto AutomationProperties::GetAutomationControlType( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IAutomationPropertiesStatics2 const& f) { + return f.GetAutomationControlType(element); + }); + } + inline auto AutomationProperties::SetAutomationControlType( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationControlType const& value) { + impl::call_factory( + [&](IAutomationPropertiesStatics2 const& f) { + return f.SetAutomationControlType(element, value); + }); + } + inline auto DockPatternIdentifiers::DockPositionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDockPatternIdentifiersStatics const&), + DockPatternIdentifiers, IDockPatternIdentifiersStatics>( + [](IDockPatternIdentifiersStatics const& f) { + return f.DockPositionProperty(); + }); + } + inline auto DragPatternIdentifiers::DropEffectProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDragPatternIdentifiersStatics const&), + DragPatternIdentifiers, IDragPatternIdentifiersStatics>( + [](IDragPatternIdentifiersStatics const& f) { + return f.DropEffectProperty(); + }); + } + inline auto DragPatternIdentifiers::DropEffectsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDragPatternIdentifiersStatics const&), + DragPatternIdentifiers, IDragPatternIdentifiersStatics>( + [](IDragPatternIdentifiersStatics const& f) { + return f.DropEffectsProperty(); + }); + } + inline auto DragPatternIdentifiers::GrabbedItemsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDragPatternIdentifiersStatics const&), + DragPatternIdentifiers, IDragPatternIdentifiersStatics>( + [](IDragPatternIdentifiersStatics const& f) { + return f.GrabbedItemsProperty(); + }); + } + inline auto DragPatternIdentifiers::IsGrabbedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDragPatternIdentifiersStatics const&), + DragPatternIdentifiers, IDragPatternIdentifiersStatics>( + [](IDragPatternIdentifiersStatics const& f) { + return f.IsGrabbedProperty(); + }); + } + inline auto DropTargetPatternIdentifiers::DropTargetEffectProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDropTargetPatternIdentifiersStatics const&), + DropTargetPatternIdentifiers, IDropTargetPatternIdentifiersStatics>( + [](IDropTargetPatternIdentifiersStatics const& f) { + return f.DropTargetEffectProperty(); + }); + } + inline auto DropTargetPatternIdentifiers::DropTargetEffectsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IDropTargetPatternIdentifiersStatics const&), + DropTargetPatternIdentifiers, IDropTargetPatternIdentifiersStatics>( + [](IDropTargetPatternIdentifiersStatics const& f) { + return f.DropTargetEffectsProperty(); + }); + } + inline auto ExpandCollapsePatternIdentifiers::ExpandCollapseStateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IExpandCollapsePatternIdentifiersStatics const&), + ExpandCollapsePatternIdentifiers, + IExpandCollapsePatternIdentifiersStatics>( + [](IExpandCollapsePatternIdentifiersStatics const& f) { + return f.ExpandCollapseStateProperty(); + }); + } + inline auto GridItemPatternIdentifiers::ColumnProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridItemPatternIdentifiersStatics const&), + GridItemPatternIdentifiers, IGridItemPatternIdentifiersStatics>( + [](IGridItemPatternIdentifiersStatics const& f) { + return f.ColumnProperty(); + }); + } + inline auto GridItemPatternIdentifiers::ColumnSpanProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridItemPatternIdentifiersStatics const&), + GridItemPatternIdentifiers, IGridItemPatternIdentifiersStatics>( + [](IGridItemPatternIdentifiersStatics const& f) { + return f.ColumnSpanProperty(); + }); + } + inline auto GridItemPatternIdentifiers::ContainingGridProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridItemPatternIdentifiersStatics const&), + GridItemPatternIdentifiers, IGridItemPatternIdentifiersStatics>( + [](IGridItemPatternIdentifiersStatics const& f) { + return f.ContainingGridProperty(); + }); + } + inline auto GridItemPatternIdentifiers::RowProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridItemPatternIdentifiersStatics const&), + GridItemPatternIdentifiers, IGridItemPatternIdentifiersStatics>( + [](IGridItemPatternIdentifiersStatics const& f) { + return f.RowProperty(); + }); + } + inline auto GridItemPatternIdentifiers::RowSpanProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridItemPatternIdentifiersStatics const&), + GridItemPatternIdentifiers, IGridItemPatternIdentifiersStatics>( + [](IGridItemPatternIdentifiersStatics const& f) { + return f.RowSpanProperty(); + }); + } + inline auto GridPatternIdentifiers::ColumnCountProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridPatternIdentifiersStatics const&), + GridPatternIdentifiers, IGridPatternIdentifiersStatics>( + [](IGridPatternIdentifiersStatics const& f) { + return f.ColumnCountProperty(); + }); + } + inline auto GridPatternIdentifiers::RowCountProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IGridPatternIdentifiersStatics const&), + GridPatternIdentifiers, IGridPatternIdentifiersStatics>( + [](IGridPatternIdentifiersStatics const& f) { + return f.RowCountProperty(); + }); + } + inline auto MultipleViewPatternIdentifiers::CurrentViewProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IMultipleViewPatternIdentifiersStatics const&), + MultipleViewPatternIdentifiers, IMultipleViewPatternIdentifiersStatics>( + [](IMultipleViewPatternIdentifiersStatics const& f) { + return f.CurrentViewProperty(); + }); + } + inline auto MultipleViewPatternIdentifiers::SupportedViewsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IMultipleViewPatternIdentifiersStatics const&), + MultipleViewPatternIdentifiers, IMultipleViewPatternIdentifiersStatics>( + [](IMultipleViewPatternIdentifiersStatics const& f) { + return f.SupportedViewsProperty(); + }); + } + inline auto RangeValuePatternIdentifiers::IsReadOnlyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IRangeValuePatternIdentifiersStatics const&), + RangeValuePatternIdentifiers, IRangeValuePatternIdentifiersStatics>( + [](IRangeValuePatternIdentifiersStatics const& f) { + return f.IsReadOnlyProperty(); + }); + } + inline auto RangeValuePatternIdentifiers::LargeChangeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IRangeValuePatternIdentifiersStatics const&), + RangeValuePatternIdentifiers, IRangeValuePatternIdentifiersStatics>( + [](IRangeValuePatternIdentifiersStatics const& f) { + return f.LargeChangeProperty(); + }); + } + inline auto RangeValuePatternIdentifiers::MaximumProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IRangeValuePatternIdentifiersStatics const&), + RangeValuePatternIdentifiers, IRangeValuePatternIdentifiersStatics>( + [](IRangeValuePatternIdentifiersStatics const& f) { + return f.MaximumProperty(); + }); + } + inline auto RangeValuePatternIdentifiers::MinimumProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IRangeValuePatternIdentifiersStatics const&), + RangeValuePatternIdentifiers, IRangeValuePatternIdentifiersStatics>( + [](IRangeValuePatternIdentifiersStatics const& f) { + return f.MinimumProperty(); + }); + } + inline auto RangeValuePatternIdentifiers::SmallChangeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IRangeValuePatternIdentifiersStatics const&), + RangeValuePatternIdentifiers, IRangeValuePatternIdentifiersStatics>( + [](IRangeValuePatternIdentifiersStatics const& f) { + return f.SmallChangeProperty(); + }); + } + inline auto RangeValuePatternIdentifiers::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IRangeValuePatternIdentifiersStatics const&), + RangeValuePatternIdentifiers, IRangeValuePatternIdentifiersStatics>( + [](IRangeValuePatternIdentifiersStatics const& f) { + return f.ValueProperty(); + }); + } + inline auto ScrollPatternIdentifiers::HorizontallyScrollableProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { + return f.HorizontallyScrollableProperty(); + }); + } + inline auto ScrollPatternIdentifiers::HorizontalScrollPercentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { + return f.HorizontalScrollPercentProperty(); + }); + } + inline auto ScrollPatternIdentifiers::HorizontalViewSizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { + return f.HorizontalViewSizeProperty(); + }); + } + inline auto ScrollPatternIdentifiers::NoScroll() { + return impl::call_factory_cast< + double (*)(IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { return f.NoScroll(); }); + } + inline auto ScrollPatternIdentifiers::VerticallyScrollableProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { + return f.VerticallyScrollableProperty(); + }); + } + inline auto ScrollPatternIdentifiers::VerticalScrollPercentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { + return f.VerticalScrollPercentProperty(); + }); + } + inline auto ScrollPatternIdentifiers::VerticalViewSizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IScrollPatternIdentifiersStatics const&), + ScrollPatternIdentifiers, IScrollPatternIdentifiersStatics>( + [](IScrollPatternIdentifiersStatics const& f) { + return f.VerticalViewSizeProperty(); + }); + } + inline auto SelectionItemPatternIdentifiers::IsSelectedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ISelectionItemPatternIdentifiersStatics const&), + SelectionItemPatternIdentifiers, + ISelectionItemPatternIdentifiersStatics>( + [](ISelectionItemPatternIdentifiersStatics const& f) { + return f.IsSelectedProperty(); + }); + } + inline auto SelectionItemPatternIdentifiers::SelectionContainerProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ISelectionItemPatternIdentifiersStatics const&), + SelectionItemPatternIdentifiers, + ISelectionItemPatternIdentifiersStatics>( + [](ISelectionItemPatternIdentifiersStatics const& f) { + return f.SelectionContainerProperty(); + }); + } + inline auto SelectionPatternIdentifiers::CanSelectMultipleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ISelectionPatternIdentifiersStatics const&), + SelectionPatternIdentifiers, ISelectionPatternIdentifiersStatics>( + [](ISelectionPatternIdentifiersStatics const& f) { + return f.CanSelectMultipleProperty(); + }); + } + inline auto SelectionPatternIdentifiers::IsSelectionRequiredProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ISelectionPatternIdentifiersStatics const&), + SelectionPatternIdentifiers, ISelectionPatternIdentifiersStatics>( + [](ISelectionPatternIdentifiersStatics const& f) { + return f.IsSelectionRequiredProperty(); + }); + } + inline auto SelectionPatternIdentifiers::SelectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ISelectionPatternIdentifiersStatics const&), + SelectionPatternIdentifiers, ISelectionPatternIdentifiersStatics>( + [](ISelectionPatternIdentifiersStatics const& f) { + return f.SelectionProperty(); + }); + } + inline auto SpreadsheetItemPatternIdentifiers::FormulaProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ISpreadsheetItemPatternIdentifiersStatics const&), + SpreadsheetItemPatternIdentifiers, + ISpreadsheetItemPatternIdentifiersStatics>( + [](ISpreadsheetItemPatternIdentifiersStatics const& f) { + return f.FormulaProperty(); + }); + } + inline auto StylesPatternIdentifiers::ExtendedPropertiesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.ExtendedPropertiesProperty(); + }); + } + inline auto StylesPatternIdentifiers::FillColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.FillColorProperty(); + }); + } + inline auto StylesPatternIdentifiers::FillPatternColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.FillPatternColorProperty(); + }); + } + inline auto StylesPatternIdentifiers::FillPatternStyleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.FillPatternStyleProperty(); + }); + } + inline auto StylesPatternIdentifiers::ShapeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.ShapeProperty(); + }); + } + inline auto StylesPatternIdentifiers::StyleIdProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.StyleIdProperty(); + }); + } + inline auto StylesPatternIdentifiers::StyleNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IStylesPatternIdentifiersStatics const&), + StylesPatternIdentifiers, IStylesPatternIdentifiersStatics>( + [](IStylesPatternIdentifiersStatics const& f) { + return f.StyleNameProperty(); + }); + } + inline auto TableItemPatternIdentifiers::ColumnHeaderItemsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITableItemPatternIdentifiersStatics const&), + TableItemPatternIdentifiers, ITableItemPatternIdentifiersStatics>( + [](ITableItemPatternIdentifiersStatics const& f) { + return f.ColumnHeaderItemsProperty(); + }); + } + inline auto TableItemPatternIdentifiers::RowHeaderItemsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITableItemPatternIdentifiersStatics const&), + TableItemPatternIdentifiers, ITableItemPatternIdentifiersStatics>( + [](ITableItemPatternIdentifiersStatics const& f) { + return f.RowHeaderItemsProperty(); + }); + } + inline auto TablePatternIdentifiers::ColumnHeadersProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITablePatternIdentifiersStatics const&), + TablePatternIdentifiers, ITablePatternIdentifiersStatics>( + [](ITablePatternIdentifiersStatics const& f) { + return f.ColumnHeadersProperty(); + }); + } + inline auto TablePatternIdentifiers::RowHeadersProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITablePatternIdentifiersStatics const&), + TablePatternIdentifiers, ITablePatternIdentifiersStatics>( + [](ITablePatternIdentifiersStatics const& f) { + return f.RowHeadersProperty(); + }); + } + inline auto TablePatternIdentifiers::RowOrColumnMajorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITablePatternIdentifiersStatics const&), + TablePatternIdentifiers, ITablePatternIdentifiersStatics>( + [](ITablePatternIdentifiersStatics const& f) { + return f.RowOrColumnMajorProperty(); + }); + } + inline auto TogglePatternIdentifiers::ToggleStateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITogglePatternIdentifiersStatics const&), + TogglePatternIdentifiers, ITogglePatternIdentifiersStatics>( + [](ITogglePatternIdentifiersStatics const& f) { + return f.ToggleStateProperty(); + }); + } + inline auto TransformPattern2Identifiers::CanZoomProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPattern2IdentifiersStatics const&), + TransformPattern2Identifiers, ITransformPattern2IdentifiersStatics>( + [](ITransformPattern2IdentifiersStatics const& f) { + return f.CanZoomProperty(); + }); + } + inline auto TransformPattern2Identifiers::ZoomLevelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPattern2IdentifiersStatics const&), + TransformPattern2Identifiers, ITransformPattern2IdentifiersStatics>( + [](ITransformPattern2IdentifiersStatics const& f) { + return f.ZoomLevelProperty(); + }); + } + inline auto TransformPattern2Identifiers::MaxZoomProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPattern2IdentifiersStatics const&), + TransformPattern2Identifiers, ITransformPattern2IdentifiersStatics>( + [](ITransformPattern2IdentifiersStatics const& f) { + return f.MaxZoomProperty(); + }); + } + inline auto TransformPattern2Identifiers::MinZoomProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPattern2IdentifiersStatics const&), + TransformPattern2Identifiers, ITransformPattern2IdentifiersStatics>( + [](ITransformPattern2IdentifiersStatics const& f) { + return f.MinZoomProperty(); + }); + } + inline auto TransformPatternIdentifiers::CanMoveProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPatternIdentifiersStatics const&), + TransformPatternIdentifiers, ITransformPatternIdentifiersStatics>( + [](ITransformPatternIdentifiersStatics const& f) { + return f.CanMoveProperty(); + }); + } + inline auto TransformPatternIdentifiers::CanResizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPatternIdentifiersStatics const&), + TransformPatternIdentifiers, ITransformPatternIdentifiersStatics>( + [](ITransformPatternIdentifiersStatics const& f) { + return f.CanResizeProperty(); + }); + } + inline auto TransformPatternIdentifiers::CanRotateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + ITransformPatternIdentifiersStatics const&), + TransformPatternIdentifiers, ITransformPatternIdentifiersStatics>( + [](ITransformPatternIdentifiersStatics const& f) { + return f.CanRotateProperty(); + }); + } + inline auto ValuePatternIdentifiers::IsReadOnlyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IValuePatternIdentifiersStatics const&), + ValuePatternIdentifiers, IValuePatternIdentifiersStatics>( + [](IValuePatternIdentifiersStatics const& f) { + return f.IsReadOnlyProperty(); + }); + } + inline auto ValuePatternIdentifiers::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IValuePatternIdentifiersStatics const&), + ValuePatternIdentifiers, IValuePatternIdentifiersStatics>( + [](IValuePatternIdentifiersStatics const& f) { + return f.ValueProperty(); + }); + } + inline auto WindowPatternIdentifiers::CanMaximizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IWindowPatternIdentifiersStatics const&), + WindowPatternIdentifiers, IWindowPatternIdentifiersStatics>( + [](IWindowPatternIdentifiersStatics const& f) { + return f.CanMaximizeProperty(); + }); + } + inline auto WindowPatternIdentifiers::CanMinimizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IWindowPatternIdentifiersStatics const&), + WindowPatternIdentifiers, IWindowPatternIdentifiersStatics>( + [](IWindowPatternIdentifiersStatics const& f) { + return f.CanMinimizeProperty(); + }); + } + inline auto WindowPatternIdentifiers::IsModalProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IWindowPatternIdentifiersStatics const&), + WindowPatternIdentifiers, IWindowPatternIdentifiersStatics>( + [](IWindowPatternIdentifiersStatics const& f) { + return f.IsModalProperty(); + }); + } + inline auto WindowPatternIdentifiers::IsTopmostProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IWindowPatternIdentifiersStatics const&), + WindowPatternIdentifiers, IWindowPatternIdentifiersStatics>( + [](IWindowPatternIdentifiersStatics const& f) { + return f.IsTopmostProperty(); + }); + } + inline auto WindowPatternIdentifiers::WindowInteractionStateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IWindowPatternIdentifiersStatics const&), + WindowPatternIdentifiers, IWindowPatternIdentifiersStatics>( + [](IWindowPatternIdentifiersStatics const& f) { + return f.WindowInteractionStateProperty(); + }); + } + inline auto WindowPatternIdentifiers::WindowVisualStateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Automation::AutomationProperty (*)( + IWindowPatternIdentifiersStatics const&), + WindowPatternIdentifiers, IWindowPatternIdentifiersStatics>( + [](IWindowPatternIdentifiersStatics const& f) { + return f.WindowVisualStateProperty(); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IAnnotationPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IAutomationAnnotationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IAutomationElementIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IAutomationPropertiesStatics2> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IDockPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IDragPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IDropTargetPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IExpandCollapsePatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IGridItemPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IGridPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IMultipleViewPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IRangeValuePatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IScrollPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ISelectionItemPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ISelectionPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ISelectionPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ISpreadsheetItemPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IStylesPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITableItemPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITableItemPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITablePatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITogglePatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITransformPattern2Identifiers> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITransformPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ITransformPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IValuePatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::IWindowPatternIdentifiersStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::AnnotationPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::AutomationElementIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::DropTargetPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::ExpandCollapsePatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::MultipleViewPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::RangeValuePatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::SelectionItemPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::SpreadsheetItemPatternIdentifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Automation::TransformPattern2Identifiers> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.AnimatedVisuals.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.AnimatedVisuals.h new file mode 100644 index 00000000..36d1b3ef --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.AnimatedVisuals.h @@ -0,0 +1,135 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Controls_AnimatedVisuals_H +#define WINRT_Microsoft_UI_Xaml_Controls_AnimatedVisuals_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Controls.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.AnimatedVisuals.2.h" +namespace winrt::impl {} +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Controls::AnimatedVisuals { + inline AnimatedAcceptVisualSource::AnimatedAcceptVisualSource() + : AnimatedAcceptVisualSource( + impl::call_factory_cast< + AnimatedAcceptVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedAcceptVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline AnimatedBackVisualSource::AnimatedBackVisualSource() + : AnimatedBackVisualSource( + impl::call_factory_cast< + AnimatedBackVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedBackVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline AnimatedChevronDownSmallVisualSource:: + AnimatedChevronDownSmallVisualSource() + : AnimatedChevronDownSmallVisualSource( + impl::call_factory_cast< + AnimatedChevronDownSmallVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedChevronDownSmallVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AnimatedChevronDownSmallVisualSource>(); + })) {} + inline AnimatedChevronRightDownSmallVisualSource:: + AnimatedChevronRightDownSmallVisualSource() + : AnimatedChevronRightDownSmallVisualSource( + impl::call_factory_cast< + AnimatedChevronRightDownSmallVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedChevronRightDownSmallVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AnimatedChevronRightDownSmallVisualSource>(); + })) {} + inline AnimatedChevronUpDownSmallVisualSource:: + AnimatedChevronUpDownSmallVisualSource() + : AnimatedChevronUpDownSmallVisualSource( + impl::call_factory_cast< + AnimatedChevronUpDownSmallVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedChevronUpDownSmallVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AnimatedChevronUpDownSmallVisualSource>(); + })) {} + inline AnimatedFindVisualSource::AnimatedFindVisualSource() + : AnimatedFindVisualSource( + impl::call_factory_cast< + AnimatedFindVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedFindVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline AnimatedGlobalNavigationButtonVisualSource:: + AnimatedGlobalNavigationButtonVisualSource() + : AnimatedGlobalNavigationButtonVisualSource( + impl::call_factory_cast< + AnimatedGlobalNavigationButtonVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedGlobalNavigationButtonVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AnimatedGlobalNavigationButtonVisualSource>(); + })) {} + inline AnimatedSettingsVisualSource::AnimatedSettingsVisualSource() + : AnimatedSettingsVisualSource( + impl::call_factory_cast< + AnimatedSettingsVisualSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AnimatedSettingsVisualSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AnimatedSettingsVisualSource>(); + })) {} +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.Primitives.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.Primitives.h new file mode 100644 index 00000000..1d843d12 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.Primitives.h @@ -0,0 +1,38635 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Controls_Primitives_H +#define WINRT_Microsoft_UI_Xaml_Controls_Primitives_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Controls.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Data.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Input.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Animation.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +#include "winrt/impl/Windows.UI.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarButtonTemplateSettings< + D>::KeyboardAcceleratorTextMinWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IAppBarButtonTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::ClipRect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::CompactVerticalDelta() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactVerticalDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactVerticalDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::CompactRootMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactRootMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactRootMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::MinimalVerticalDelta() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinimalVerticalDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinimalVerticalDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::MinimalRootMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinimalRootMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinimalRootMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::HiddenVerticalDelta() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HiddenVerticalDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HiddenVerticalDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::HiddenRootMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HiddenRootMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HiddenRootMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::NegativeCompactVerticalDelta() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NegativeCompactVerticalDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NegativeCompactVerticalDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::NegativeMinimalVerticalDelta() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NegativeMinimalVerticalDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NegativeMinimalVerticalDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings< + D>::NegativeHiddenVerticalDelta() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NegativeHiddenVerticalDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NegativeHiddenVerticalDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAppBarToggleButtonTemplateSettings< + D>::KeyboardAcceleratorTextMinWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IAppBarToggleButtonTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IAppBarToggleButtonTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAutoSuggestBoxHelperStatics< + D>::KeepInteriorCornersSquareProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeepInteriorCornersSquareProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeepInteriorCornersSquareProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAutoSuggestBoxHelperStatics< + D>::SetKeepInteriorCornersSquare(winrt::Microsoft::UI::Xaml::Controls:: + AutoSuggestBox const& autoSuggestBox, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetKeepInteriorCornersSquare( + *(void**)(&autoSuggestBox), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetKeepInteriorCornersSquare( + *(void**)(&autoSuggestBox), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IAutoSuggestBoxHelperStatics< + D>::GetKeepInteriorCornersSquare(winrt::Microsoft::UI::Xaml::Controls:: + AutoSuggestBox const& autoSuggestBox) + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetKeepInteriorCornersSquare( + *(void**)(&autoSuggestBox), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetKeepInteriorCornersSquare( + *(void**)(&autoSuggestBox), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::ClickMode() + const { + winrt::Microsoft::UI::Xaml::Controls::ClickMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ClickMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ClickMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::ClickMode( + winrt::Microsoft::UI::Xaml::Controls::ClickMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClickMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClickMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase< + D>::IsPointerOver() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPointerOver(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPointerOver(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::IsPressed() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPressed(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPressed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::Command() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Command(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::Command( + winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase< + D>::CommandParameter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase< + D>::CommandParameter(winrt::Windows::Foundation::IInspectable const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::Click( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::Click( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, Click(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBase::Click( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBaseFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ButtonBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBaseStatics< + D>::ClickModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClickModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClickModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBaseStatics< + D>::IsPointerOverProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPointerOverProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPointerOverProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBaseStatics< + D>::IsPressedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPressedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPressedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBaseStatics< + D>::CommandProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IButtonBaseStatics< + D>::CommandParameterProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::MinViewWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinViewWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinViewWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::HeaderText() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderText(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderText(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay1() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay1(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay1(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay2() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay2(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay2(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay3() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay3(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay3(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay4() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay4(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay4(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay5() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay5(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay5(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay6() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay6(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay6(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::WeekDay7() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WeekDay7(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WeekDay7(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::HasMoreContentAfter() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasMoreContentAfter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasMoreContentAfter(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::HasMoreContentBefore() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasMoreContentBefore(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasMoreContentBefore(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::HasMoreViews() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasMoreViews(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasMoreViews(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::ClipRect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::CenterX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings< + D>::CenterY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICalendarViewTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::CanVerticallyScroll() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::CanVerticallyScroll(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::CanHorizontallyScroll() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::CanHorizontallyScroll(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::ExtentWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::ExtentHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::ViewportWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::ViewportHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::HorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::VerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::ScrollOwner() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel:: + ScrollOwner(winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel::LineUp() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineUp()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineUp()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel::LineDown() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineDown()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineDown()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel::LineLeft() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineLeft()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineLeft()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::LineRight() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineRight()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineRight()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel::PageUp() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageUp()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageUp()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel::PageDown() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageDown()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageDown()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel::PageLeft() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageLeft()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageLeft()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::PageRight() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageRight()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageRight()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::MouseWheelUp() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelUp()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelUp()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::MouseWheelDown() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelDown()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelDown()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::MouseWheelLeft() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelLeft()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelLeft()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::MouseWheelRight() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelRight()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelRight()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::SetHorizontalOffset(double offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::SetVerticalOffset(double offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanel< + D>::MakeVisible(winrt::Microsoft::UI::Xaml::UIElement const& visual, + winrt::Windows::Foundation::Rect const& rectangle) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MakeVisible( + *(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MakeVisible( + *(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICarouselPanelFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanelFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::CarouselPanel{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorPickerSlider< + D>::ColorChannel() const { + winrt::Microsoft::UI::Xaml::Controls::ColorPickerHsvChannel value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSlider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ColorChannel(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ColorChannel(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorPickerSlider:: + ColorChannel( + winrt::Microsoft::UI::Xaml::Controls::ColorPickerHsvChannel const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSlider, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ColorChannel(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ColorChannel(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorPickerSliderFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorPickerSlider{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorPickerSliderStatics< + D>::ColorChannelProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorChannelProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorChannelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::Color() + const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::HsvColor() + const { + winrt::Windows::Foundation::Numerics::float4 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HsvColor(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HsvColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::HsvColor( + winrt::Windows::Foundation::Numerics::float4 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HsvColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HsvColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MinHue() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHue(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MinHue( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinHue(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinHue(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxHue() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHue(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxHue( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxHue(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxHue(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum< + D>::MinSaturation() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinSaturation(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinSaturation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum< + D>::MinSaturation(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinSaturation(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinSaturation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum< + D>::MaxSaturation() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSaturation(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSaturation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum< + D>::MaxSaturation(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxSaturation(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxSaturation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MinValue() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinValue(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinValue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MinValue( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinValue(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinValue(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxValue() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxValue(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxValue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxValue( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxValue(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxValue(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::Shape() + const { + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumShape value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Shape(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Shape(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum::Shape( + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumShape const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Shape(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Shape(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum< + D>::Components() const { + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumComponents value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Components(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Components(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum:: + Components( + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumComponents const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Components(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Components(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum:: + ColorChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum, + winrt::Microsoft::UI::Xaml::Controls::ColorChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ColorChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_ColorChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum:: + ColorChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum, + winrt::Microsoft::UI::Xaml::Controls::ColorChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ColorChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrum< + D>::ColorChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ColorChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ColorChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::ColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::HsvColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HsvColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HsvColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::MinHueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::MaxHueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::MinSaturationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinSaturationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinSaturationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::MaxSaturationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSaturationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSaturationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::MinValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::MaxValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::ShapeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShapeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShapeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColorSpectrumStatics< + D>::ComponentsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComponentsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComponentsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayout< + D>::MaxColumns() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxColumns(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxColumns(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayout< + D>::MaxColumns(int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxColumns(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxColumns(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayout< + D>::ColumnSpacing() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpacing(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpacing(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayout< + D>::ColumnSpacing(double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ColumnSpacing(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ColumnSpacing(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayout< + D>::RowSpacing() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpacing(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpacing(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayout< + D>::RowSpacing(double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RowSpacing(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RowSpacing(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayoutFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ColumnMajorUniformToLargestGridLayout{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayoutStatics< + D>::MaxColumnsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxColumnsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxColumnsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayoutStatics< + D>::ColumnSpacingProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpacingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IColumnMajorUniformToLargestGridLayoutStatics< + D>::RowSpacingProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayoutStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpacingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxHelperStatics< + D>::KeepInteriorCornersSquareProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeepInteriorCornersSquareProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeepInteriorCornersSquareProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxHelperStatics:: + SetKeepInteriorCornersSquare( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& comboBox, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetKeepInteriorCornersSquare( + *(void**)(&comboBox), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetKeepInteriorCornersSquare( + *(void**)(&comboBox), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxHelperStatics:: + GetKeepInteriorCornersSquare( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& comboBox) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetKeepInteriorCornersSquare( + *(void**)(&comboBox), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetKeepInteriorCornersSquare( + *(void**)(&comboBox), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings< + D>::DropDownOpenedHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropDownOpenedHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropDownOpenedHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings< + D>::DropDownClosedHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropDownClosedHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropDownClosedHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings< + D>::DropDownOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropDownOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropDownOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings< + D>::SelectedItemDirection() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings< + D>::DropDownContentMinWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropDownContentMinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropDownContentMinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBar< + D>::FlyoutTemplateSettings() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlyoutTemplateSettings(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlyoutTemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + CommandBarFlyoutCommandBarTemplateSettings{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBar2< + D>::SystemBackdrop() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBar2< + D>::SystemBackdrop(winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarAutomationPropertiesStatics< + D>::ControlTypeProperty() const { + void* value{}; + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>**)this; + check_hresult(_winrt_abi_type->get_ControlTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarAutomationPropertiesStatics< + D>::GetControlType(winrt::Microsoft::UI::Xaml::UIElement const& element) + const { + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType result{}; + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetControlType( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>**)this; + check_hresult(_winrt_abi_type->GetControlType( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarAutomationPropertiesStatics< + D>::SetControlType(winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationControlType const& value) const { + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetControlType(*(void**)(&element), + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>**)this; + check_hresult(_winrt_abi_type->SetControlType(*(void**)(&element), + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + CommandBarFlyoutCommandBar{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarStatics< + D>::SystemBackdropProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::OpenAnimationStartPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenAnimationStartPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenAnimationStartPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::OpenAnimationEndPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenAnimationEndPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenAnimationEndPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::CloseAnimationEndPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseAnimationEndPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseAnimationEndPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::CurrentWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandedWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::WidthExpansionDelta() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WidthExpansionDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WidthExpansionDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::WidthExpansionAnimationStartPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WidthExpansionAnimationStartPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WidthExpansionAnimationStartPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::WidthExpansionAnimationEndPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WidthExpansionAnimationEndPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WidthExpansionAnimationEndPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::WidthExpansionMoreButtonAnimationStartPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WidthExpansionMoreButtonAnimationStartPosition( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WidthExpansionMoreButtonAnimationStartPosition( + &value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::WidthExpansionMoreButtonAnimationEndPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_WidthExpansionMoreButtonAnimationEndPosition( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_WidthExpansionMoreButtonAnimationEndPosition( + &value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandUpOverflowVerticalPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExpandUpOverflowVerticalPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExpandUpOverflowVerticalPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandDownOverflowVerticalPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExpandDownOverflowVerticalPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExpandDownOverflowVerticalPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandUpAnimationStartPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandUpAnimationStartPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandUpAnimationStartPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandUpAnimationEndPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandUpAnimationEndPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandUpAnimationEndPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandUpAnimationHoldPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandUpAnimationHoldPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandUpAnimationHoldPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandDownAnimationStartPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExpandDownAnimationStartPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExpandDownAnimationStartPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandDownAnimationEndPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandDownAnimationEndPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandDownAnimationEndPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ExpandDownAnimationHoldPosition() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandDownAnimationHoldPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandDownAnimationHoldPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::ContentClipRect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentClipRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentClipRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings< + D>::OverflowContentClipRect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICommandBarFlyoutCommandBarTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::ContentHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentClipRect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentMinWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentMinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentMinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentMaxWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentMaxWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentMaxWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentMaxHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentMaxHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentMaxHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::NegativeOverflowContentHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NegativeOverflowContentHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NegativeOverflowContentHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::EffectiveOverflowButtonVisibility() const { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EffectiveOverflowButtonVisibility( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EffectiveOverflowButtonVisibility( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentCompactYTranslation() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_OverflowContentCompactYTranslation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_OverflowContentCompactYTranslation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentMinimalYTranslation() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_OverflowContentMinimalYTranslation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_OverflowContentMinimalYTranslation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings< + D>::OverflowContentHiddenYTranslation() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_OverflowContentHiddenYTranslation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_OverflowContentHiddenYTranslation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusFilterConverter< + D>::Filter() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::CornerRadiusFilterKind + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Filter(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Filter(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusFilterConverter< + D>::Filter(winrt::Microsoft::UI::Xaml::Controls::Primitives:: + CornerRadiusFilterKind const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Filter(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Filter(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusFilterConverter< + D>::Scale() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusFilterConverter< + D>::Scale(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusFilterConverterStatics< + D>::FilterProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusFilterConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusFilterConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FilterProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FilterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusFilterConverterStatics< + D>::ScaleProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusFilterConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusFilterConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusToThicknessConverter< + D>::ConversionKind() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + CornerRadiusToThicknessConverterKind value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConversionKind( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConversionKind( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusToThicknessConverter< + D>::ConversionKind(winrt::Microsoft::UI::Xaml::Controls::Primitives:: + CornerRadiusToThicknessConverterKind const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ConversionKind(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ConversionKind(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusToThicknessConverter< + D>::Multiplier() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Multiplier(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Multiplier(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusToThicknessConverter< + D>::Multiplier(double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Multiplier(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Multiplier(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusToThicknessConverterStatics< + D>::ConversionKindProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConversionKindProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConversionKindProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ICornerRadiusToThicknessConverterStatics< + D>::MultiplierProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ICornerRadiusToThicknessConverterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MultiplierProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MultiplierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragCompletedEventArgs< + D>::HorizontalChange() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragCompletedEventArgs< + D>::VerticalChange() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragCompletedEventArgs< + D>::Canceled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Canceled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Canceled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragCompletedEventArgsFactory< + D>:: + CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + double horizontalChange, double verticalChange, bool canceled, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IDragCompletedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type + ->CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + horizontalChange, verticalChange, canceled, + *(void**)(&baseInterface), impl::bind_out(innerInterface), + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type + ->CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + horizontalChange, verticalChange, canceled, + *(void**)(&baseInterface), impl::bind_out(innerInterface), + &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragCompletedEventArgs{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragDeltaEventArgs< + D>::HorizontalChange() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragDeltaEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragDeltaEventArgs< + D>::VerticalChange() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragDeltaEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalChange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragDeltaEventArgsFactory< + D>:: + CreateInstanceWithHorizontalChangeAndVerticalChange( + double horizontalChange, double verticalChange, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithHorizontalChangeAndVerticalChange( + horizontalChange, verticalChange, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithHorizontalChangeAndVerticalChange( + horizontalChange, verticalChange, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::DragDeltaEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragStartedEventArgs< + D>::HorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragStartedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragStartedEventArgs< + D>::VerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragStartedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IDragStartedEventArgsFactory< + D>:: + CreateInstanceWithHorizontalOffsetAndVerticalOffset( + double horizontalOffset, double verticalOffset, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithHorizontalOffsetAndVerticalOffset( + horizontalOffset, verticalOffset, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithHorizontalOffsetAndVerticalOffset( + horizontalOffset, verticalOffset, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::DragStartedEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Placement() + const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Placement(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Placement(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Placement( + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Target() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Target(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + return winrt::Microsoft::UI::Xaml::FrameworkElement{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::AllowFocusOnInteraction() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::AllowFocusOnInteraction(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::LightDismissOverlayMode() const { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase:: + LightDismissOverlayMode( + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::AllowFocusWhenDisabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabled(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::AllowFocusWhenDisabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowFocusWhenDisabled(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowFocusWhenDisabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::ShowMode() + const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::ShowMode( + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::InputDevicePrefersPrimaryCommands() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_InputDevicePrefersPrimaryCommands(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_InputDevicePrefersPrimaryCommands(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::AreOpenCloseAnimationsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreOpenCloseAnimationsEnabled(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreOpenCloseAnimationsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::AreOpenCloseAnimationsEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreOpenCloseAnimationsEnabled(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreOpenCloseAnimationsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::ShouldConstrainToRootBounds() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::ShouldConstrainToRootBounds(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::IsConstrainedToRootBounds() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::ElementSoundMode() const { + winrt::Microsoft::UI::Xaml::ElementSoundMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementSoundMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementSoundMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::ElementSoundMode(winrt::Microsoft::UI::Xaml::ElementSoundMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ElementSoundMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ElementSoundMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase< + D>::OverlayInputPassThroughElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverlayInputPassThroughElement(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverlayInputPassThroughElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase:: + OverlayInputPassThroughElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_OverlayInputPassThroughElement(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_OverlayInputPassThroughElement(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::IsOpen() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::XamlRoot() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XamlRoot(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XamlRoot(&value)); + } + return winrt::Microsoft::UI::Xaml::XamlRoot{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::XamlRoot( + winrt::Microsoft::UI::Xaml::XamlRoot const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Opened( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Opened( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Opened(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Opened( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Closed( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Closed( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Closed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Closed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Opening( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Opening(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Opening(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Opening( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Opening(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Opening( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opening(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opening(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Closing( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + FlyoutBaseClosingEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Closing( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + FlyoutBaseClosingEventArgs> const& handler) const { + return impl::make_event_revoker(this, Closing(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Closing( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::ShowAt( + winrt::Microsoft::UI::Xaml::FrameworkElement const& placementTarget) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAt(*(void**)(&placementTarget))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAt(*(void**)(&placementTarget))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::ShowAt( + winrt::Microsoft::UI::Xaml::DependencyObject const& placementTarget, + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowOptions const& + showOptions) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAtWithOptions( + *(void**)(&placementTarget), *(void**)(&showOptions))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAtWithOptions( + *(void**)(&placementTarget), *(void**)(&showOptions))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase::Hide() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase:: + TryInvokeKeyboardAccelerator( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TryInvokeKeyboardAccelerator(*(void**)(&args))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->TryInvokeKeyboardAccelerator(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase2< + D>::SystemBackdrop() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBase2< + D>::SystemBackdrop(winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseClosingEventArgs< + D>::Cancel() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseClosingEventArgs< + D>::Cancel(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseOverrides< + D>::CreatePresenter() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreatePresenter(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreatePresenter(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::Control{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseOverrides:: + OnProcessKeyboardAccelerators( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->OnProcessKeyboardAccelerators(*(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->OnProcessKeyboardAccelerators(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::TargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::PlacementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::AllowFocusOnInteractionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::LightDismissOverlayModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::AllowFocusWhenDisabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::ShowModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::InputDevicePrefersPrimaryCommandsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_InputDevicePrefersPrimaryCommandsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_InputDevicePrefersPrimaryCommandsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::AreOpenCloseAnimationsEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AreOpenCloseAnimationsEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AreOpenCloseAnimationsEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::ShouldConstrainToRootBoundsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::ElementSoundModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::OverlayInputPassThroughElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_OverlayInputPassThroughElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_OverlayInputPassThroughElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::IsOpenProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::AttachedFlyoutProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AttachedFlyoutProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AttachedFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::GetAttachedFlyout(winrt::Microsoft::UI::Xaml::FrameworkElement const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAttachedFlyout(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAttachedFlyout(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics:: + SetAttachedFlyout( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element, + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAttachedFlyout(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAttachedFlyout(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics< + D>::ShowAttachedFlyout(winrt::Microsoft::UI::Xaml::FrameworkElement const& + flyoutOwner) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAttachedFlyout(*(void**)(&flyoutOwner))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAttachedFlyout(*(void**)(&flyoutOwner))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics2< + D>::SystemBackdropProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions< + D>::Position() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions:: + Position(winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Position(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Position(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions< + D>::ExclusionRect() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExclusionRect(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExclusionRect(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Rect>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions:: + ExclusionRect(winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Rect> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExclusionRect(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExclusionRect(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions< + D>::ShowMode() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions:: + ShowMode( + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions< + D>::Placement() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Placement(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Placement(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptions< + D>::Placement(winrt::Microsoft::UI::Xaml::Controls::Primitives:: + FlyoutPlacementMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IFlyoutShowOptionsFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowOptions{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGeneratorPositionHelperStatics< + D>::FromIndexAndOffset(int32_t index, int32_t offset) const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGeneratorPositionHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGeneratorPositionHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->FromIndexAndOffset(index, offset, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->FromIndexAndOffset(index, offset, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectionCheckMarkVisualEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectionCheckMarkVisualEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::CheckHintBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::CheckHintBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::CheckSelectingBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::CheckSelectingBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::CheckBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + CheckBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DragBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DragBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DragForeground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragForeground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DragForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::FocusBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::FocusBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::PlaceholderBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::PlaceholderBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::PointerOverBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::PointerOverBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedForeground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedPointerOverBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + SelectedPointerOverBackground( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedPointerOverBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + SelectedPointerOverBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedBorderThickness() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::SelectedBorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DisabledOpacity() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DisabledOpacity(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DragOpacity() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::DragOpacity(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DragOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DragOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::ReorderHintOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::ReorderHintOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::GridViewItemPresenterHorizontalContentAlignment() const { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterHorizontalContentAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterHorizontalContentAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + GridViewItemPresenterHorizontalContentAlignment( + winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_GridViewItemPresenterHorizontalContentAlignment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_GridViewItemPresenterHorizontalContentAlignment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::GridViewItemPresenterVerticalContentAlignment() const { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterVerticalContentAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterVerticalContentAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + GridViewItemPresenterVerticalContentAlignment( + winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_GridViewItemPresenterVerticalContentAlignment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_GridViewItemPresenterVerticalContentAlignment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::GridViewItemPresenterPadding() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterPadding(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterPadding(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + GridViewItemPresenterPadding( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GridViewItemPresenterPadding( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GridViewItemPresenterPadding( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::PointerOverBackgroundMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::PointerOverBackgroundMargin(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter< + D>::ContentMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenter:: + ContentMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + GridViewItemPresenter{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::SelectionCheckMarkVisualEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::CheckHintBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::CheckSelectingBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::CheckBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::DragBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::DragForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::FocusBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::PlaceholderBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::PointerOverBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::SelectedBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::SelectedForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::SelectedPointerOverBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::SelectedPointerOverBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::SelectedBorderThicknessProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::DisabledOpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::DragOpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::ReorderHintOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::GridViewItemPresenterHorizontalContentAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type + ->get_GridViewItemPresenterHorizontalContentAlignmentProperty( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type + ->get_GridViewItemPresenterHorizontalContentAlignmentProperty( + &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::GridViewItemPresenterVerticalContentAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type + ->get_GridViewItemPresenterVerticalContentAlignmentProperty( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type + ->get_GridViewItemPresenterVerticalContentAlignmentProperty( + &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::GridViewItemPresenterPaddingProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterPaddingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_GridViewItemPresenterPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::PointerOverBackgroundMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics< + D>::ContentMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IGridViewItemTemplateSettings< + D>::DragItemsCount() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IGridViewItemTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanel< + D>::HorizontalOrientationPadding() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HorizontalOrientationPadding(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_HorizontalOrientationPadding(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanel:: + HorizontalOrientationPadding( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalOrientationPadding( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalOrientationPadding( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanel< + D>::VerticalOrientationPadding() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_VerticalOrientationPadding(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_VerticalOrientationPadding(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanel< + D>::VerticalOrientationPadding(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanel, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_VerticalOrientationPadding(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_VerticalOrientationPadding(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::InfoBarPanel{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics< + D>::HorizontalOrientationPaddingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HorizontalOrientationPaddingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_HorizontalOrientationPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics< + D>::VerticalOrientationPaddingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_VerticalOrientationPaddingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_VerticalOrientationPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics:: + SetHorizontalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object, + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHorizontalOrientationMargin( + *(void**)(&object), impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHorizontalOrientationMargin( + *(void**)(&object), impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics:: + GetHorizontalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object) const { + winrt::Microsoft::UI::Xaml::Thickness result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHorizontalOrientationMargin( + *(void**)(&object), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHorizontalOrientationMargin( + *(void**)(&object), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics< + D>::HorizontalOrientationMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HorizontalOrientationMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_HorizontalOrientationMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics:: + SetVerticalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object, + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVerticalOrientationMargin( + *(void**)(&object), impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVerticalOrientationMargin( + *(void**)(&object), impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics:: + GetVerticalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object) const { + winrt::Microsoft::UI::Xaml::Thickness result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetVerticalOrientationMargin( + *(void**)(&object), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetVerticalOrientationMargin( + *(void**)(&object), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IInfoBarPanelStatics< + D>::VerticalOrientationMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_VerticalOrientationMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_VerticalOrientationMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs< + D>::Action() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Action(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Action(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs< + D>::Position() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs< + D>::OldPosition() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldPosition(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldPosition(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs< + D>::ItemCount() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs< + D>::ItemUICount() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemUICount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemUICount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter< + D>::Enabled() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Enabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Enabled(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter< + D>::Enabled(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter< + D>::Disabled() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Disabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Disabled(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter< + D>::Disabled(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverterStatics< + D>::EnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverterStatics< + D>::DisabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemBackgroundConverterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter< + D>::Enabled() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Enabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Enabled(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter< + D>::Enabled(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter< + D>::Disabled() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Disabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Disabled(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter< + D>::Disabled(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverterStatics< + D>::EnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverterStatics< + D>::DisabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IJumpListItemForegroundConverterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILayoutInformationStatics< + D>::GetLayoutExceptionElement(winrt::Windows::Foundation:: + IInspectable const& dispatcher) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLayoutExceptionElement( + *(void**)(&dispatcher), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLayoutExceptionElement( + *(void**)(&dispatcher), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILayoutInformationStatics< + D>::GetLayoutSlot(winrt::Microsoft::UI::Xaml::FrameworkElement const& + element) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetLayoutSlot(*(void**)(&element), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetLayoutSlot(*(void**)(&element), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILayoutInformationStatics< + D>::GetAvailableSize(winrt::Microsoft::UI::Xaml::UIElement const& element) + const { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAvailableSize(*(void**)(&element), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAvailableSize(*(void**)(&element), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionCheckMarkVisualEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionCheckMarkVisualEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckHintBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckHintBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckSelectingBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckSelectingBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DragBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DragBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DragForeground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragForeground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DragForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::FocusBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::FocusBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PlaceholderBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PlaceholderBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedForeground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedPointerOverBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectedPointerOverBackground( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedPointerOverBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectedPointerOverBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedBorderThickness() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedBorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DisabledOpacity() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DisabledOpacity(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DragOpacity() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::DragOpacity(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DragOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DragOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::ReorderHintOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::ReorderHintOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::ListViewItemPresenterHorizontalContentAlignment() const { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterHorizontalContentAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterHorizontalContentAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + ListViewItemPresenterHorizontalContentAlignment( + winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ListViewItemPresenterHorizontalContentAlignment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ListViewItemPresenterHorizontalContentAlignment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::ListViewItemPresenterVerticalContentAlignment() const { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterVerticalContentAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterVerticalContentAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + ListViewItemPresenterVerticalContentAlignment( + winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ListViewItemPresenterVerticalContentAlignment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ListViewItemPresenterVerticalContentAlignment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::ListViewItemPresenterPadding() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterPadding(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterPadding(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + ListViewItemPresenterPadding( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListViewItemPresenterPadding( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListViewItemPresenterPadding( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverBackgroundMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverBackgroundMargin(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::ContentMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + ContentMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedPressedBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPressedBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPressedBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectedPressedBackground( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedPressedBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedPressedBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PressedBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PressedBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PressedBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PressedBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckBoxBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckBoxBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::FocusSecondaryBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusSecondaryBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusSecondaryBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + FocusSecondaryBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FocusSecondaryBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FocusSecondaryBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckMode() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ListViewItemPresenterCheckMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckMode(winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ListViewItemPresenterCheckMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverForeground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverForeground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PointerOverForeground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PointerOverForeground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RevealBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RevealBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RevealBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RevealBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RevealBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RevealBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RevealBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RevealBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBorderThickness() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RevealBorderThickness(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RevealBorderThickness(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RevealBorderThickness(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RevealBorderThickness(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBackgroundShowsAboveContent() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_RevealBackgroundShowsAboveContent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_RevealBackgroundShowsAboveContent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::RevealBackgroundShowsAboveContent(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RevealBackgroundShowsAboveContent(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RevealBackgroundShowsAboveContent(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedDisabledBackground() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDisabledBackground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDisabledBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectedDisabledBackground( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedDisabledBackground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedDisabledBackground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckPressedBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckPressedBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckPressedBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckPressedBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckPressedBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckPressedBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckDisabledBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckDisabledBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckDisabledBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckDisabledBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckDisabledBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckDisabledBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxPointerOverBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxPointerOverBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxPointerOverBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxPointerOverBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxPressedBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxPressedBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxPressedBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxPressedBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckBoxPressedBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckBoxPressedBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxDisabledBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxDisabledBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxDisabledBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxDisabledBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxSelectedBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxSelectedBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxSelectedBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxSelectedBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxSelectedPointerOverBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedPointerOverBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedPointerOverBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxSelectedPointerOverBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckBoxSelectedPointerOverBrush( + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckBoxSelectedPointerOverBrush( + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxSelectedPressedBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedPressedBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedPressedBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxSelectedPressedBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxSelectedPressedBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxSelectedPressedBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxSelectedDisabledBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedDisabledBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedDisabledBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxSelectedDisabledBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxSelectedDisabledBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxSelectedDisabledBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CheckBoxBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CheckBoxBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxPointerOverBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxPointerOverBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxPointerOverBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxPointerOverBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxPressedBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxPressedBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxPressedBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxPressedBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxPressedBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxPressedBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxDisabledBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxDisabledBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxDisabledBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + CheckBoxDisabledBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxDisabledBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxDisabledBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxCornerRadius() const { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxCornerRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxCornerRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::CheckBoxCornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CheckBoxCornerRadius(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CheckBoxCornerRadius(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorCornerRadius() const { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorCornerRadius(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorCornerRadius(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectionIndicatorCornerRadius( + winrt::Microsoft::UI::Xaml::CornerRadius const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionIndicatorCornerRadius( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionIndicatorCornerRadius( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorVisualEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorVisualEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorVisualEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorVisualEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionIndicatorVisualEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionIndicatorVisualEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorMode() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ListViewItemPresenterSelectionIndicatorMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectionIndicatorMode( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ListViewItemPresenterSelectionIndicatorMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionIndicatorMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionIndicatorMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectionIndicatorBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectionIndicatorBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorPointerOverBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorPointerOverBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorPointerOverBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectionIndicatorPointerOverBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionIndicatorPointerOverBrush( + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionIndicatorPointerOverBrush( + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorPressedBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorPressedBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorPressedBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectionIndicatorPressedBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectionIndicatorPressedBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectionIndicatorPressedBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectionIndicatorDisabledBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorDisabledBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorDisabledBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectionIndicatorDisabledBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionIndicatorDisabledBrush( + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionIndicatorDisabledBrush( + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedPressedBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectedPressedBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedPressedBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedPressedBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedDisabledBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter:: + SelectedDisabledBorderBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedDisabledBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedDisabledBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedInnerBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedInnerBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedInnerBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::SelectedInnerBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SelectedInnerBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SelectedInnerBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverBorderBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverBorderBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenter< + D>::PointerOverBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_PointerOverBorderBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_PointerOverBorderBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ListViewItemPresenter{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionCheckMarkVisualEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckHintBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckSelectingBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::DragBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::DragForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::FocusBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::PlaceholderBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::PointerOverBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedPointerOverBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedPointerOverBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedBorderThicknessProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::DisabledOpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::DragOpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::ReorderHintOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::ListViewItemPresenterHorizontalContentAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type + ->get_ListViewItemPresenterHorizontalContentAlignmentProperty( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type + ->get_ListViewItemPresenterHorizontalContentAlignmentProperty( + &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::ListViewItemPresenterVerticalContentAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type + ->get_ListViewItemPresenterVerticalContentAlignmentProperty( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type + ->get_ListViewItemPresenterVerticalContentAlignmentProperty( + &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::ListViewItemPresenterPaddingProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterPaddingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ListViewItemPresenterPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::PointerOverBackgroundMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::ContentMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedPressedBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedPressedBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedPressedBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::PressedBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::FocusSecondaryBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusSecondaryBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusSecondaryBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::PointerOverForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::RevealBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RevealBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RevealBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::RevealBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RevealBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RevealBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::RevealBorderThicknessProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RevealBorderThicknessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RevealBorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::RevealBackgroundShowsAboveContentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_RevealBackgroundShowsAboveContentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_RevealBackgroundShowsAboveContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedDisabledBackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedDisabledBackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedDisabledBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckPressedBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckPressedBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckPressedBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckDisabledBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckDisabledBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckDisabledBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxPointerOverBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxPointerOverBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxPointerOverBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxPressedBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxPressedBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxPressedBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxDisabledBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxSelectedBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxSelectedPointerOverBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedPointerOverBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedPointerOverBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxSelectedPressedBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedPressedBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedPressedBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxSelectedDisabledBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedDisabledBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxSelectedDisabledBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxPointerOverBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxPointerOverBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxPointerOverBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxPressedBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxPressedBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxPressedBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxDisabledBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CheckBoxDisabledBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CheckBoxDisabledBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::CheckBoxCornerRadiusProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CheckBoxCornerRadiusProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CheckBoxCornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorCornerRadiusProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorCornerRadiusProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorCornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorVisualEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorVisualEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorVisualEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionIndicatorBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionIndicatorBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorPointerOverBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorPointerOverBrushProperty( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorPointerOverBrushProperty( + &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorPressedBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorPressedBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorPressedBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectionIndicatorDisabledBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorDisabledBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectionIndicatorDisabledBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedPressedBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedPressedBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedPressedBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedDisabledBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedDisabledBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedDisabledBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::SelectedInnerBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SelectedInnerBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SelectedInnerBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics< + D>::PointerOverBorderBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverBorderBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IListViewItemTemplateSettings< + D>::DragItemsCount() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IListViewItemTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ShouldLoop() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldLoop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldLoop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ShouldLoop(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShouldLoop(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShouldLoop(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector::Items() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Windows::Foundation::IInspectable>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector::Items( + param::vector const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Items(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Items(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::SelectedIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::SelectedIndex(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::SelectedItem() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector:: + SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ItemWidth() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ItemWidth(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ItemHeight() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ItemHeight(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::ItemTemplate() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector:: + ItemTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector:: + SelectionChanged(winrt::Microsoft::UI::Xaml::Controls:: + SelectionChangedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector:: + SelectionChanged(auto_revoke_t, + winrt::Microsoft::UI::Xaml::Controls:: + SelectionChangedEventHandler const& handler) const { + return impl::make_event_revoker( + this, SelectionChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelector< + D>::SelectionChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::ShouldLoopProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldLoopProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldLoopProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::ItemsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::SelectedIndexProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::SelectedItemProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::ItemWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::ItemHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics< + D>::ItemTemplateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMenuFlyoutItemTemplateSettings< + D>::KeyboardAcceleratorTextMinWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMenuFlyoutItemTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMenuFlyoutItemTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMenuFlyoutPresenterTemplateSettings< + D>::FlyoutContentMinWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMenuFlyoutPresenterTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMenuFlyoutPresenterTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlyoutContentMinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlyoutContentMinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenter< + D>::SourceElement() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceElement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceElement(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenter< + D>::SourceElement(winrt::Microsoft::UI::Xaml::UIElement const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SourceElement(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SourceElement(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenter< + D>::ReplacementColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReplacementColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReplacementColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenter< + D>::ReplacementColor(winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ReplacementColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ReplacementColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenterFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + MonochromaticOverlayPresenter{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenterStatics< + D>::SourceElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IMonochromaticOverlayPresenterStatics< + D>::ReplacementColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IMonochromaticOverlayPresenterStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReplacementColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReplacementColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter< + D>::Icon() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter< + D>::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter< + D>::TemplateSettings() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + NavigationViewItemPresenterTemplateSettings{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter2< + D>::InfoBadge() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenter2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoBadge(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoBadge(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBadge{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter2< + D>::InfoBadge(winrt::Microsoft::UI::Xaml::Controls::InfoBadge const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenter2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InfoBadge(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InfoBadge(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + NavigationViewItemPresenter{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterStatics< + D>::IconProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterStatics< + D>::TemplateSettingsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterStatics2< + D>::InfoBadgeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoBadgeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoBadgeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterTemplateSettings< + D>::IconWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterTemplateSettings< + D>::SmallerIconWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettings, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallerIconWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallerIconWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterTemplateSettingsFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + NavigationViewItemPresenterTemplateSettings{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterTemplateSettingsStatics< + D>::IconWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterTemplateSettingsStatics< + D>::SmallerIconWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + INavigationViewItemPresenterTemplateSettingsStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallerIconWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallerIconWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::CanVerticallyScroll() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::CanVerticallyScroll(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::CanHorizontallyScroll() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::CanHorizontallyScroll(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::ExtentWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::ExtentHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::ViewportWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::ViewportHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::HorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::VerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::ScrollOwner() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::ScrollOwner(winrt::Windows::Foundation::IInspectable const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::LineUp() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineUp()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LineUp()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::LineDown() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineDown()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LineDown()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::LineLeft() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineLeft()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LineLeft()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::LineRight() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineRight()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LineRight()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::PageUp() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageUp()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PageUp()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::PageDown() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageDown()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PageDown()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::PageLeft() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageLeft()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PageLeft()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::PageRight() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageRight()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PageRight()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::MouseWheelUp() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelUp()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelUp()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::MouseWheelDown() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelDown()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelDown()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::MouseWheelLeft() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelLeft()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelLeft()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::MouseWheelRight() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelRight()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelRight()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::SetHorizontalOffset(double offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::SetVerticalOffset(double offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel< + D>::MakeVisible(winrt::Microsoft::UI::Xaml::UIElement const& visual, + winrt::Windows::Foundation::Rect const& rectangle) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MakeVisible( + *(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MakeVisible( + *(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::PickerFlyoutBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseOverrides< + D>::OnConfirmed() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnConfirmed()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnConfirmed()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseOverrides< + D>::ShouldShowConfirmationButtons() const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShouldShowConfirmationButtons(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ShouldShowConfirmationButtons(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseStatics< + D>::TitleProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseStatics< + D>::GetTitle(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTitle(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTitle(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseStatics< + D>::SetTitle(winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetTitle(*(void**)(&element), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetTitle(*(void**)(&element), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPivotHeaderItemFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::PivotHeaderItem{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Child() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Child(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Child( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::IsOpen() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::IsOpen( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::HorizontalOffset() + const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::HorizontalOffset( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::VerticalOffset() + const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::VerticalOffset( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::ChildTransitions() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildTransitions(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::ChildTransitions( + winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChildTransitions(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_ChildTransitions(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup< + D>::IsLightDismissEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup< + D>::IsLightDismissEnabled(bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsLightDismissEnabled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_IsLightDismissEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup< + D>::LightDismissOverlayMode() const { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup:: + LightDismissOverlayMode( + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup< + D>::ShouldConstrainToRootBounds() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup< + D>::ShouldConstrainToRootBounds(bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup< + D>::IsConstrainedToRootBounds() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Opened( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Opened( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Opened(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Opened( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Closed( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Closed( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Closed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup::Closed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2::PlacementTarget() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementTarget(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::FrameworkElement{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2::PlacementTarget( + winrt::Microsoft::UI::Xaml::FrameworkElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlacementTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_PlacementTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2< + D>::DesiredPlacement() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::PopupPlacementMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredPlacement( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredPlacement( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2::DesiredPlacement( + winrt::Microsoft::UI::Xaml::Controls::Primitives::PopupPlacementMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_DesiredPlacement(static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->put_DesiredPlacement(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2::ActualPlacement() + const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::PopupPlacementMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualPlacement( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualPlacement( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2:: + ActualPlacementChanged( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ActualPlacementChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_ActualPlacementChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2:: + ActualPlacementChanged( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, ActualPlacementChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup2< + D>::ActualPlacementChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ActualPlacementChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_ActualPlacementChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup3::SystemBackdrop() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopup3::SystemBackdrop( + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopup3, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::ChildProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::IsOpenProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::HorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::VerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::ChildTransitionsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildTransitionsProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::IsLightDismissEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::LightDismissOverlayModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics< + D>::ShouldConstrainToRootBoundsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics2< + D>::PlacementTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics2< + D>::DesiredPlacementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredPlacementProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IPopupStatics3< + D>::SystemBackdropProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics3, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::Minimum() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::Minimum( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Minimum(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Minimum(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::Maximum() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::Maximum( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Maximum(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Maximum(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::SmallChange() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::SmallChange( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SmallChange(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SmallChange(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::LargeChange() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LargeChange(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LargeChange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::LargeChange( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LargeChange(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LargeChange(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::Value() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::Value( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::ValueChanged( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + RangeBaseValueChangedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::ValueChanged( + auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + RangeBaseValueChangedEventHandler const& handler) const { + return impl::make_event_revoker( + this, ValueChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBase::ValueChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::RangeBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseOverrides< + D>::OnMinimumChanged(double oldMinimum, double newMinimum) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnMinimumChanged(oldMinimum, newMinimum)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnMinimumChanged(oldMinimum, newMinimum)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseOverrides< + D>::OnMaximumChanged(double oldMaximum, double newMaximum) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnMaximumChanged(oldMaximum, newMaximum)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnMaximumChanged(oldMaximum, newMaximum)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseOverrides< + D>::OnValueChanged(double oldValue, double newValue) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnValueChanged(oldValue, newValue)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnValueChanged(oldValue, newValue)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseStatics< + D>::MinimumProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseStatics< + D>::MaximumProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseStatics< + D>::SmallChangeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseStatics< + D>::LargeChangeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseValueChangedEventArgs< + D>::OldValue() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRangeBaseValueChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRangeBaseValueChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldValue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRangeBaseValueChangedEventArgs< + D>::NewValue() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRangeBaseValueChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRangeBaseValueChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatButton::Delay() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Delay(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Delay(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatButton::Delay( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Delay(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Delay(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatButton::Interval() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Interval(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Interval(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatButton::Interval( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Interval(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Interval(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatButtonStatics< + D>::DelayProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButtonStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DelayProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DelayProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatButtonStatics< + D>::IntervalProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButtonStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IntervalProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IntervalProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedScrollSnapPoint< + D>::Offset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedScrollSnapPoint< + D>::Interval() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Interval(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Interval(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedScrollSnapPoint< + D>::Start() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Start(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Start(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedScrollSnapPoint< + D>::End() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_End(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_End(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedScrollSnapPointFactory< + D>::CreateInstance(double offset, double interval, double start, double end, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointsAlignment const& alignment, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRepeatedScrollSnapPointFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRepeatedScrollSnapPointFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + offset, interval, start, end, static_cast(alignment), + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + offset, interval, start, end, static_cast(alignment), + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + RepeatedScrollSnapPoint{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedZoomSnapPoint< + D>::Offset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedZoomSnapPoint< + D>::Interval() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Interval(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Interval(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedZoomSnapPoint< + D>::Start() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Start(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Start(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedZoomSnapPoint< + D>::End() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_End(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_End(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IRepeatedZoomSnapPointFactory< + D>::CreateInstance(double offset, double interval, double start, double end, + winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRepeatedZoomSnapPointFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + offset, interval, start, end, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + offset, interval, start, end, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + RepeatedZoomSnapPoint{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::Orientation() + const { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::Orientation( + winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_Orientation(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_Orientation(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::ViewportSize() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportSize(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportSize(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::ViewportSize( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ViewportSize(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ViewportSize(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar< + D>::IndicatorMode() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_IndicatorMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_IndicatorMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::IndicatorMode( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollingIndicatorMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IndicatorMode(static_cast(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_IndicatorMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::Scroll( + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Scroll(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Scroll(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::Scroll( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventHandler const& + handler) const { + return impl::make_event_revoker(this, Scroll(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBar::Scroll( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Scroll(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Scroll(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBarStatics< + D>::OrientationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBarStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBarStatics< + D>::ViewportSizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBarStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportSizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollBarStatics< + D>::IndicatorModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBarStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IndicatorModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IndicatorModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::PanningInfo() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanningInfo(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanningInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanningInfo{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::CanScroll() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanScroll(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanScroll(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::IsScrollingWithMouse() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsScrollingWithMouse(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsScrollingWithMouse(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::SetIsScrollable(bool isScrollable) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsScrollable(isScrollable)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsScrollable(isScrollable)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::SetValues(double minOffset, double maxOffset, double offset, + double viewportLength) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetValues(minOffset, maxOffset, offset, + viewportLength)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetValues(minOffset, maxOffset, offset, + viewportLength)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + GetScrollAnimation( + int32_t correlationId, + winrt::Windows::Foundation::Numerics::float2 const& startPosition, + winrt::Windows::Foundation::Numerics::float2 const& endPosition, + winrt::Microsoft::UI::Composition::CompositionAnimation const& + defaultAnimation) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetScrollAnimation( + correlationId, impl::bind_in(startPosition), impl::bind_in(endPosition), + *(void**)(&defaultAnimation), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetScrollAnimation( + correlationId, impl::bind_in(startPosition), impl::bind_in(endPosition), + *(void**)(&defaultAnimation), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::NotifyRequestedScrollCompleted(int32_t correlationId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->NotifyRequestedScrollCompleted(correlationId)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->NotifyRequestedScrollCompleted(correlationId)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + CanScrollChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CanScrollChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CanScrollChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + CanScrollChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, CanScrollChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::CanScrollChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CanScrollChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CanScrollChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + IsScrollingWithMouseChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsScrollingWithMouseChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_IsScrollingWithMouseChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + IsScrollingWithMouseChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, IsScrollingWithMouseChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::IsScrollingWithMouseChanged(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsScrollingWithMouseChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_IsScrollingWithMouseChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + ScrollToRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerScrollToRequestedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ScrollToRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ScrollToRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + ScrollToRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerScrollToRequestedEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, ScrollToRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::ScrollToRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ScrollToRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ScrollToRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + ScrollByRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerScrollByRequestedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ScrollByRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ScrollByRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + ScrollByRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerScrollByRequestedEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, ScrollByRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController< + D>::ScrollByRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ScrollByRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ScrollByRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + AddScrollVelocityRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerAddScrollVelocityRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AddScrollVelocityRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AddScrollVelocityRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + AddScrollVelocityRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerAddScrollVelocityRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, AddScrollVelocityRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollController:: + AddScrollVelocityRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AddScrollVelocityRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AddScrollVelocityRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerAddScrollVelocityRequestedEventArgs< + D>::OffsetVelocity() const { + float value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetVelocity(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetVelocity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerAddScrollVelocityRequestedEventArgs< + D>::InertiaDecayRate() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InertiaDecayRate(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_InertiaDecayRate(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerAddScrollVelocityRequestedEventArgs< + D>::CorrelationId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerAddScrollVelocityRequestedEventArgs< + D>::CorrelationId(int32_t value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CorrelationId(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_CorrelationId(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerAddScrollVelocityRequestedEventArgsFactory< + D>::CreateInstance(float offsetVelocity, + winrt::Windows::Foundation::IReference const& + inertiaDecayRate) const { + void* value{}; + if constexpr ( + !std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgsFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + offsetVelocity, *(void**)(&inertiaDecayRate), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgsFactory>**)this; + check_hresult(_winrt_abi_type->CreateInstance( + offsetVelocity, *(void**)(&inertiaDecayRate), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerAddScrollVelocityRequestedEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanRequestedEventArgs< + D>::PointerPoint() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerPoint(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerPoint(&value)); + } + return winrt::Microsoft::UI::Input::PointerPoint{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanRequestedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanRequestedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanRequestedEventArgsFactory< + D>::CreateInstance(winrt::Microsoft::UI::Input::PointerPoint const& + pointerPoint) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanRequestedEventArgsFactory>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&pointerPoint), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&pointerPoint), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerPanRequestedEventArgs{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::IsRailEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRailEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRailEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::PanOrientation() const { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanOrientation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanOrientation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::PanningElementAncestor() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanningElementAncestor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanningElementAncestor(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>:: + SetPanningElementExpressionAnimationSources( + winrt::Microsoft::UI::Composition::CompositionPropertySet const& + propertySet, + param::hstring const& minOffsetPropertyName, + param::hstring const& maxOffsetPropertyName, + param::hstring const& offsetPropertyName, + param::hstring const& multiplierPropertyName) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPanningElementExpressionAnimationSources( + *(void**)(&propertySet), *(void**)(&minOffsetPropertyName), + *(void**)(&maxOffsetPropertyName), *(void**)(&offsetPropertyName), + *(void**)(&multiplierPropertyName))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPanningElementExpressionAnimationSources( + *(void**)(&propertySet), *(void**)(&minOffsetPropertyName), + *(void**)(&maxOffsetPropertyName), *(void**)(&offsetPropertyName), + *(void**)(&multiplierPropertyName))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>:: + Changed(winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanningInfo, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::Changed(auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanningInfo, + winrt::Windows::Foundation::IInspectable> const& handler) + const { + return impl::make_event_revoker(this, Changed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::Changed(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>:: + PanRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanningInfo, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerPanRequestedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_PanRequested(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_PanRequested(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::PanRequested(auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerPanningInfo, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerPanRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, PanRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerPanningInfo< + D>::PanRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PanRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PanRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollByRequestedEventArgs< + D>::OffsetDelta() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetDelta(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetDelta(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollByRequestedEventArgs< + D>::Options() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Options(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Options(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollByRequestedEventArgs< + D>::CorrelationId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollByRequestedEventArgs< + D>::CorrelationId(int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CorrelationId(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CorrelationId(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollByRequestedEventArgsFactory< + D>::CreateInstance(double offsetDelta, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingScrollOptions const& options) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollByRequestedEventArgsFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(offsetDelta, + *(void**)(&options), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(offsetDelta, + *(void**)(&options), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerScrollByRequestedEventArgs{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollToRequestedEventArgs< + D>::Offset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollToRequestedEventArgs< + D>::Options() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Options(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Options(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollToRequestedEventArgs< + D>::CorrelationId() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollToRequestedEventArgs< + D>::CorrelationId(int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CorrelationId(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CorrelationId(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollControllerScrollToRequestedEventArgsFactory< + D>::CreateInstance(double offset, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingScrollOptions const& options) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerScrollToRequestedEventArgsFactory>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(offset, *(void**)(&options), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(offset, *(void**)(&options), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollControllerScrollToRequestedEventArgs{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollEventArgs< + D>::NewValue() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollEventArgs< + D>::ScrollEventType() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollEventType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollEventType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::Background() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::Content() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter::Content( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ExpressionAnimationSources() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpressionAnimationSources(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpressionAnimationSources(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionPropertySet{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomFactor() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ExtentWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ExtentHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ViewportWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ViewportHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ScrollableWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ScrollableHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ContentOrientation() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingContentOrientation value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentOrientation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentOrientation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ContentOrientation( + winrt::Microsoft::UI::Xaml::Controls::ScrollingContentOrientation const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ContentOrientation(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ContentOrientation(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalScrollChainMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollChainMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollChainMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + HorizontalScrollChainMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollChainMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollChainMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalScrollChainMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollChainMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollChainMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + VerticalScrollChainMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollChainMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollChainMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalScrollRailMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollRailMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollRailMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + HorizontalScrollRailMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollRailMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollRailMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalScrollRailMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollRailMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollRailMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + VerticalScrollRailMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollRailMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollRailMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalScrollMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + HorizontalScrollMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_HorizontalScrollMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_HorizontalScrollMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalScrollMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + VerticalScrollMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_VerticalScrollMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_VerticalScrollMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ComputedHorizontalScrollMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ComputedVerticalScrollMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomChainMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ZoomChainMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ZoomChainMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ZoomChainMode( + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ZoomChainMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ZoomChainMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomMode() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ZoomMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ZoomMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::IgnoredInputKinds() const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingInputKinds value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IgnoredInputKinds( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IgnoredInputKinds( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + IgnoredInputKinds( + winrt::Microsoft::UI::Xaml::Controls::ScrollingInputKinds const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IgnoredInputKinds(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_IgnoredInputKinds(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::MinZoomFactor() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomFactor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomFactor(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::MinZoomFactor(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinZoomFactor(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinZoomFactor(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::MaxZoomFactor() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomFactor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomFactor(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::MaxZoomFactor(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxZoomFactor(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxZoomFactor(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter::State() + const { + winrt::Microsoft::UI::Xaml::Controls::ScrollingInteractionState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalScrollController() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollController(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollController(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalScrollController(winrt::Microsoft::UI::Xaml::Controls:: + Primitives::IScrollController const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_HorizontalScrollController(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_HorizontalScrollController(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalScrollController() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollController(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollController(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + VerticalScrollController(winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollController const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_VerticalScrollController(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_VerticalScrollController(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalAnchorRatio() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalAnchorRatio(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalAnchorRatio() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalAnchorRatio(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::HorizontalSnapPoints() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSnapPoints(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSnapPoints(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollSnapPointBase>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::VerticalSnapPoints() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSnapPoints(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSnapPoints(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollSnapPointBase>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomSnapPoints() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomSnapPoints(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomSnapPoints(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ZoomSnapPointBase>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ScrollTo(double horizontalOffset, double verticalOffset) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ScrollTo(horizontalOffset, verticalOffset, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ScrollTo(horizontalOffset, verticalOffset, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollTo(double horizontalOffset, double verticalOffset, + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions const& + options) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollToWithOptions( + horizontalOffset, verticalOffset, *(void**)(&options), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollToWithOptions( + horizontalOffset, verticalOffset, *(void**)(&options), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ScrollBy(double horizontalOffsetDelta, + double verticalOffsetDelta) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollBy(horizontalOffsetDelta, + verticalOffsetDelta, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollBy(horizontalOffsetDelta, + verticalOffsetDelta, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollBy(double horizontalOffsetDelta, double verticalOffsetDelta, + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions const& + options) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollByWithOptions( + horizontalOffsetDelta, verticalOffsetDelta, *(void**)(&options), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollByWithOptions( + horizontalOffsetDelta, verticalOffsetDelta, *(void**)(&options), + &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + AddScrollVelocity( + winrt::Windows::Foundation::Numerics::float2 const& offsetsVelocity, + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& + inertiaDecayRate) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddScrollVelocity( + impl::bind_in(offsetsVelocity), *(void**)(&inertiaDecayRate), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddScrollVelocity( + impl::bind_in(offsetsVelocity), *(void**)(&inertiaDecayRate), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter::ZoomTo( + float zoomFactor, + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& centerPoint) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->ZoomTo(zoomFactor, *(void**)(¢erPoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->ZoomTo(zoomFactor, *(void**)(¢erPoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter::ZoomTo( + float zoomFactor, + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& centerPoint, + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions const& options) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomToWithOptions( + zoomFactor, *(void**)(¢erPoint), *(void**)(&options), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomToWithOptions( + zoomFactor, *(void**)(¢erPoint), *(void**)(&options), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter::ZoomBy( + float zoomFactorDelta, + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& centerPoint) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomBy(zoomFactorDelta, + *(void**)(¢erPoint), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomBy(zoomFactorDelta, + *(void**)(¢erPoint), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter::ZoomBy( + float zoomFactorDelta, + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& centerPoint, + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions const& options) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomByWithOptions( + zoomFactorDelta, *(void**)(¢erPoint), *(void**)(&options), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomByWithOptions( + zoomFactorDelta, *(void**)(¢erPoint), *(void**)(&options), + &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + AddZoomVelocity( + float zoomFactorVelocity, + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Numerics::float2> const& centerPoint, + winrt::Windows::Foundation::IReference const& inertiaDecayRate) + const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddZoomVelocity( + zoomFactorVelocity, *(void**)(¢erPoint), + *(void**)(&inertiaDecayRate), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddZoomVelocity( + zoomFactorVelocity, *(void**)(¢erPoint), + *(void**)(&inertiaDecayRate), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ExtentChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ExtentChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ExtentChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ExtentChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, ExtentChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ExtentChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ExtentChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ExtentChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + StateChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + StateChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, StateChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::StateChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ViewChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ViewChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_ViewChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ViewChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, + ViewChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ViewChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ViewChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ViewChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollAnimationStarting( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingScrollAnimationStartingEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ScrollAnimationStarting( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ScrollAnimationStarting( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollAnimationStarting( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingScrollAnimationStartingEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, ScrollAnimationStarting(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollAnimationStarting(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ScrollAnimationStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ScrollAnimationStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ZoomAnimationStarting( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingZoomAnimationStartingEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ZoomAnimationStarting( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ZoomAnimationStarting( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ZoomAnimationStarting( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingZoomAnimationStartingEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ZoomAnimationStarting(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomAnimationStarting(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ZoomAnimationStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ZoomAnimationStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingScrollCompletedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ScrollCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ScrollCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ScrollCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingScrollCompletedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ScrollCompleted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ScrollCompleted(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ScrollCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ScrollCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ZoomCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingZoomCompletedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ZoomCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ZoomCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + ZoomCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingZoomCompletedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ZoomCompleted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::ZoomCompleted(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ZoomCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ZoomCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + BringingIntoView( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingBringingIntoViewEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BringingIntoView(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BringingIntoView(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + BringingIntoView( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingBringingIntoViewEventArgs> const& handler) const { + return impl::make_event_revoker( + this, BringingIntoView(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::BringingIntoView(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_BringingIntoView(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_BringingIntoView(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + AnchorRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingAnchorRequestedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AnchorRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AnchorRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter:: + AnchorRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls:: + ScrollingAnchorRequestedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, AnchorRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenter< + D>::AnchorRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AnchorRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AnchorRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::BackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::ContentProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::ContentOrientationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentOrientationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentOrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::HorizontalScrollChainModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HorizontalScrollChainModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_HorizontalScrollChainModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::VerticalScrollChainModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollChainModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollChainModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::HorizontalScrollRailModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HorizontalScrollRailModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_HorizontalScrollRailModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::VerticalScrollRailModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollRailModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollRailModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::HorizontalScrollModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::VerticalScrollModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::ComputedHorizontalScrollModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ComputedHorizontalScrollModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ComputedHorizontalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::ComputedVerticalScrollModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ComputedVerticalScrollModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ComputedVerticalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::ZoomChainModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomChainModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomChainModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::ZoomModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::IgnoredInputKindsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IgnoredInputKindsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IgnoredInputKindsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::MinZoomFactorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomFactorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::MaxZoomFactorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomFactorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::HorizontalAnchorRatioProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatioProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollPresenterStatics< + D>::VerticalAnchorRatioProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatioProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPoint::Value() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPoint, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointBase< + D>::Alignment() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollSnapPointsAlignment + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Alignment(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Alignment(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointFactory:: + CreateInstance( + double snapPointValue, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointsAlignment const& alignment, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + snapPointValue, static_cast(alignment), + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + snapPointValue, static_cast(alignment), + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollSnapPoint{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo< + D>::AreHorizontalSnapPointsRegular() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreHorizontalSnapPointsRegular(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreHorizontalSnapPointsRegular(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo< + D>::AreVerticalSnapPointsRegular() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreVerticalSnapPointsRegular(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreVerticalSnapPointsRegular(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + HorizontalSnapPointsChanged( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_HorizontalSnapPointsChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_HorizontalSnapPointsChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + HorizontalSnapPointsChanged( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, HorizontalSnapPointsChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo< + D>::HorizontalSnapPointsChanged(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_HorizontalSnapPointsChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_HorizontalSnapPointsChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + VerticalSnapPointsChanged( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_VerticalSnapPointsChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_VerticalSnapPointsChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + VerticalSnapPointsChanged( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, VerticalSnapPointsChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + VerticalSnapPointsChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_VerticalSnapPointsChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_VerticalSnapPointsChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + GetIrregularSnapPoints( + winrt::Microsoft::UI::Xaml::Controls::Orientation const& orientation, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + SnapPointsAlignment const& alignment) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIrregularSnapPoints( + static_cast(orientation), static_cast(alignment), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIrregularSnapPoints( + static_cast(orientation), static_cast(alignment), + &result)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo:: + GetRegularSnapPoints( + winrt::Microsoft::UI::Xaml::Controls::Orientation const& orientation, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + SnapPointsAlignment const& alignment, + float& offset) const { + float returnValue{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRegularSnapPoints( + static_cast(orientation), static_cast(alignment), + &offset, &returnValue)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRegularSnapPoints( + static_cast(orientation), static_cast(alignment), + &offset, &returnValue)); + } + return returnValue; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector::SelectedIndex() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector::SelectedIndex( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector::SelectedItem() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector::SelectedItem( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector::SelectedValue() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->get_SelectedValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector::SelectedValue( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->put_SelectedValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector< + D>::SelectedValuePath() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValuePath(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->get_SelectedValuePath(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector< + D>::SelectedValuePath(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedValuePath(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->put_SelectedValuePath(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector< + D>::IsSynchronizedWithCurrentItem() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSynchronizedWithCurrentItem(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->get_IsSynchronizedWithCurrentItem(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector:: + IsSynchronizedWithCurrentItem( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IsSynchronizedWithCurrentItem(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult( + _winrt_abi_type->put_IsSynchronizedWithCurrentItem(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector:: + SelectionChanged(winrt::Microsoft::UI::Xaml::Controls:: + SelectionChangedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector:: + SelectionChanged(auto_revoke_t, + winrt::Microsoft::UI::Xaml::Controls:: + SelectionChangedEventHandler const& handler) const { + return impl::make_event_revoker( + this, SelectionChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelector< + D>::SelectionChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector>**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorItem< + D>::IsSelected() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItem, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorItem::IsSelected( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItem, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSelected(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSelected(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorItemFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItemFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::SelectorItem{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorItemStatics< + D>::IsSelectedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItemStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorStatics< + D>::SelectedIndexProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorStatics< + D>::SelectedItemProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorStatics< + D>::SelectedValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorStatics< + D>::SelectedValuePathProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValuePathProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedValuePathProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorStatics< + D>::IsSynchronizedWithCurrentItemProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_IsSynchronizedWithCurrentItemProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_IsSynchronizedWithCurrentItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISelectorStatics< + D>::GetIsSelectionActive(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsSelectionActive(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsSelectionActive(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings< + D>::OpenPaneLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings< + D>::NegativeOpenPaneLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NegativeOpenPaneLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NegativeOpenPaneLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings< + D>::OpenPaneLengthMinusCompactLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_OpenPaneLengthMinusCompactLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_OpenPaneLengthMinusCompactLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings< + D>::NegativeOpenPaneLengthMinusCompactLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_NegativeOpenPaneLengthMinusCompactLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_NegativeOpenPaneLengthMinusCompactLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings< + D>::OpenPaneGridLength() const { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneGridLength(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneGridLength(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings< + D>::CompactPaneGridLength() const { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneGridLength(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneGridLength(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ITabViewListViewFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::TabViewListView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::IsDragging() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDragging(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDragging(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragStarted( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragStartedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DragStarted(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_DragStarted(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragStarted( + auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragStartedEventHandler const& handler) const { + return impl::make_event_revoker(this, + DragStarted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragStarted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragStarted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_DragStarted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragDelta( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragDeltaEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DragDelta(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_DragDelta(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragDelta( + auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragDeltaEventHandler const& handler) const { + return impl::make_event_revoker(this, + DragDelta(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragDelta( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragDelta(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_DragDelta(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragCompleted( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragCompletedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DragCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_DragCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragCompleted( + auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragCompletedEventHandler const& handler) const { + return impl::make_event_revoker( + this, DragCompleted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::DragCompleted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_DragCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumb::CancelDrag() + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumb, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CancelDrag()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CancelDrag()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IThumbStatics< + D>::IsDraggingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumbStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDraggingProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDraggingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ITickBar::Fill() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Fill(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBar>**)this; + check_hresult(_winrt_abi_type->get_Fill(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ITickBar::Fill( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBar, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBar>**)this; + check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_ITickBarStatics< + D>::FillProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBarStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::IsChecked() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + return winrt::Windows::Foundation::IReference{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::IsChecked( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsChecked(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsChecked(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton< + D>::IsThreeState() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsThreeState(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsThreeState(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton< + D>::IsThreeState(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsThreeState(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsThreeState(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::Checked( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Checked(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Checked(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::Checked( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, Checked(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::Checked( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Checked(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Checked(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::Unchecked( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Unchecked(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Unchecked(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::Unchecked( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, + Unchecked(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton::Unchecked( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Unchecked(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Unchecked(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton< + D>::Indeterminate(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Indeterminate(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Indeterminate(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton< + D>::Indeterminate(auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& + handler) const { + return impl::make_event_revoker( + this, Indeterminate(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButton< + D>::Indeterminate(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Indeterminate(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Indeterminate(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButtonFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ToggleButton{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButtonOverrides< + D>::OnToggle() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnToggle()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnToggle()); + } +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButtonStatics< + D>::IsCheckedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleButtonStatics< + D>::IsThreeStateProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsThreeStateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsThreeStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::KnobCurrentToOnOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KnobCurrentToOnOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KnobCurrentToOnOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::KnobCurrentToOffOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KnobCurrentToOffOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KnobCurrentToOffOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::KnobOnToOffOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KnobOnToOffOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KnobOnToOffOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::KnobOffToOnOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KnobOffToOnOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KnobOffToOnOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::CurtainCurrentToOnOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurtainCurrentToOnOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurtainCurrentToOnOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::CurtainCurrentToOffOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurtainCurrentToOffOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurtainCurrentToOffOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::CurtainOnToOffOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurtainOnToOffOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurtainOnToOffOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings< + D>::CurtainOffToOnOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleSwitchTemplateSettings>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurtainOffToOnOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurtainOffToOnOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToolTipTemplateSettings< + D>::FromHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IToolTipTemplateSettings< + D>::FromVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IZoomSnapPoint::Value() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPoint, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Controls_Primitives_IZoomSnapPointFactory:: + CreateInstance( + double snapPointValue, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + snapPointValue, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + snapPointValue, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ZoomSnapPoint{ + value, take_ownership_from_abi}; +} +template +struct delegate< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragCompletedEventHandler, + H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragDeltaEventHandler, H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragStartedEventHandler, + H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventHandler, + H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final + : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventHandler, + H> { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeyboardAcceleratorTextMinWidth( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().KeyboardAcceleratorTextMinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IAppBarTemplateSettings> + : produce_base { + int32_t __stdcall get_ClipRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ClipRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CompactVerticalDelta(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactVerticalDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CompactRootMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CompactRootMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinimalVerticalDelta(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinimalVerticalDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinimalRootMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinimalRootMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HiddenVerticalDelta(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HiddenVerticalDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HiddenRootMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HiddenRootMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NegativeCompactVerticalDelta( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NegativeCompactVerticalDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NegativeMinimalVerticalDelta( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NegativeMinimalVerticalDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NegativeHiddenVerticalDelta( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NegativeHiddenVerticalDelta()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeyboardAcceleratorTextMinWidth( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().KeyboardAcceleratorTextMinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IAutoSuggestBoxHelper> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeepInteriorCornersSquareProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeepInteriorCornersSquareProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetKeepInteriorCornersSquare(void* autoSuggestBox, + bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetKeepInteriorCornersSquare( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const*>( + &autoSuggestBox), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetKeepInteriorCornersSquare(void* autoSuggestBox, + bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetKeepInteriorCornersSquare( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const*>( + &autoSuggestBox))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase> { + int32_t __stdcall get_ClickMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClickMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClickMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClickMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ClickMode const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPointerOver(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPointerOver()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPressed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPressed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Command(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Command()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Command(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Command( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CommandParameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CommandParameter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CommandParameter(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CommandParameter( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Click(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Click( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Click(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Click(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ButtonBase>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics> + : produce_base { + int32_t __stdcall get_ClickModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClickModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPointerOverProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsPointerOverProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPressedProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsPressedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CommandProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CommandProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CommandParameterProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CommandParameterProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ICalendarPanel> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MinViewWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinViewWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HeaderText(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderText()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay1(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay2(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay2()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay3(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay3()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay4(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay4()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay5(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay5()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay6(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay6()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WeekDay7(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WeekDay7()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasMoreContentAfter(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasMoreContentAfter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasMoreContentBefore(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasMoreContentBefore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasMoreViews(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasMoreViews()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClipRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ClipRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterY()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel> { + int32_t __stdcall get_CanVerticallyScroll(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanVerticallyScroll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanVerticallyScroll(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanVerticallyScroll(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanHorizontallyScroll(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanHorizontallyScroll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanHorizontallyScroll(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanHorizontallyScroll(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtentWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtentHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScrollOwner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScrollOwner()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScrollOwner(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollOwner( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineUp() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineUp(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineDown() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineDown(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineLeft() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineLeft(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineRight() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineRight(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageUp() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageUp(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageDown() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageDown(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageLeft() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageLeft(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageRight() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageRight(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelUp() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelUp(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelDown() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelDown(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelLeft() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelLeft(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelRight() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelRight(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHorizontalOffset(double offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHorizontalOffset(offset); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVerticalOffset(double offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVerticalOffset(offset); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MakeVisible( + void* visual, winrt::Windows::Foundation::Rect rectangle, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().MakeVisible( + *reinterpret_cast( + &visual), + *reinterpret_cast( + &rectangle))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanelFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::CarouselPanel>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSlider> + : produce_base { + int32_t __stdcall get_ColorChannel(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::ColorPickerHsvChannel>( + this->shim().ColorChannel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ColorChannel(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ColorChannel( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ColorPickerHsvChannel const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSliderFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorPickerSlider>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSliderStatics> + : produce_base { + int32_t __stdcall get_ColorChannelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorChannelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum> { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HsvColor( + winrt::Windows::Foundation::Numerics::float4* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HsvColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HsvColor( + winrt::Windows::Foundation::Numerics::float4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HsvColor( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinHue(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinHue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinHue(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinHue(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxHue(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxHue(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxHue(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinSaturation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinSaturation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinSaturation(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinSaturation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxSaturation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxSaturation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxSaturation(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxSaturation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinValue(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinValue(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinValue(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxValue(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxValue(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxValue(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Shape(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Shape()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Shape(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Shape( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumShape const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Components(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumComponents>( + this->shim().Components()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Components(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Components( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ColorChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ColorChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ColorChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ColorChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ColorSpectrum>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics> + : produce_base { + int32_t __stdcall get_ColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HsvColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HsvColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinHueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinHueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxHueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxHueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinSaturationProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinSaturationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxSaturationProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxSaturationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShapeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ShapeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ComponentsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ComponentsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MaxColumns(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxColumns()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxColumns(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxColumns(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColumnSpacing(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnSpacing()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ColumnSpacing(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ColumnSpacing(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowSpacing(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowSpacing()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RowSpacing(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RowSpacing(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MaxColumnsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxColumnsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColumnSpacingProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColumnSpacingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RowSpacingProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RowSpacingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IComboBoxHelper> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IComboBoxHelper> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IComboBoxHelperStatics> + : produce_base { + int32_t __stdcall get_KeepInteriorCornersSquareProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeepInteriorCornersSquareProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetKeepInteriorCornersSquare(void* comboBox, + bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetKeepInteriorCornersSquare( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ComboBox const*>(&comboBox), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetKeepInteriorCornersSquare(void* comboBox, + bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetKeepInteriorCornersSquare( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ComboBox const*>(&comboBox))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IComboBoxTemplateSettings> + : produce_base { + int32_t __stdcall get_DropDownOpenedHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropDownOpenedHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropDownClosedHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropDownClosedHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropDownOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropDownOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedItemDirection(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection>( + this->shim().SelectedItemDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropDownContentMinWidth(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropDownContentMinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FlyoutTemplateSettings(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlyoutTemplateSettings()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ControlTypeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ControlTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetControlType(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationControlType>( + this->shim().GetControlType( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetControlType(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetControlType( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SystemBackdropProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdropProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OpenAnimationStartPosition(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenAnimationStartPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenAnimationEndPosition(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenAnimationEndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CloseAnimationEndPosition(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseAnimationEndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurrentWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandedWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidthExpansionDelta(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WidthExpansionDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidthExpansionAnimationStartPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WidthExpansionAnimationStartPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidthExpansionAnimationEndPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().WidthExpansionAnimationEndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidthExpansionMoreButtonAnimationStartPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WidthExpansionMoreButtonAnimationStartPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidthExpansionMoreButtonAnimationEndPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WidthExpansionMoreButtonAnimationEndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandUpOverflowVerticalPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ExpandUpOverflowVerticalPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandDownOverflowVerticalPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ExpandDownOverflowVerticalPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandUpAnimationStartPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandUpAnimationStartPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandUpAnimationEndPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandUpAnimationEndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandUpAnimationHoldPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandUpAnimationHoldPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandDownAnimationStartPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ExpandDownAnimationStartPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandDownAnimationEndPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandDownAnimationEndPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpandDownAnimationHoldPosition( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ExpandDownAnimationHoldPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentClipRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentClipRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentClipRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OverflowContentClipRect()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ContentHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentClipRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OverflowContentClipRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentMinWidth(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentMinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentMaxWidth(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentMaxWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentMaxHeight(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentMaxHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentHorizontalOffset( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().OverflowContentHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentHeight(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NegativeOverflowContentHeight( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NegativeOverflowContentHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EffectiveOverflowButtonVisibility( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EffectiveOverflowButtonVisibility()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentCompactYTranslation( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().OverflowContentCompactYTranslation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentMinimalYTranslation( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().OverflowContentMinimalYTranslation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverflowContentHiddenYTranslation( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().OverflowContentHiddenYTranslation()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Filter(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Filter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Filter(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Filter( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FilterProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FilterProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ConversionKind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ConversionKind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ConversionKind(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConversionKind( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Multiplier(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Multiplier()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Multiplier(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Multiplier(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ConversionKindProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ConversionKindProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MultiplierProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MultiplierProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragCompletedEventArgs> + : produce_base { + int32_t __stdcall get_HorizontalChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Canceled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Canceled()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + double horizontalChange, double verticalChange, bool canceled, + void* baseInterface, void** innerInterface, void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim() + .CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + horizontalChange, verticalChange, canceled, + *reinterpret_cast< + winrt::Windows::Foundation::IInspectable const*>( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragDeltaEventArgs> + : produce_base { + int32_t __stdcall get_HorizontalChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalChange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithHorizontalChangeAndVerticalChange( + double horizontalChange, double verticalChange, void* baseInterface, + void** innerInterface, void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragDeltaEventArgs>( + this->shim().CreateInstanceWithHorizontalChangeAndVerticalChange( + horizontalChange, verticalChange, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragStartedEventArgs> + : produce_base { + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithHorizontalOffsetAndVerticalOffset( + double horizontalOffset, double verticalOffset, void* baseInterface, + void** innerInterface, void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragStartedEventArgs>( + this->shim().CreateInstanceWithHorizontalOffsetAndVerticalOffset( + horizontalOffset, verticalOffset, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase> { + int32_t __stdcall get_Placement(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutPlacementMode>( + this->shim().Placement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Placement(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Placement( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Target(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Target()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusOnInteraction(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowFocusOnInteraction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowFocusOnInteraction(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowFocusOnInteraction(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode>( + this->shim().LightDismissOverlayMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusWhenDisabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowFocusWhenDisabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowFocusWhenDisabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowFocusWhenDisabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShowMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowMode>( + this->shim().ShowMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShowMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InputDevicePrefersPrimaryCommands( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().InputDevicePrefersPrimaryCommands()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AreOpenCloseAnimationsEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreOpenCloseAnimationsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AreOpenCloseAnimationsEnabled(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().AreOpenCloseAnimationsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShouldConstrainToRootBounds(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldConstrainToRootBounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShouldConstrainToRootBounds(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ShouldConstrainToRootBounds(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsConstrainedToRootBounds(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsConstrainedToRootBounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementSoundMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementSoundMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ElementSoundMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ElementSoundMode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverlayInputPassThroughElement( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OverlayInputPassThroughElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OverlayInputPassThroughElement( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OverlayInputPassThroughElement( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsOpen(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpen()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XamlRoot(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XamlRoot()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XamlRoot(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XamlRoot( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Opened(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Opening(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opening( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Opening(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Opening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closing(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closing( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Closing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ShowAt(void* placementTarget) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAt( + *reinterpret_cast( + &placementTarget)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowAtWithOptions(void* placementTarget, + void* showOptions) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAt( + *reinterpret_cast( + &placementTarget), + *reinterpret_cast(&showOptions)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Hide() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Hide(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryInvokeKeyboardAccelerator(void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().TryInvokeKeyboardAccelerator( + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase2> { + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides> + : produce_base { + int32_t __stdcall CreatePresenter(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreatePresenter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnProcessKeyboardAccelerators(void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().OnProcessKeyboardAccelerators( + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics> + : produce_base { + int32_t __stdcall get_TargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PlacementProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlacementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusOnInteractionProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllowFocusOnInteractionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LightDismissOverlayModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LightDismissOverlayModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusWhenDisabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllowFocusWhenDisabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShowModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ShowModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InputDevicePrefersPrimaryCommandsProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InputDevicePrefersPrimaryCommandsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AreOpenCloseAnimationsEnabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AreOpenCloseAnimationsEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShouldConstrainToRootBoundsProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ShouldConstrainToRootBoundsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementSoundModeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementSoundModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OverlayInputPassThroughElementProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OverlayInputPassThroughElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsOpenProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AttachedFlyoutProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AttachedFlyoutProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAttachedFlyout(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAttachedFlyout( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAttachedFlyout(void* element, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAttachedFlyout( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShowAttachedFlyout(void* flyoutOwner) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAttachedFlyout( + *reinterpret_cast( + &flyoutOwner)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics2> + : produce_base { + int32_t __stdcall get_SystemBackdropProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdropProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions> + : produce_base { + int32_t __stdcall get_Position(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Position(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Position( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExclusionRect(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().ExclusionRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExclusionRect(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExclusionRect( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShowMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowMode>( + this->shim().ShowMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShowMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShowMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Placement(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutPlacementMode>( + this->shim().Placement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Placement(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Placement( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptionsFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowOptions>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IGeneratorPositionHelper> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall FromIndexAndOffset( + int32_t index, int32_t offset, + struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition* + result) noexcept final try { + zero_abi< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition>( + result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition>( + this->shim().FromIndexAndOffset(index, offset)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IGridViewItemPresenter> + : produce_base { + int32_t __stdcall get_SelectionCheckMarkVisualEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionCheckMarkVisualEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionCheckMarkVisualEnabled( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionCheckMarkVisualEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckHintBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckHintBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckHintBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckHintBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckSelectingBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckSelectingBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckSelectingBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckSelectingBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragForeground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragForeground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragForeground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragForeground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusBorderBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusBorderBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PlaceholderBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlaceholderBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PlaceholderBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PointerOverBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedForeground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedForeground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedForeground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedForeground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBackground( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedPointerOverBackground( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPointerOverBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBorderBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedPointerOverBorderBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPointerOverBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBorderThickness( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBorderThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedBorderThickness( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedBorderThickness( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisabledOpacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DisabledOpacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DisabledOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragOpacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DragOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragOpacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ReorderHintOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReorderHintOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ReorderHintOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReorderHintOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GridViewItemPresenterHorizontalContentAlignment( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GridViewItemPresenterHorizontalContentAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GridViewItemPresenterHorizontalContentAlignment( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GridViewItemPresenterHorizontalContentAlignment( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::HorizontalAlignment const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GridViewItemPresenterVerticalContentAlignment( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GridViewItemPresenterVerticalContentAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GridViewItemPresenterVerticalContentAlignment( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GridViewItemPresenterVerticalContentAlignment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GridViewItemPresenterPadding( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GridViewItemPresenterPadding()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GridViewItemPresenterPadding( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GridViewItemPresenterPadding( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackgroundMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackgroundMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PointerOverBackgroundMargin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverBackgroundMargin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentMargin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentMargin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SelectionCheckMarkVisualEnabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionCheckMarkVisualEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckHintBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckHintBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckSelectingBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckSelectingBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBrushProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragBackgroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragForegroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusBorderBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PlaceholderBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlaceholderBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBackgroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedForegroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBorderThicknessProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBorderThicknessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisabledOpacityProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DisabledOpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragOpacityProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragOpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ReorderHintOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ReorderHintOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GridViewItemPresenterHorizontalContentAlignmentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GridViewItemPresenterHorizontalContentAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GridViewItemPresenterVerticalContentAlignmentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GridViewItemPresenterVerticalContentAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GridViewItemPresenterPaddingProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GridViewItemPresenterPaddingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackgroundMarginProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackgroundMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentMarginProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DragItemsCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DragItemsCount()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanel> { + int32_t __stdcall get_HorizontalOrientationPadding( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalOrientationPadding()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalOrientationPadding( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalOrientationPadding( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOrientationPadding( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalOrientationPadding()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalOrientationPadding( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalOrientationPadding( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::InfoBarPanel>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics> + : produce_base { + int32_t __stdcall get_HorizontalOrientationPaddingProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalOrientationPaddingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOrientationPaddingProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalOrientationPaddingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHorizontalOrientationMargin( + void* object, + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHorizontalOrientationMargin( + *reinterpret_cast( + &object), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHorizontalOrientationMargin( + void* object, + struct struct_Microsoft_UI_Xaml_Thickness* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetHorizontalOrientationMargin( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>(&object))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOrientationMarginProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalOrientationMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVerticalOrientationMargin( + void* object, + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVerticalOrientationMargin( + *reinterpret_cast( + &object), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetVerticalOrientationMargin( + void* object, + struct struct_Microsoft_UI_Xaml_Thickness* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetVerticalOrientationMargin( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>(&object))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOrientationMarginProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalOrientationMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IItemsChangedEventArgs> + : produce_base { + int32_t __stdcall get_Action(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Action()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition* + value) noexcept final try { + zero_abi< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition>( + value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition>( + this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OldPosition( + struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition* + value) noexcept final try { + zero_abi< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition>( + value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition>( + this->shim().OldPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemCount()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemUICount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemUICount()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Enabled(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Enabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Enabled(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Enabled( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Disabled(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Disabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Disabled(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Disabled( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DisabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Enabled(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Enabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Enabled(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Enabled( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Disabled(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Disabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Disabled(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Disabled( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DisabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ILayoutInformation> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILayoutInformationStatics> + : produce_base { + int32_t __stdcall GetLayoutExceptionElement(void* dispatcher, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetLayoutExceptionElement( + *reinterpret_cast( + &dispatcher))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLayoutSlot( + void* element, winrt::Windows::Foundation::Rect* result) noexcept final + try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Windows::Foundation::Rect>(this->shim().GetLayoutSlot( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAvailableSize( + void* element, winrt::Windows::Foundation::Size* result) noexcept final + try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAvailableSize( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IListViewItemPresenter> + : produce_base { + int32_t __stdcall get_SelectionCheckMarkVisualEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionCheckMarkVisualEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionCheckMarkVisualEnabled( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionCheckMarkVisualEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckHintBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckHintBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckHintBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckHintBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckSelectingBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckSelectingBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckSelectingBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckSelectingBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragForeground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragForeground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragForeground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragForeground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusBorderBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusBorderBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PlaceholderBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlaceholderBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PlaceholderBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PointerOverBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedForeground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedForeground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedForeground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedForeground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBackground( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedPointerOverBackground( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPointerOverBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBorderBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedPointerOverBorderBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPointerOverBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBorderThickness( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBorderThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedBorderThickness( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedBorderThickness( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisabledOpacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DisabledOpacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DisabledOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragOpacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DragOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DragOpacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DragOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ReorderHintOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReorderHintOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ReorderHintOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReorderHintOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListViewItemPresenterHorizontalContentAlignment( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListViewItemPresenterHorizontalContentAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListViewItemPresenterHorizontalContentAlignment( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListViewItemPresenterHorizontalContentAlignment( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::HorizontalAlignment const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListViewItemPresenterVerticalContentAlignment( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListViewItemPresenterVerticalContentAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListViewItemPresenterVerticalContentAlignment( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListViewItemPresenterVerticalContentAlignment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListViewItemPresenterPadding( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListViewItemPresenterPadding()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListViewItemPresenterPadding( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListViewItemPresenterPadding( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackgroundMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackgroundMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PointerOverBackgroundMargin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverBackgroundMargin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentMargin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentMargin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPressedBackground(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPressedBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedPressedBackground(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPressedBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PressedBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PressedBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PressedBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PressedBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusSecondaryBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusSecondaryBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusSecondaryBorderBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusSecondaryBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverForeground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverForeground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PointerOverForeground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverForeground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBackground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RevealBackground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RevealBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBorderBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RevealBorderBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RevealBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBorderThickness( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBorderThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RevealBorderThickness( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RevealBorderThickness( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBackgroundShowsAboveContent( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().RevealBackgroundShowsAboveContent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RevealBackgroundShowsAboveContent( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RevealBackgroundShowsAboveContent(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedDisabledBackground(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedDisabledBackground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedDisabledBackground(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDisabledBackground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckPressedBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckPressedBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckPressedBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckPressedBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckDisabledBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckDisabledBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckDisabledBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckDisabledBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPointerOverBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPointerOverBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxPointerOverBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxPointerOverBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPressedBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPressedBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxPressedBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxPressedBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxDisabledBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxDisabledBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxDisabledBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxDisabledBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxSelectedBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxSelectedBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedPointerOverBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedPointerOverBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxSelectedPointerOverBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxSelectedPointerOverBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedPressedBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedPressedBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxSelectedPressedBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxSelectedPressedBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedDisabledBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedDisabledBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxSelectedDisabledBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxSelectedDisabledBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxBorderBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxBorderBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPointerOverBorderBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPointerOverBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxPointerOverBorderBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxPointerOverBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPressedBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPressedBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxPressedBorderBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxPressedBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxDisabledBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxDisabledBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxDisabledBorderBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxDisabledBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxCornerRadius( + struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxCornerRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CheckBoxCornerRadius( + struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CheckBoxCornerRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorCornerRadius( + struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorCornerRadius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorCornerRadius( + struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorCornerRadius( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorVisualEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionIndicatorVisualEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorVisualEnabled( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorVisualEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ListViewItemPresenterSelectionIndicatorMode const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorPointerOverBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorPointerOverBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorPointerOverBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorPointerOverBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorPressedBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorPressedBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorPressedBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorPressedBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorDisabledBrush( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorDisabledBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectionIndicatorDisabledBrush( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionIndicatorDisabledBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBorderBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedBorderBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPressedBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPressedBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedPressedBorderBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPressedBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedDisabledBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedDisabledBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedDisabledBorderBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDisabledBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedInnerBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedInnerBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedInnerBorderBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedInnerBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBorderBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBorderBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PointerOverBorderBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverBorderBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SelectionCheckMarkVisualEnabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionCheckMarkVisualEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckHintBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckHintBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckSelectingBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckSelectingBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBrushProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragBackgroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragForegroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusBorderBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PlaceholderBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlaceholderBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBackgroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedForegroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPointerOverBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPointerOverBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBorderThicknessProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBorderThicknessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DisabledOpacityProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DisabledOpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragOpacityProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragOpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ReorderHintOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ReorderHintOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListViewItemPresenterHorizontalContentAlignmentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListViewItemPresenterHorizontalContentAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListViewItemPresenterVerticalContentAlignmentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListViewItemPresenterVerticalContentAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListViewItemPresenterPaddingProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ListViewItemPresenterPaddingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBackgroundMarginProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBackgroundMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentMarginProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPressedBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPressedBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PressedBackgroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PressedBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxBrushProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusSecondaryBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusSecondaryBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverForegroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBackgroundProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBorderBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBorderThicknessProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBorderThicknessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RevealBackgroundShowsAboveContentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RevealBackgroundShowsAboveContentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedDisabledBackgroundProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedDisabledBackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckPressedBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckPressedBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckDisabledBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckDisabledBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPointerOverBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPointerOverBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPressedBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPressedBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxDisabledBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxDisabledBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedPointerOverBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedPointerOverBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedPressedBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedPressedBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxSelectedDisabledBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxSelectedDisabledBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxBorderBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPointerOverBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPointerOverBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxPressedBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxPressedBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxDisabledBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxDisabledBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CheckBoxCornerRadiusProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CheckBoxCornerRadiusProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorCornerRadiusProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorCornerRadiusProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorVisualEnabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorVisualEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorPointerOverBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorPointerOverBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorPressedBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorPressedBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectionIndicatorDisabledBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectionIndicatorDisabledBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedBorderBrushProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedPressedBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedPressedBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedDisabledBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedDisabledBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedInnerBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedInnerBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerOverBorderBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerOverBorderBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DragItemsCount(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DragItemsCount()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelector> { + int32_t __stdcall get_ShouldLoop(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldLoop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShouldLoop(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShouldLoop(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Items(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Items(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Items( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndex(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedItem()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemWidth(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ItemWidth(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ItemWidth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemHeight(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ItemHeight(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ItemHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemTemplate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_SelectionChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SelectionChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelectorItem> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelectorPanel> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelectorStatics> + : produce_base { + int32_t __stdcall get_ShouldLoopProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ShouldLoopProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedIndexProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedItemProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemTemplateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeyboardAcceleratorTextMinWidth( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().KeyboardAcceleratorTextMinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FlyoutContentMinWidth(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FlyoutContentMinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SourceElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourceElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SourceElement(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SourceElement( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ReplacementColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ReplacementColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ReplacementColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReplacementColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SourceElementProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourceElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ReplacementColorProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ReplacementColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Icon(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Icon()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Icon(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Icon( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::IconElement const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TemplateSettings()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_InfoBadge(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InfoBadge()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InfoBadge(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InfoBadge( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::InfoBadge const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IconProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IconProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TemplateSettingsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_InfoBadgeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InfoBadgeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IconWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallerIconWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallerIconWidth()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IconWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IconWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallerIconWidthProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SmallerIconWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CanVerticallyScroll(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanVerticallyScroll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanVerticallyScroll(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanVerticallyScroll(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanHorizontallyScroll(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanHorizontallyScroll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanHorizontallyScroll(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanHorizontallyScroll(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtentWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtentHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScrollOwner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScrollOwner()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScrollOwner(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollOwner( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineUp() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineUp(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineDown() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineDown(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineLeft() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineLeft(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LineRight() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineRight(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageUp() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageUp(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageDown() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageDown(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageLeft() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageLeft(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PageRight() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PageRight(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelUp() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelUp(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelDown() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelDown(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelLeft() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelLeft(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MouseWheelRight() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelRight(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHorizontalOffset(double offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHorizontalOffset(offset); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVerticalOffset(double offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVerticalOffset(offset); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MakeVisible( + void* visual, winrt::Windows::Foundation::Rect rectangle, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().MakeVisible( + *reinterpret_cast( + &visual), + *reinterpret_cast( + &rectangle))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBase> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBase> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBaseFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::PickerFlyoutBase>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall OnConfirmed() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnConfirmed(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ShouldShowConfirmationButtons(bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ShouldShowConfirmationButtons()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBaseStatics> + : produce_base { + int32_t __stdcall get_TitleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TitleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTitle(void* element, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetTitle( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTitle(void* element, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTitle( + *reinterpret_cast( + &element), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderItem> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderItem> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderItemFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::PivotHeaderItem>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderPanel> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderPanel> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotPanel> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Child(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Child()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Child(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Child( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsOpen(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpen()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsOpen(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsOpen(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChildTransitions(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection>( + this->shim().ChildTransitions()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChildTransitions(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChildTransitions( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsLightDismissEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLightDismissEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsLightDismissEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsLightDismissEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode>( + this->shim().LightDismissOverlayMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShouldConstrainToRootBounds(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldConstrainToRootBounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShouldConstrainToRootBounds(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ShouldConstrainToRootBounds(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsConstrainedToRootBounds(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsConstrainedToRootBounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Opened(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PlacementTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlacementTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PlacementTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PlacementTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DesiredPlacement(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::PopupPlacementMode>( + this->shim().DesiredPlacement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredPlacement(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredPlacement( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualPlacement(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::PopupPlacementMode>( + this->shim().ActualPlacement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ActualPlacementChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().ActualPlacementChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ActualPlacementChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ActualPlacementChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics> { + int32_t __stdcall get_ChildProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ChildProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsOpenProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChildTransitionsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ChildTransitionsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsLightDismissEnabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsLightDismissEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LightDismissOverlayModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LightDismissOverlayModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShouldConstrainToRootBoundsProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ShouldConstrainToRootBoundsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics2> { + int32_t __stdcall get_PlacementTargetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PlacementTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DesiredPlacementProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DesiredPlacementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IPopupStatics3> { + int32_t __stdcall get_SystemBackdropProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdropProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase> { + int32_t __stdcall get_Minimum(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Minimum()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Minimum(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Minimum(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Maximum(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Maximum()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Maximum(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Maximum(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SmallChange(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SmallChange(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LargeChange(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LargeChange()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LargeChange(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LargeChange(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Value(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ValueChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ValueChanged( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ValueChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ValueChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::RangeBase>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides> + : produce_base { + int32_t __stdcall OnMinimumChanged(double oldMinimum, + double newMinimum) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnMinimumChanged(oldMinimum, newMinimum); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnMaximumChanged(double oldMaximum, + double newMaximum) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnMaximumChanged(oldMaximum, newMaximum); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnValueChanged(double oldValue, + double newValue) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnValueChanged(oldValue, newValue); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseStatics> { + int32_t __stdcall get_MinimumProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinimumProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaximumProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaximumProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SmallChangeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SmallChangeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LargeChangeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LargeChangeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OldValue(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewValue(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewValue()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButton> { + int32_t __stdcall get_Delay(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Delay()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Delay(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Delay(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Interval(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Interval()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Interval(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Interval(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButtonStatics> + : produce_base { + int32_t __stdcall get_DelayProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DelayProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IntervalProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IntervalProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatedScrollSnapPoint> + : produce_base { + int32_t __stdcall get_Offset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Interval(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Interval()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Start(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Start()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_End(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().End()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(double offset, double interval, double start, + double end, int32_t alignment, + void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CreateInstance( + offset, interval, start, end, + *reinterpret_cast(&alignment), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatedZoomSnapPoint> + : produce_base { + int32_t __stdcall get_Offset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Interval(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Interval()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Start(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Start()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_End(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().End()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(double offset, double interval, double start, + double end, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance( + offset, interval, start, end, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBar> { + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Orientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Orientation const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportSize(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ViewportSize(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ViewportSize(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IndicatorMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().IndicatorMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IndicatorMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IndicatorMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Scroll(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Scroll( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Scroll(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Scroll(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBarStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollBarStatics> { + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OrientationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportSizeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ViewportSizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IndicatorModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IndicatorModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController> { + int32_t __stdcall get_PanningInfo(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PanningInfo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanScroll(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanScroll()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsScrollingWithMouse(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsScrollingWithMouse()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsScrollable(bool isScrollable) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsScrollable(isScrollable); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetValues(double minOffset, double maxOffset, double offset, + double viewportLength) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetValues(minOffset, maxOffset, offset, viewportLength); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetScrollAnimation( + int32_t correlationId, + winrt::Windows::Foundation::Numerics::float2 startPosition, + winrt::Windows::Foundation::Numerics::float2 endPosition, + void* defaultAnimation, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Composition:: + CompositionAnimation>(this->shim().GetScrollAnimation( + correlationId, + *reinterpret_cast( + &startPosition), + *reinterpret_cast( + &endPosition), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionAnimation const*>( + &defaultAnimation))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall NotifyRequestedScrollCompleted( + int32_t correlationId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NotifyRequestedScrollCompleted(correlationId); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_CanScrollChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CanScrollChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CanScrollChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CanScrollChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_IsScrollingWithMouseChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from< + winrt::event_token>(this->shim().IsScrollingWithMouseChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_IsScrollingWithMouseChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().IsScrollingWithMouseChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ScrollToRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ScrollToRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ScrollToRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollToRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ScrollByRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ScrollByRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ScrollByRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollByRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AddScrollVelocityRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from< + winrt::event_token>(this->shim().AddScrollVelocityRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AddScrollVelocityRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AddScrollVelocityRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OffsetVelocity(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffsetVelocity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InertiaDecayRate(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().InertiaDecayRate()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CorrelationId(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CorrelationId(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollControllerAddScrollVelocityRequestedEventArgsFactory> { + int32_t __stdcall CreateInstance(float offsetVelocity, void* inertiaDecayRate, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CreateInstance( + offsetVelocity, + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>( + &inertiaDecayRate))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerPoint(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* pointerPoint, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &pointerPoint))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_IsRailEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRailEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PanOrientation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PanOrientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PanningElementAncestor(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PanningElementAncestor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPanningElementExpressionAnimationSources( + void* propertySet, void* minOffsetPropertyName, + void* maxOffsetPropertyName, void* offsetPropertyName, + void* multiplierPropertyName) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPanningElementExpressionAnimationSources( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionPropertySet const*>( + &propertySet), + *reinterpret_cast(&minOffsetPropertyName), + *reinterpret_cast(&maxOffsetPropertyName), + *reinterpret_cast(&offsetPropertyName), + *reinterpret_cast(&multiplierPropertyName)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Changed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Changed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Changed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PanRequested(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PanRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PanRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PanRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OffsetDelta(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffsetDelta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Options(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions>( + this->shim().Options()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CorrelationId(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CorrelationId(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(double offsetDelta, void* options, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + offsetDelta, + *reinterpret_cast(&options))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Offset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Options(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions>( + this->shim().Options()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CorrelationId(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CorrelationId(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(double offset, void* options, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + offset, + *reinterpret_cast(&options))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollEventArgs> { + int32_t __stdcall get_NewValue(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScrollEventType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventType>( + this->shim().ScrollEventType()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter> { + int32_t __stdcall get_Background(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Background()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Background(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Background( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Content(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Content()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Content(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Content( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpressionAnimationSources(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ExpressionAnimationSources()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomFactor(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtentWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtentHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewportHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScrollableWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScrollableHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentOrientation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::ScrollingContentOrientation>( + this->shim().ContentOrientation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentOrientation(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentOrientation( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollChainMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HorizontalScrollChainMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalScrollChainMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollChainMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollChainMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VerticalScrollChainMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalScrollChainMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollChainMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollRailMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HorizontalScrollRailMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalScrollRailMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollRailMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollRailMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VerticalScrollRailMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalScrollRailMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollRailMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HorizontalScrollMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalScrollMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().VerticalScrollMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalScrollMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ComputedHorizontalScrollMode( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ComputedHorizontalScrollMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ComputedVerticalScrollMode( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ComputedVerticalScrollMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomChainMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ZoomChainMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ZoomChainMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomChainMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ZoomMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ZoomMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IgnoredInputKinds(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().IgnoredInputKinds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IgnoredInputKinds(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IgnoredInputKinds( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingInputKinds const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinZoomFactor(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinZoomFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinZoomFactor(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinZoomFactor(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxZoomFactor(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxZoomFactor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxZoomFactor(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxZoomFactor(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_State(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::ScrollingInteractionState>( + this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollController(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController>( + this->shim().HorizontalScrollController()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalScrollController(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollController( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollController(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController>( + this->shim().VerticalScrollController()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalScrollController(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollController( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAnchorRatio(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAnchorRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalAnchorRatio(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAnchorRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAnchorRatio(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAnchorRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalAnchorRatio(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAnchorRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalSnapPoints(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().HorizontalSnapPoints()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalSnapPoints(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().VerticalSnapPoints()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomSnapPoints(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().ZoomSnapPoints()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollTo(double horizontalOffset, double verticalOffset, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ScrollTo(horizontalOffset, verticalOffset)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollToWithOptions(double horizontalOffset, + double verticalOffset, void* options, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ScrollTo( + horizontalOffset, verticalOffset, + *reinterpret_cast(&options))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollBy(double horizontalOffsetDelta, + double verticalOffsetDelta, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ScrollBy(horizontalOffsetDelta, verticalOffsetDelta)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ScrollByWithOptions(double horizontalOffsetDelta, + double verticalOffsetDelta, + void* options, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ScrollBy( + horizontalOffsetDelta, verticalOffsetDelta, + *reinterpret_cast(&options))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddScrollVelocity( + winrt::Windows::Foundation::Numerics::float2 offsetsVelocity, + void* inertiaDecayRate, int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AddScrollVelocity( + *reinterpret_cast( + &offsetsVelocity), + *reinterpret_cast const*>( + &inertiaDecayRate))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ZoomTo(float zoomFactor, void* centerPoint, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomTo( + zoomFactor, *reinterpret_cast const*>( + ¢erPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ZoomToWithOptions(float zoomFactor, void* centerPoint, + void* options, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomTo( + zoomFactor, + *reinterpret_cast const*>(¢erPoint), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions const*>( + &options))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ZoomBy(float zoomFactorDelta, void* centerPoint, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomBy( + zoomFactorDelta, + *reinterpret_cast const*>( + ¢erPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ZoomByWithOptions(float zoomFactorDelta, void* centerPoint, + void* options, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomBy( + zoomFactorDelta, + *reinterpret_cast const*>(¢erPoint), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions const*>( + &options))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddZoomVelocity(float zoomFactorVelocity, void* centerPoint, + void* inertiaDecayRate, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AddZoomVelocity( + zoomFactorVelocity, + *reinterpret_cast const*>(¢erPoint), + *reinterpret_cast const*>( + &inertiaDecayRate))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ExtentChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ExtentChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ExtentChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ExtentChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_StateChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().StateChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_StateChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().StateChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ViewChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ViewChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ViewChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ViewChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ScrollAnimationStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from< + winrt::event_token>(this->shim().ScrollAnimationStarting( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ScrollAnimationStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollAnimationStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ZoomAnimationStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ZoomAnimationStarting( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ZoomAnimationStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomAnimationStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ScrollCompleted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ScrollCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ScrollCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ZoomCompleted(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ZoomCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ZoomCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_BringingIntoView( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().BringingIntoView( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_BringingIntoView( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().BringingIntoView( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AnchorRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AnchorRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AnchorRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenterFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenterStatics> + : produce_base { + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentOrientationProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentOrientationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollChainModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalScrollChainModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollChainModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalScrollChainModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollRailModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalScrollRailModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollRailModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalScrollRailModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalScrollModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalScrollModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalScrollModeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalScrollModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ComputedHorizontalScrollModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ComputedHorizontalScrollModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ComputedVerticalScrollModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ComputedVerticalScrollModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomChainModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ZoomChainModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ZoomModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ZoomModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IgnoredInputKindsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IgnoredInputKindsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinZoomFactorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinZoomFactorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxZoomFactorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxZoomFactorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAnchorRatioProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalAnchorRatioProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAnchorRatioProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalAnchorRatioProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPoint> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPoint> { + int32_t __stdcall get_Value(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointBase> + : produce_base { + int32_t __stdcall get_Alignment(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Alignment()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointFactory> + : produce_base { + int32_t __stdcall CreateInstance(double snapPointValue, int32_t alignment, + void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollSnapPoint>( + this->shim().CreateInstance( + snapPointValue, + *reinterpret_cast(&alignment), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo> + : produce_base { + int32_t __stdcall get_AreHorizontalSnapPointsRegular( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreHorizontalSnapPointsRegular()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AreVerticalSnapPointsRegular(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreVerticalSnapPointsRegular()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_HorizontalSnapPointsChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().HorizontalSnapPointsChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_HorizontalSnapPointsChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalSnapPointsChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_VerticalSnapPointsChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().VerticalSnapPointsChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_VerticalSnapPointsChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalSnapPointsChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetIrregularSnapPoints(int32_t orientation, + int32_t alignment, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Windows::Foundation::Collections::IVectorView>( + this->shim().GetIrregularSnapPoints( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Orientation const*>( + &orientation), + *reinterpret_cast(&alignment))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRegularSnapPoints(int32_t orientation, int32_t alignment, + float* offset, + float* returnValue) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().GetRegularSnapPoints( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::Orientation const*>( + &orientation), + *reinterpret_cast(&alignment), + *offset)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector> { + int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndex(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedItem()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedValue( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedValuePath(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedValuePath()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SelectedValuePath(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedValuePath(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSynchronizedWithCurrentItem( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().IsSynchronizedWithCurrentItem()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsSynchronizedWithCurrentItem( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsSynchronizedWithCurrentItem( + *reinterpret_cast const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_SelectionChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SelectionChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItem> { + int32_t __stdcall get_IsSelected(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelected()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsSelected(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsSelected(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItemFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::SelectorItem>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItemStatics> + : produce_base { + int32_t __stdcall get_IsSelectedProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsSelectedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorStatics> { + int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedIndexProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedItemProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SelectedValuePathProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SelectedValuePathProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSynchronizedWithCurrentItemProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsSynchronizedWithCurrentItemProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsSelectionActive(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsSelectionActive( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBase> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBaseFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OpenPaneLength(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NegativeOpenPaneLength(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NegativeOpenPaneLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenPaneLengthMinusCompactLength( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().OpenPaneLengthMinusCompactLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NegativeOpenPaneLengthMinusCompactLength( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NegativeOpenPaneLengthMinusCompactLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenPaneGridLength( + struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenPaneGridLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CompactPaneGridLength( + struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CompactPaneGridLength()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ITabViewListView> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITabViewListView> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITabViewListViewFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::TabViewListView>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsDragging(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDragging()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_DragStarted(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragStarted( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragStarted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragStarted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragDelta(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragDelta( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragDelta(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragDelta( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragCompleted(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragCompleted( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall CancelDrag() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CancelDrag(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IThumbStatics> { + int32_t __stdcall get_IsDraggingProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsDraggingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Fill(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Fill()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Fill(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Fill( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBarStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITickBarStatics> { + int32_t __stdcall get_FillProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton> { + int32_t __stdcall get_IsChecked(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().IsChecked()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsChecked(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsChecked( + *reinterpret_cast const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsThreeState(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsThreeState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsThreeState(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsThreeState(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Checked(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Checked( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Checked(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Checked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Unchecked(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Unchecked( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Unchecked(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Unchecked( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Indeterminate(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Indeterminate( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Indeterminate( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Indeterminate( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ToggleButton>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonOverrides> + : produce_base { + int32_t __stdcall OnToggle() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnToggle(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonStatics> + : produce_base { + int32_t __stdcall get_IsCheckedProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsCheckedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsThreeStateProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsThreeStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KnobCurrentToOnOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KnobCurrentToOnOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KnobCurrentToOffOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KnobCurrentToOffOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KnobOnToOffOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KnobOnToOffOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KnobOffToOnOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KnobOffToOnOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurtainCurrentToOnOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurtainCurrentToOnOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurtainCurrentToOffOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurtainCurrentToOffOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurtainOnToOffOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurtainOnToOffOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurtainOffToOnOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurtainOffToOnOffset()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToolTipTemplateSettings> + : produce_base { + int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPoint> { + int32_t __stdcall get_Value(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointBase> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointBaseFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointFactory> + : produce_base { + int32_t __stdcall CreateInstance(double snapPointValue, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ZoomSnapPoint>( + this->shim().CreateInstance( + snapPointValue, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IFlyoutBaseOverrides> { + auto CreatePresenter() { + if (auto overridable = this->shim_overridable()) { + return overridable.CreatePresenter(); + } + + return this->shim().CreatePresenter(); + } + auto OnProcessKeyboardAccelerators( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnProcessKeyboardAccelerators(args); + } + + return this->shim().OnProcessKeyboardAccelerators(args); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES + produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IPickerFlyoutBaseOverrides> { + auto OnConfirmed() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnConfirmed(); + } + + return this->shim().OnConfirmed(); + } + auto ShouldShowConfirmationButtons() { + if (auto overridable = this->shim_overridable()) { + return overridable.ShouldShowConfirmationButtons(); + } + + return this->shim().ShouldShowConfirmationButtons(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRangeBaseOverrides> { + auto OnMinimumChanged(double oldMinimum, double newMinimum) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnMinimumChanged(oldMinimum, newMinimum); + } + + return this->shim().OnMinimumChanged(oldMinimum, newMinimum); + } + auto OnMaximumChanged(double oldMaximum, double newMaximum) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnMaximumChanged(oldMaximum, newMaximum); + } + + return this->shim().OnMaximumChanged(oldMaximum, newMaximum); + } + auto OnValueChanged(double oldValue, double newValue) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnValueChanged(oldValue, newValue); + } + + return this->shim().OnValueChanged(oldValue, newValue); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleButtonOverrides> { + auto OnToggle() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnToggle(); + } + + return this->shim().OnToggle(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Controls::Primitives { + inline auto AutoSuggestBoxHelper::KeepInteriorCornersSquareProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAutoSuggestBoxHelperStatics const&), + AutoSuggestBoxHelper, IAutoSuggestBoxHelperStatics>( + [](IAutoSuggestBoxHelperStatics const& f) { + return f.KeepInteriorCornersSquareProperty(); + }); + } + inline auto AutoSuggestBoxHelper::SetKeepInteriorCornersSquare( + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const& + autoSuggestBox, + bool value) { + impl::call_factory( + [&](IAutoSuggestBoxHelperStatics const& f) { + return f.SetKeepInteriorCornersSquare(autoSuggestBox, value); + }); + } + inline auto AutoSuggestBoxHelper::GetKeepInteriorCornersSquare( + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const& + autoSuggestBox) { + return impl::call_factory( + [&](IAutoSuggestBoxHelperStatics const& f) { + return f.GetKeepInteriorCornersSquare(autoSuggestBox); + }); + } + inline auto ButtonBase::ClickModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IButtonBaseStatics const&), + ButtonBase, IButtonBaseStatics>( + [](IButtonBaseStatics const& f) { return f.ClickModeProperty(); }); + } + inline auto ButtonBase::IsPointerOverProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IButtonBaseStatics const&), + ButtonBase, IButtonBaseStatics>( + [](IButtonBaseStatics const& f) { return f.IsPointerOverProperty(); }); + } + inline auto ButtonBase::IsPressedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IButtonBaseStatics const&), + ButtonBase, IButtonBaseStatics>( + [](IButtonBaseStatics const& f) { return f.IsPressedProperty(); }); + } + inline auto ButtonBase::CommandProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IButtonBaseStatics const&), + ButtonBase, IButtonBaseStatics>( + [](IButtonBaseStatics const& f) { return f.CommandProperty(); }); + } + inline auto ButtonBase::CommandParameterProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IButtonBaseStatics const&), + ButtonBase, IButtonBaseStatics>([](IButtonBaseStatics const& f) { + return f.CommandParameterProperty(); + }); + } + inline CalendarPanel::CalendarPanel() + : CalendarPanel( + impl::call_factory_cast< + CalendarPanel (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CalendarPanel>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline CarouselPanel::CarouselPanel() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICarouselPanelFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline ColorPickerSlider::ColorPickerSlider() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IColorPickerSliderFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ColorPickerSlider::ColorChannelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorPickerSliderStatics const&), + ColorPickerSlider, IColorPickerSliderStatics>( + [](IColorPickerSliderStatics const& f) { + return f.ColorChannelProperty(); + }); + } + inline ColorSpectrum::ColorSpectrum() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IColorSpectrumFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ColorSpectrum::ColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.ColorProperty(); }); + } + inline auto ColorSpectrum::HsvColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.HsvColorProperty(); }); + } + inline auto ColorSpectrum::MinHueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.MinHueProperty(); }); + } + inline auto ColorSpectrum::MaxHueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.MaxHueProperty(); }); + } + inline auto ColorSpectrum::MinSaturationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { + return f.MinSaturationProperty(); + }); + } + inline auto ColorSpectrum::MaxSaturationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { + return f.MaxSaturationProperty(); + }); + } + inline auto ColorSpectrum::MinValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.MinValueProperty(); }); + } + inline auto ColorSpectrum::MaxValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.MaxValueProperty(); }); + } + inline auto ColorSpectrum::ShapeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.ShapeProperty(); }); + } + inline auto ColorSpectrum::ComponentsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorSpectrumStatics const&), + ColorSpectrum, IColorSpectrumStatics>( + [](IColorSpectrumStatics const& f) { return f.ComponentsProperty(); }); + } + inline ColumnMajorUniformToLargestGridLayout:: + ColumnMajorUniformToLargestGridLayout() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IColumnMajorUniformToLargestGridLayoutFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ColumnMajorUniformToLargestGridLayout::MaxColumnsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColumnMajorUniformToLargestGridLayoutStatics const&), + ColumnMajorUniformToLargestGridLayout, + IColumnMajorUniformToLargestGridLayoutStatics>( + [](IColumnMajorUniformToLargestGridLayoutStatics const& f) { + return f.MaxColumnsProperty(); + }); + } + inline auto ColumnMajorUniformToLargestGridLayout::ColumnSpacingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColumnMajorUniformToLargestGridLayoutStatics const&), + ColumnMajorUniformToLargestGridLayout, + IColumnMajorUniformToLargestGridLayoutStatics>( + [](IColumnMajorUniformToLargestGridLayoutStatics const& f) { + return f.ColumnSpacingProperty(); + }); + } + inline auto ColumnMajorUniformToLargestGridLayout::RowSpacingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColumnMajorUniformToLargestGridLayoutStatics const&), + ColumnMajorUniformToLargestGridLayout, + IColumnMajorUniformToLargestGridLayoutStatics>( + [](IColumnMajorUniformToLargestGridLayoutStatics const& f) { + return f.RowSpacingProperty(); + }); + } + inline auto ComboBoxHelper::KeepInteriorCornersSquareProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IComboBoxHelperStatics const&), + ComboBoxHelper, IComboBoxHelperStatics>( + [](IComboBoxHelperStatics const& f) { + return f.KeepInteriorCornersSquareProperty(); + }); + } + inline auto ComboBoxHelper::SetKeepInteriorCornersSquare( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& comboBox, + bool value) { + impl::call_factory( + [&](IComboBoxHelperStatics const& f) { + return f.SetKeepInteriorCornersSquare(comboBox, value); + }); + } + inline auto ComboBoxHelper::GetKeepInteriorCornersSquare( + winrt::Microsoft::UI::Xaml::Controls::ComboBox const& comboBox) { + return impl::call_factory( + [&](IComboBoxHelperStatics const& f) { + return f.GetKeepInteriorCornersSquare(comboBox); + }); + } + inline CommandBarFlyoutCommandBar::CommandBarFlyoutCommandBar() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICommandBarFlyoutCommandBarFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto CommandBarFlyoutCommandBar::SystemBackdropProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICommandBarFlyoutCommandBarStatics const&), + CommandBarFlyoutCommandBar, ICommandBarFlyoutCommandBarStatics>( + [](ICommandBarFlyoutCommandBarStatics const& f) { + return f.SystemBackdropProperty(); + }); + } + inline auto + CommandBarFlyoutCommandBarAutomationProperties::ControlTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICommandBarFlyoutCommandBarAutomationPropertiesStatics const&), + CommandBarFlyoutCommandBarAutomationProperties, + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>( + [](ICommandBarFlyoutCommandBarAutomationPropertiesStatics const& f) { + return f.ControlTypeProperty(); + }); + } + inline auto CommandBarFlyoutCommandBarAutomationProperties::GetControlType( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory< + CommandBarFlyoutCommandBarAutomationProperties, + ICommandBarFlyoutCommandBarAutomationPropertiesStatics>( + [&](ICommandBarFlyoutCommandBarAutomationPropertiesStatics const& f) { + return f.GetControlType(element); + }); + } + inline auto CommandBarFlyoutCommandBarAutomationProperties::SetControlType( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Xaml::Automation::Peers:: + AutomationControlType const& value) { + impl::call_factory( + [&](ICommandBarFlyoutCommandBarAutomationPropertiesStatics const& f) { + return f.SetControlType(element, value); + }); + } + inline CornerRadiusFilterConverter::CornerRadiusFilterConverter() + : CornerRadiusFilterConverter( + impl::call_factory_cast< + CornerRadiusFilterConverter (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CornerRadiusFilterConverter>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto CornerRadiusFilterConverter::FilterProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICornerRadiusFilterConverterStatics const&), + CornerRadiusFilterConverter, ICornerRadiusFilterConverterStatics>( + [](ICornerRadiusFilterConverterStatics const& f) { + return f.FilterProperty(); + }); + } + inline auto CornerRadiusFilterConverter::ScaleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICornerRadiusFilterConverterStatics const&), + CornerRadiusFilterConverter, ICornerRadiusFilterConverterStatics>( + [](ICornerRadiusFilterConverterStatics const& f) { + return f.ScaleProperty(); + }); + } + inline CornerRadiusToThicknessConverter::CornerRadiusToThicknessConverter() + : CornerRadiusToThicknessConverter( + impl::call_factory_cast< + CornerRadiusToThicknessConverter (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CornerRadiusToThicknessConverter>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + CornerRadiusToThicknessConverter>(); + })) {} + inline auto CornerRadiusToThicknessConverter::ConversionKindProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICornerRadiusToThicknessConverterStatics const&), + CornerRadiusToThicknessConverter, + ICornerRadiusToThicknessConverterStatics>( + [](ICornerRadiusToThicknessConverterStatics const& f) { + return f.ConversionKindProperty(); + }); + } + inline auto CornerRadiusToThicknessConverter::MultiplierProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICornerRadiusToThicknessConverterStatics const&), + CornerRadiusToThicknessConverter, + ICornerRadiusToThicknessConverterStatics>( + [](ICornerRadiusToThicknessConverterStatics const& f) { + return f.MultiplierProperty(); + }); + } + inline DragCompletedEventArgs::DragCompletedEventArgs( + double horizontalChange, double verticalChange, bool canceled) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDragCompletedEventArgsFactory const& f) { + return f.CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + horizontalChange, verticalChange, canceled, baseInterface, + innerInterface); + }); + } + inline DragDeltaEventArgs::DragDeltaEventArgs(double horizontalChange, + double verticalChange) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDragDeltaEventArgsFactory const& f) { + return f.CreateInstanceWithHorizontalChangeAndVerticalChange( + horizontalChange, verticalChange, baseInterface, innerInterface); + }); + } + inline DragStartedEventArgs::DragStartedEventArgs(double horizontalOffset, + double verticalOffset) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IDragStartedEventArgsFactory const& f) { + return f.CreateInstanceWithHorizontalOffsetAndVerticalOffset( + horizontalOffset, verticalOffset, baseInterface, + innerInterface); + }); + } + inline auto FlyoutBase::TargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>( + [](IFlyoutBaseStatics const& f) { return f.TargetProperty(); }); + } + inline auto FlyoutBase::PlacementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>( + [](IFlyoutBaseStatics const& f) { return f.PlacementProperty(); }); + } + inline auto FlyoutBase::AllowFocusOnInteractionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.AllowFocusOnInteractionProperty(); + }); + } + inline auto FlyoutBase::LightDismissOverlayModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.LightDismissOverlayModeProperty(); + }); + } + inline auto FlyoutBase::AllowFocusWhenDisabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.AllowFocusWhenDisabledProperty(); + }); + } + inline auto FlyoutBase::ShowModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>( + [](IFlyoutBaseStatics const& f) { return f.ShowModeProperty(); }); + } + inline auto FlyoutBase::InputDevicePrefersPrimaryCommandsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.InputDevicePrefersPrimaryCommandsProperty(); + }); + } + inline auto FlyoutBase::AreOpenCloseAnimationsEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.AreOpenCloseAnimationsEnabledProperty(); + }); + } + inline auto FlyoutBase::ShouldConstrainToRootBoundsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.ShouldConstrainToRootBoundsProperty(); + }); + } + inline auto FlyoutBase::ElementSoundModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.ElementSoundModeProperty(); + }); + } + inline auto FlyoutBase::OverlayInputPassThroughElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>([](IFlyoutBaseStatics const& f) { + return f.OverlayInputPassThroughElementProperty(); + }); + } + inline auto FlyoutBase::IsOpenProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>( + [](IFlyoutBaseStatics const& f) { return f.IsOpenProperty(); }); + } + inline auto FlyoutBase::AttachedFlyoutProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics const&), + FlyoutBase, IFlyoutBaseStatics>( + [](IFlyoutBaseStatics const& f) { return f.AttachedFlyoutProperty(); }); + } + inline auto FlyoutBase::GetAttachedFlyout( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element) { + return impl::call_factory( + [&](IFlyoutBaseStatics const& f) { + return f.GetAttachedFlyout(element); + }); + } + inline auto FlyoutBase::SetAttachedFlyout( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element, + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& + value) { + impl::call_factory( + [&](IFlyoutBaseStatics const& f) { + return f.SetAttachedFlyout(element, value); + }); + } + inline auto FlyoutBase::ShowAttachedFlyout( + winrt::Microsoft::UI::Xaml::FrameworkElement const& flyoutOwner) { + impl::call_factory( + [&](IFlyoutBaseStatics const& f) { + return f.ShowAttachedFlyout(flyoutOwner); + }); + } + inline auto FlyoutBase::SystemBackdropProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFlyoutBaseStatics2 const&), + FlyoutBase, IFlyoutBaseStatics2>([](IFlyoutBaseStatics2 const& f) { + return f.SystemBackdropProperty(); + }); + } + inline FlyoutShowOptions::FlyoutShowOptions() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFlyoutShowOptionsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto GeneratorPositionHelper::FromIndexAndOffset(int32_t index, + int32_t offset) { + return impl::call_factory( + [&](IGeneratorPositionHelperStatics const& f) { + return f.FromIndexAndOffset(index, offset); + }); + } + inline GridViewItemPresenter::GridViewItemPresenter() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGridViewItemPresenterFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto GridViewItemPresenter::SelectionCheckMarkVisualEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.SelectionCheckMarkVisualEnabledProperty(); + }); + } + inline auto GridViewItemPresenter::CheckHintBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.CheckHintBrushProperty(); + }); + } + inline auto GridViewItemPresenter::CheckSelectingBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.CheckSelectingBrushProperty(); + }); + } + inline auto GridViewItemPresenter::CheckBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.CheckBrushProperty(); + }); + } + inline auto GridViewItemPresenter::DragBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.DragBackgroundProperty(); + }); + } + inline auto GridViewItemPresenter::DragForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.DragForegroundProperty(); + }); + } + inline auto GridViewItemPresenter::FocusBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.FocusBorderBrushProperty(); + }); + } + inline auto GridViewItemPresenter::PlaceholderBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.PlaceholderBackgroundProperty(); + }); + } + inline auto GridViewItemPresenter::PointerOverBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.PointerOverBackgroundProperty(); + }); + } + inline auto GridViewItemPresenter::SelectedBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.SelectedBackgroundProperty(); + }); + } + inline auto GridViewItemPresenter::SelectedForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.SelectedForegroundProperty(); + }); + } + inline auto GridViewItemPresenter::SelectedPointerOverBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.SelectedPointerOverBackgroundProperty(); + }); + } + inline auto GridViewItemPresenter::SelectedPointerOverBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.SelectedPointerOverBorderBrushProperty(); + }); + } + inline auto GridViewItemPresenter::SelectedBorderThicknessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.SelectedBorderThicknessProperty(); + }); + } + inline auto GridViewItemPresenter::DisabledOpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.DisabledOpacityProperty(); + }); + } + inline auto GridViewItemPresenter::DragOpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.DragOpacityProperty(); + }); + } + inline auto GridViewItemPresenter::ReorderHintOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.ReorderHintOffsetProperty(); + }); + } + inline auto GridViewItemPresenter:: + GridViewItemPresenterHorizontalContentAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.GridViewItemPresenterHorizontalContentAlignmentProperty(); + }); + } + inline auto GridViewItemPresenter:: + GridViewItemPresenterVerticalContentAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.GridViewItemPresenterVerticalContentAlignmentProperty(); + }); + } + inline auto GridViewItemPresenter::GridViewItemPresenterPaddingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.GridViewItemPresenterPaddingProperty(); + }); + } + inline auto GridViewItemPresenter::PointerOverBackgroundMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.PointerOverBackgroundMarginProperty(); + }); + } + inline auto GridViewItemPresenter::ContentMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGridViewItemPresenterStatics const&), + GridViewItemPresenter, IGridViewItemPresenterStatics>( + [](IGridViewItemPresenterStatics const& f) { + return f.ContentMarginProperty(); + }); + } + inline InfoBarPanel::InfoBarPanel() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IInfoBarPanelFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto InfoBarPanel::HorizontalOrientationPaddingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IInfoBarPanelStatics const&), + InfoBarPanel, IInfoBarPanelStatics>([](IInfoBarPanelStatics const& f) { + return f.HorizontalOrientationPaddingProperty(); + }); + } + inline auto InfoBarPanel::VerticalOrientationPaddingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IInfoBarPanelStatics const&), + InfoBarPanel, IInfoBarPanelStatics>([](IInfoBarPanelStatics const& f) { + return f.VerticalOrientationPaddingProperty(); + }); + } + inline auto InfoBarPanel::SetHorizontalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object, + winrt::Microsoft::UI::Xaml::Thickness const& value) { + impl::call_factory( + [&](IInfoBarPanelStatics const& f) { + return f.SetHorizontalOrientationMargin(object, value); + }); + } + inline auto InfoBarPanel::GetHorizontalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object) { + return impl::call_factory( + [&](IInfoBarPanelStatics const& f) { + return f.GetHorizontalOrientationMargin(object); + }); + } + inline auto InfoBarPanel::HorizontalOrientationMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IInfoBarPanelStatics const&), + InfoBarPanel, IInfoBarPanelStatics>([](IInfoBarPanelStatics const& f) { + return f.HorizontalOrientationMarginProperty(); + }); + } + inline auto InfoBarPanel::SetVerticalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object, + winrt::Microsoft::UI::Xaml::Thickness const& value) { + impl::call_factory( + [&](IInfoBarPanelStatics const& f) { + return f.SetVerticalOrientationMargin(object, value); + }); + } + inline auto InfoBarPanel::GetVerticalOrientationMargin( + winrt::Microsoft::UI::Xaml::DependencyObject const& object) { + return impl::call_factory( + [&](IInfoBarPanelStatics const& f) { + return f.GetVerticalOrientationMargin(object); + }); + } + inline auto InfoBarPanel::VerticalOrientationMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IInfoBarPanelStatics const&), + InfoBarPanel, IInfoBarPanelStatics>([](IInfoBarPanelStatics const& f) { + return f.VerticalOrientationMarginProperty(); + }); + } + inline JumpListItemBackgroundConverter::JumpListItemBackgroundConverter() + : JumpListItemBackgroundConverter( + impl::call_factory_cast< + JumpListItemBackgroundConverter (*)( + winrt::Windows::Foundation::IActivationFactory const&), + JumpListItemBackgroundConverter>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + JumpListItemBackgroundConverter>(); + })) {} + inline auto JumpListItemBackgroundConverter::EnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IJumpListItemBackgroundConverterStatics const&), + JumpListItemBackgroundConverter, + IJumpListItemBackgroundConverterStatics>( + [](IJumpListItemBackgroundConverterStatics const& f) { + return f.EnabledProperty(); + }); + } + inline auto JumpListItemBackgroundConverter::DisabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IJumpListItemBackgroundConverterStatics const&), + JumpListItemBackgroundConverter, + IJumpListItemBackgroundConverterStatics>( + [](IJumpListItemBackgroundConverterStatics const& f) { + return f.DisabledProperty(); + }); + } + inline JumpListItemForegroundConverter::JumpListItemForegroundConverter() + : JumpListItemForegroundConverter( + impl::call_factory_cast< + JumpListItemForegroundConverter (*)( + winrt::Windows::Foundation::IActivationFactory const&), + JumpListItemForegroundConverter>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + JumpListItemForegroundConverter>(); + })) {} + inline auto JumpListItemForegroundConverter::EnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IJumpListItemForegroundConverterStatics const&), + JumpListItemForegroundConverter, + IJumpListItemForegroundConverterStatics>( + [](IJumpListItemForegroundConverterStatics const& f) { + return f.EnabledProperty(); + }); + } + inline auto JumpListItemForegroundConverter::DisabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IJumpListItemForegroundConverterStatics const&), + JumpListItemForegroundConverter, + IJumpListItemForegroundConverterStatics>( + [](IJumpListItemForegroundConverterStatics const& f) { + return f.DisabledProperty(); + }); + } + inline auto LayoutInformation::GetLayoutExceptionElement( + winrt::Windows::Foundation::IInspectable const& dispatcher) { + return impl::call_factory( + [&](ILayoutInformationStatics const& f) { + return f.GetLayoutExceptionElement(dispatcher); + }); + } + inline auto LayoutInformation::GetLayoutSlot( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element) { + return impl::call_factory( + [&](ILayoutInformationStatics const& f) { + return f.GetLayoutSlot(element); + }); + } + inline auto LayoutInformation::GetAvailableSize( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](ILayoutInformationStatics const& f) { + return f.GetAvailableSize(element); + }); + } + inline ListViewItemPresenter::ListViewItemPresenter() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IListViewItemPresenterFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ListViewItemPresenter::SelectionCheckMarkVisualEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionCheckMarkVisualEnabledProperty(); + }); + } + inline auto ListViewItemPresenter::CheckHintBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckHintBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckSelectingBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckSelectingBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBrushProperty(); + }); + } + inline auto ListViewItemPresenter::DragBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.DragBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::DragForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.DragForegroundProperty(); + }); + } + inline auto ListViewItemPresenter::FocusBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.FocusBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::PlaceholderBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.PlaceholderBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::PointerOverBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.PointerOverBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedForegroundProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedPointerOverBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedPointerOverBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedPointerOverBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedPointerOverBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedBorderThicknessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedBorderThicknessProperty(); + }); + } + inline auto ListViewItemPresenter::DisabledOpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.DisabledOpacityProperty(); + }); + } + inline auto ListViewItemPresenter::DragOpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.DragOpacityProperty(); + }); + } + inline auto ListViewItemPresenter::ReorderHintOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.ReorderHintOffsetProperty(); + }); + } + inline auto ListViewItemPresenter:: + ListViewItemPresenterHorizontalContentAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.ListViewItemPresenterHorizontalContentAlignmentProperty(); + }); + } + inline auto ListViewItemPresenter:: + ListViewItemPresenterVerticalContentAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.ListViewItemPresenterVerticalContentAlignmentProperty(); + }); + } + inline auto ListViewItemPresenter::ListViewItemPresenterPaddingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.ListViewItemPresenterPaddingProperty(); + }); + } + inline auto ListViewItemPresenter::PointerOverBackgroundMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.PointerOverBackgroundMarginProperty(); + }); + } + inline auto ListViewItemPresenter::ContentMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.ContentMarginProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedPressedBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedPressedBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::PressedBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.PressedBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxBrushProperty(); + }); + } + inline auto ListViewItemPresenter::FocusSecondaryBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.FocusSecondaryBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckModeProperty(); + }); + } + inline auto ListViewItemPresenter::PointerOverForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.PointerOverForegroundProperty(); + }); + } + inline auto ListViewItemPresenter::RevealBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.RevealBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::RevealBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.RevealBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::RevealBorderThicknessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.RevealBorderThicknessProperty(); + }); + } + inline auto + ListViewItemPresenter::RevealBackgroundShowsAboveContentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.RevealBackgroundShowsAboveContentProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedDisabledBackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedDisabledBackgroundProperty(); + }); + } + inline auto ListViewItemPresenter::CheckPressedBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckPressedBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckDisabledBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckDisabledBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxPointerOverBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxPointerOverBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxPressedBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxPressedBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxDisabledBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxDisabledBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxSelectedBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxSelectedBrushProperty(); + }); + } + inline auto + ListViewItemPresenter::CheckBoxSelectedPointerOverBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxSelectedPointerOverBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxSelectedPressedBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxSelectedPressedBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxSelectedDisabledBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxSelectedDisabledBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxPointerOverBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxPointerOverBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxPressedBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxPressedBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxDisabledBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxDisabledBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::CheckBoxCornerRadiusProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.CheckBoxCornerRadiusProperty(); + }); + } + inline auto ListViewItemPresenter::SelectionIndicatorCornerRadiusProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorCornerRadiusProperty(); + }); + } + inline auto ListViewItemPresenter::SelectionIndicatorVisualEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorVisualEnabledProperty(); + }); + } + inline auto ListViewItemPresenter::SelectionIndicatorModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorModeProperty(); + }); + } + inline auto ListViewItemPresenter::SelectionIndicatorBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorBrushProperty(); + }); + } + inline auto + ListViewItemPresenter::SelectionIndicatorPointerOverBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorPointerOverBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectionIndicatorPressedBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorPressedBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectionIndicatorDisabledBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectionIndicatorDisabledBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedPressedBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedPressedBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedDisabledBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedDisabledBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::SelectedInnerBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.SelectedInnerBorderBrushProperty(); + }); + } + inline auto ListViewItemPresenter::PointerOverBorderBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IListViewItemPresenterStatics const&), + ListViewItemPresenter, IListViewItemPresenterStatics>( + [](IListViewItemPresenterStatics const& f) { + return f.PointerOverBorderBrushProperty(); + }); + } + inline auto LoopingSelector::ShouldLoopProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { + return f.ShouldLoopProperty(); + }); + } + inline auto LoopingSelector::ItemsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { return f.ItemsProperty(); }); + } + inline auto LoopingSelector::SelectedIndexProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { + return f.SelectedIndexProperty(); + }); + } + inline auto LoopingSelector::SelectedItemProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { + return f.SelectedItemProperty(); + }); + } + inline auto LoopingSelector::ItemWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { return f.ItemWidthProperty(); }); + } + inline auto LoopingSelector::ItemHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { + return f.ItemHeightProperty(); + }); + } + inline auto LoopingSelector::ItemTemplateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILoopingSelectorStatics const&), + LoopingSelector, ILoopingSelectorStatics>( + [](ILoopingSelectorStatics const& f) { + return f.ItemTemplateProperty(); + }); + } + inline MonochromaticOverlayPresenter::MonochromaticOverlayPresenter() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMonochromaticOverlayPresenterFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto MonochromaticOverlayPresenter::SourceElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IMonochromaticOverlayPresenterStatics const&), + MonochromaticOverlayPresenter, IMonochromaticOverlayPresenterStatics>( + [](IMonochromaticOverlayPresenterStatics const& f) { + return f.SourceElementProperty(); + }); + } + inline auto MonochromaticOverlayPresenter::ReplacementColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IMonochromaticOverlayPresenterStatics const&), + MonochromaticOverlayPresenter, IMonochromaticOverlayPresenterStatics>( + [](IMonochromaticOverlayPresenterStatics const& f) { + return f.ReplacementColorProperty(); + }); + } + inline NavigationViewItemPresenter::NavigationViewItemPresenter() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](INavigationViewItemPresenterFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto NavigationViewItemPresenter::IconProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + INavigationViewItemPresenterStatics const&), + NavigationViewItemPresenter, INavigationViewItemPresenterStatics>( + [](INavigationViewItemPresenterStatics const& f) { + return f.IconProperty(); + }); + } + inline auto NavigationViewItemPresenter::TemplateSettingsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + INavigationViewItemPresenterStatics const&), + NavigationViewItemPresenter, INavigationViewItemPresenterStatics>( + [](INavigationViewItemPresenterStatics const& f) { + return f.TemplateSettingsProperty(); + }); + } + inline auto NavigationViewItemPresenter::InfoBadgeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + INavigationViewItemPresenterStatics2 const&), + NavigationViewItemPresenter, INavigationViewItemPresenterStatics2>( + [](INavigationViewItemPresenterStatics2 const& f) { + return f.InfoBadgeProperty(); + }); + } + inline NavigationViewItemPresenterTemplateSettings:: + NavigationViewItemPresenterTemplateSettings() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](INavigationViewItemPresenterTemplateSettingsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto NavigationViewItemPresenterTemplateSettings::IconWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + INavigationViewItemPresenterTemplateSettingsStatics const&), + NavigationViewItemPresenterTemplateSettings, + INavigationViewItemPresenterTemplateSettingsStatics>( + [](INavigationViewItemPresenterTemplateSettingsStatics const& f) { + return f.IconWidthProperty(); + }); + } + inline auto + NavigationViewItemPresenterTemplateSettings::SmallerIconWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + INavigationViewItemPresenterTemplateSettingsStatics const&), + NavigationViewItemPresenterTemplateSettings, + INavigationViewItemPresenterTemplateSettingsStatics>( + [](INavigationViewItemPresenterTemplateSettingsStatics const& f) { + return f.SmallerIconWidthProperty(); + }); + } + inline auto PickerFlyoutBase::TitleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPickerFlyoutBaseStatics const&), + PickerFlyoutBase, IPickerFlyoutBaseStatics>( + [](IPickerFlyoutBaseStatics const& f) { return f.TitleProperty(); }); + } + inline auto PickerFlyoutBase::GetTitle( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IPickerFlyoutBaseStatics const& f) { return f.GetTitle(element); }); + } + inline auto PickerFlyoutBase::SetTitle( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + param::hstring const& value) { + impl::call_factory( + [&](IPickerFlyoutBaseStatics const& f) { + return f.SetTitle(element, value); + }); + } + inline PivotHeaderItem::PivotHeaderItem() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPivotHeaderItemFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline PivotHeaderPanel::PivotHeaderPanel() + : PivotHeaderPanel( + impl::call_factory_cast< + PivotHeaderPanel (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PivotHeaderPanel>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PivotPanel::PivotPanel() + : PivotPanel(impl::call_factory_cast< + PivotPanel (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PivotPanel>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline Popup::Popup() + : Popup(impl::call_factory_cast< + Popup (*)(winrt::Windows::Foundation::IActivationFactory const&), + Popup>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Popup::ChildProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>( + [](IPopupStatics const& f) { return f.ChildProperty(); }); + } + inline auto Popup::IsOpenProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>( + [](IPopupStatics const& f) { return f.IsOpenProperty(); }); + } + inline auto Popup::HorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>( + [](IPopupStatics const& f) { return f.HorizontalOffsetProperty(); }); + } + inline auto Popup::VerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>( + [](IPopupStatics const& f) { return f.VerticalOffsetProperty(); }); + } + inline auto Popup::ChildTransitionsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>( + [](IPopupStatics const& f) { return f.ChildTransitionsProperty(); }); + } + inline auto Popup::IsLightDismissEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>([](IPopupStatics const& f) { + return f.IsLightDismissEnabledProperty(); + }); + } + inline auto Popup::LightDismissOverlayModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>([](IPopupStatics const& f) { + return f.LightDismissOverlayModeProperty(); + }); + } + inline auto Popup::ShouldConstrainToRootBoundsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics const&), + Popup, IPopupStatics>([](IPopupStatics const& f) { + return f.ShouldConstrainToRootBoundsProperty(); + }); + } + inline auto Popup::PlacementTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics2 const&), + Popup, IPopupStatics2>( + [](IPopupStatics2 const& f) { return f.PlacementTargetProperty(); }); + } + inline auto Popup::DesiredPlacementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics2 const&), + Popup, IPopupStatics2>( + [](IPopupStatics2 const& f) { return f.DesiredPlacementProperty(); }); + } + inline auto Popup::SystemBackdropProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupStatics3 const&), + Popup, IPopupStatics3>( + [](IPopupStatics3 const& f) { return f.SystemBackdropProperty(); }); + } + inline auto RangeBase::MinimumProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRangeBaseStatics const&), + RangeBase, IRangeBaseStatics>( + [](IRangeBaseStatics const& f) { return f.MinimumProperty(); }); + } + inline auto RangeBase::MaximumProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRangeBaseStatics const&), + RangeBase, IRangeBaseStatics>( + [](IRangeBaseStatics const& f) { return f.MaximumProperty(); }); + } + inline auto RangeBase::SmallChangeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRangeBaseStatics const&), + RangeBase, IRangeBaseStatics>( + [](IRangeBaseStatics const& f) { return f.SmallChangeProperty(); }); + } + inline auto RangeBase::LargeChangeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRangeBaseStatics const&), + RangeBase, IRangeBaseStatics>( + [](IRangeBaseStatics const& f) { return f.LargeChangeProperty(); }); + } + inline auto RangeBase::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRangeBaseStatics const&), + RangeBase, IRangeBaseStatics>( + [](IRangeBaseStatics const& f) { return f.ValueProperty(); }); + } + inline RepeatButton::RepeatButton() + : RepeatButton(impl::call_factory_cast< + RepeatButton (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RepeatButton>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto RepeatButton::DelayProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRepeatButtonStatics const&), + RepeatButton, IRepeatButtonStatics>( + [](IRepeatButtonStatics const& f) { return f.DelayProperty(); }); + } + inline auto RepeatButton::IntervalProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRepeatButtonStatics const&), + RepeatButton, IRepeatButtonStatics>( + [](IRepeatButtonStatics const& f) { return f.IntervalProperty(); }); + } + inline RepeatedScrollSnapPoint::RepeatedScrollSnapPoint( + double offset, double interval, double start, double end, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointsAlignment const& alignment) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRepeatedScrollSnapPointFactory const& f) { + return f.CreateInstance(offset, interval, start, end, alignment, + baseInterface, innerInterface); + }); + } + inline RepeatedZoomSnapPoint::RepeatedZoomSnapPoint( + double offset, double interval, double start, double end) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRepeatedZoomSnapPointFactory const& f) { + return f.CreateInstance(offset, interval, start, end, baseInterface, + innerInterface); + }); + } + inline ScrollBar::ScrollBar() + : ScrollBar(impl::call_factory_cast< + ScrollBar (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ScrollBar>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ScrollBar::OrientationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollBarStatics const&), + ScrollBar, IScrollBarStatics>( + [](IScrollBarStatics const& f) { return f.OrientationProperty(); }); + } + inline auto ScrollBar::ViewportSizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollBarStatics const&), + ScrollBar, IScrollBarStatics>( + [](IScrollBarStatics const& f) { return f.ViewportSizeProperty(); }); + } + inline auto ScrollBar::IndicatorModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollBarStatics const&), + ScrollBar, IScrollBarStatics>( + [](IScrollBarStatics const& f) { return f.IndicatorModeProperty(); }); + } + inline ScrollControllerAddScrollVelocityRequestedEventArgs:: + ScrollControllerAddScrollVelocityRequestedEventArgs( + float offsetVelocity, + winrt::Windows::Foundation::IReference const& inertiaDecayRate) + : ScrollControllerAddScrollVelocityRequestedEventArgs( + impl::call_factory< + ScrollControllerAddScrollVelocityRequestedEventArgs, + IScrollControllerAddScrollVelocityRequestedEventArgsFactory>( + [&](IScrollControllerAddScrollVelocityRequestedEventArgsFactory const& + f) { + return f.CreateInstance(offsetVelocity, inertiaDecayRate); + })) {} + inline ScrollControllerPanRequestedEventArgs:: + ScrollControllerPanRequestedEventArgs( + winrt::Microsoft::UI::Input::PointerPoint const& pointerPoint) + : ScrollControllerPanRequestedEventArgs( + impl::call_factory( + [&](IScrollControllerPanRequestedEventArgsFactory const& f) { + return f.CreateInstance(pointerPoint); + })) {} + inline ScrollControllerScrollByRequestedEventArgs:: + ScrollControllerScrollByRequestedEventArgs( + double offsetDelta, + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions const& + options) + : ScrollControllerScrollByRequestedEventArgs( + impl::call_factory< + ScrollControllerScrollByRequestedEventArgs, + IScrollControllerScrollByRequestedEventArgsFactory>( + [&](IScrollControllerScrollByRequestedEventArgsFactory const& + f) { + return f.CreateInstance(offsetDelta, options); + })) {} + inline ScrollControllerScrollToRequestedEventArgs:: + ScrollControllerScrollToRequestedEventArgs( + double offset, + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions const& + options) + : ScrollControllerScrollToRequestedEventArgs( + impl::call_factory< + ScrollControllerScrollToRequestedEventArgs, + IScrollControllerScrollToRequestedEventArgsFactory>( + [&](IScrollControllerScrollToRequestedEventArgsFactory const& + f) { return f.CreateInstance(offset, options); })) {} + inline ScrollEventArgs::ScrollEventArgs() + : ScrollEventArgs( + impl::call_factory_cast< + ScrollEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ScrollEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ScrollPresenter::ScrollPresenter() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IScrollPresenterFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ScrollPresenter::BackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.BackgroundProperty(); + }); + } + inline auto ScrollPresenter::ContentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { return f.ContentProperty(); }); + } + inline auto ScrollPresenter::ContentOrientationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.ContentOrientationProperty(); + }); + } + inline auto ScrollPresenter::HorizontalScrollChainModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.HorizontalScrollChainModeProperty(); + }); + } + inline auto ScrollPresenter::VerticalScrollChainModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.VerticalScrollChainModeProperty(); + }); + } + inline auto ScrollPresenter::HorizontalScrollRailModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.HorizontalScrollRailModeProperty(); + }); + } + inline auto ScrollPresenter::VerticalScrollRailModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.VerticalScrollRailModeProperty(); + }); + } + inline auto ScrollPresenter::HorizontalScrollModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.HorizontalScrollModeProperty(); + }); + } + inline auto ScrollPresenter::VerticalScrollModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.VerticalScrollModeProperty(); + }); + } + inline auto ScrollPresenter::ComputedHorizontalScrollModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.ComputedHorizontalScrollModeProperty(); + }); + } + inline auto ScrollPresenter::ComputedVerticalScrollModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.ComputedVerticalScrollModeProperty(); + }); + } + inline auto ScrollPresenter::ZoomChainModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.ZoomChainModeProperty(); + }); + } + inline auto ScrollPresenter::ZoomModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { return f.ZoomModeProperty(); }); + } + inline auto ScrollPresenter::IgnoredInputKindsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.IgnoredInputKindsProperty(); + }); + } + inline auto ScrollPresenter::MinZoomFactorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.MinZoomFactorProperty(); + }); + } + inline auto ScrollPresenter::MaxZoomFactorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.MaxZoomFactorProperty(); + }); + } + inline auto ScrollPresenter::HorizontalAnchorRatioProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.HorizontalAnchorRatioProperty(); + }); + } + inline auto ScrollPresenter::VerticalAnchorRatioProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScrollPresenterStatics const&), + ScrollPresenter, IScrollPresenterStatics>( + [](IScrollPresenterStatics const& f) { + return f.VerticalAnchorRatioProperty(); + }); + } + inline ScrollSnapPoint::ScrollSnapPoint( + double snapPointValue, winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointsAlignment const& alignment) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IScrollSnapPointFactory const& f) { + return f.CreateInstance(snapPointValue, alignment, baseInterface, + innerInterface); + }); + } + inline auto Selector::SelectedIndexProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISelectorStatics const&), + Selector, ISelectorStatics>( + [](ISelectorStatics const& f) { return f.SelectedIndexProperty(); }); + } + inline auto Selector::SelectedItemProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISelectorStatics const&), + Selector, ISelectorStatics>( + [](ISelectorStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto Selector::SelectedValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISelectorStatics const&), + Selector, ISelectorStatics>( + [](ISelectorStatics const& f) { return f.SelectedValueProperty(); }); + } + inline auto Selector::SelectedValuePathProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISelectorStatics const&), + Selector, ISelectorStatics>([](ISelectorStatics const& f) { + return f.SelectedValuePathProperty(); + }); + } + inline auto Selector::IsSynchronizedWithCurrentItemProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISelectorStatics const&), + Selector, ISelectorStatics>([](ISelectorStatics const& f) { + return f.IsSynchronizedWithCurrentItemProperty(); + }); + } + inline auto Selector::GetIsSelectionActive( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ISelectorStatics const& f) { + return f.GetIsSelectionActive(element); + }); + } + inline auto SelectorItem::IsSelectedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISelectorItemStatics const&), + SelectorItem, ISelectorItemStatics>( + [](ISelectorItemStatics const& f) { return f.IsSelectedProperty(); }); + } + inline TabViewListView::TabViewListView() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITabViewListViewFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline Thumb::Thumb() + : Thumb(impl::call_factory_cast< + Thumb (*)(winrt::Windows::Foundation::IActivationFactory const&), + Thumb>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Thumb::IsDraggingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IThumbStatics const&), + Thumb, IThumbStatics>( + [](IThumbStatics const& f) { return f.IsDraggingProperty(); }); + } + inline TickBar::TickBar() + : TickBar(impl::call_factory_cast< + TickBar (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TickBar>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto TickBar::FillProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITickBarStatics const&), + TickBar, ITickBarStatics>( + [](ITickBarStatics const& f) { return f.FillProperty(); }); + } + inline ToggleButton::ToggleButton() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IToggleButtonFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ToggleButton::IsCheckedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IToggleButtonStatics const&), + ToggleButton, IToggleButtonStatics>( + [](IToggleButtonStatics const& f) { return f.IsCheckedProperty(); }); + } + inline auto ToggleButton::IsThreeStateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IToggleButtonStatics const&), + ToggleButton, IToggleButtonStatics>( + [](IToggleButtonStatics const& f) { return f.IsThreeStateProperty(); }); + } + inline ZoomSnapPoint::ZoomSnapPoint(double snapPointValue) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IZoomSnapPointFactory const& f) { + return f.CreateInstance(snapPointValue, baseInterface, + innerInterface); + }); + } + template + DragCompletedEventHandler::DragCompletedEventHandler(L handler) + : DragCompletedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + DragCompletedEventHandler::DragCompletedEventHandler(F * handler) + : DragCompletedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + DragCompletedEventHandler::DragCompletedEventHandler(O * object, M method) + : DragCompletedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + DragCompletedEventHandler::DragCompletedEventHandler(com_ptr && object, + M method) + : DragCompletedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DragCompletedEventHandler::DragCompletedEventHandler(weak_ref && object, + LM && lambda_or_method) + : DragCompletedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + DragCompletedEventHandler::DragCompletedEventHandler( + std::shared_ptr && object, M method) + : DragCompletedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DragCompletedEventHandler::DragCompletedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : DragCompletedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto DragCompletedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragCompletedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + DragDeltaEventHandler::DragDeltaEventHandler(L handler) + : DragDeltaEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + DragDeltaEventHandler::DragDeltaEventHandler(F * handler) + : DragDeltaEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + DragDeltaEventHandler::DragDeltaEventHandler(O * object, M method) + : DragDeltaEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + DragDeltaEventHandler::DragDeltaEventHandler(com_ptr && object, M method) + : DragDeltaEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DragDeltaEventHandler::DragDeltaEventHandler(weak_ref && object, + LM && lambda_or_method) + : DragDeltaEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + DragDeltaEventHandler::DragDeltaEventHandler(std::shared_ptr && object, + M method) + : DragDeltaEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DragDeltaEventHandler::DragDeltaEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : DragDeltaEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto DragDeltaEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragDeltaEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + DragStartedEventHandler::DragStartedEventHandler(L handler) + : DragStartedEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + DragStartedEventHandler::DragStartedEventHandler(F * handler) + : DragStartedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + DragStartedEventHandler::DragStartedEventHandler(O * object, M method) + : DragStartedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + DragStartedEventHandler::DragStartedEventHandler(com_ptr && object, + M method) + : DragStartedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DragStartedEventHandler::DragStartedEventHandler(weak_ref && object, + LM && lambda_or_method) + : DragStartedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + DragStartedEventHandler::DragStartedEventHandler(std::shared_ptr && object, + M method) + : DragStartedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DragStartedEventHandler::DragStartedEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : DragStartedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto DragStartedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + DragStartedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ItemsChangedEventHandler::ItemsChangedEventHandler(L handler) + : ItemsChangedEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + ItemsChangedEventHandler::ItemsChangedEventHandler(F * handler) + : ItemsChangedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + ItemsChangedEventHandler::ItemsChangedEventHandler(O * object, M method) + : ItemsChangedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ItemsChangedEventHandler::ItemsChangedEventHandler(com_ptr && object, + M method) + : ItemsChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ItemsChangedEventHandler::ItemsChangedEventHandler(weak_ref && object, + LM && lambda_or_method) + : ItemsChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ItemsChangedEventHandler::ItemsChangedEventHandler( + std::shared_ptr && object, M method) + : ItemsChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ItemsChangedEventHandler::ItemsChangedEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : ItemsChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ItemsChangedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ItemsChangedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler( + L handler) + : RangeBaseValueChangedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(F * + handler) + : RangeBaseValueChangedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler( + O * object, M method) + : RangeBaseValueChangedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler( + com_ptr && object, M method) + : RangeBaseValueChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler( + weak_ref && object, LM && lambda_or_method) + : RangeBaseValueChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler( + std::shared_ptr && object, M method) + : RangeBaseValueChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : RangeBaseValueChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto RangeBaseValueChangedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + RangeBaseValueChangedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ScrollEventHandler::ScrollEventHandler(L handler) + : ScrollEventHandler( + impl::make_delegate(std::forward(handler))) { + } + template + ScrollEventHandler::ScrollEventHandler(F * handler) + : ScrollEventHandler([=](auto&&... args) { return handler(args...); }) {} + template + ScrollEventHandler::ScrollEventHandler(O * object, M method) + : ScrollEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ScrollEventHandler::ScrollEventHandler(com_ptr && object, M method) + : ScrollEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ScrollEventHandler::ScrollEventHandler(weak_ref && object, + LM && lambda_or_method) + : ScrollEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ScrollEventHandler::ScrollEventHandler(std::shared_ptr && object, M method) + : ScrollEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ScrollEventHandler::ScrollEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : ScrollEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ScrollEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollEventArgs const& + e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + auto IFlyoutBaseOverridesT::CreatePresenter() const { + return shim().template try_as().CreatePresenter(); + } + template + auto IFlyoutBaseOverridesT::OnProcessKeyboardAccelerators( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) const { + return shim() + .template try_as() + .OnProcessKeyboardAccelerators(args); + } + template + auto IPickerFlyoutBaseOverridesT::OnConfirmed() const { + return shim().template try_as().OnConfirmed(); + } + template + auto IPickerFlyoutBaseOverridesT::ShouldShowConfirmationButtons() const { + return shim() + .template try_as() + .ShouldShowConfirmationButtons(); + } + template + auto IRangeBaseOverridesT::OnMinimumChanged(double oldMinimum, + double newMinimum) const { + return shim().template try_as().OnMinimumChanged( + oldMinimum, newMinimum); + } + template + auto IRangeBaseOverridesT::OnMaximumChanged(double oldMaximum, + double newMaximum) const { + return shim().template try_as().OnMaximumChanged( + oldMaximum, newMaximum); + } + template + auto IRangeBaseOverridesT::OnValueChanged(double oldValue, double newValue) + const { + return shim().template try_as().OnValueChanged( + oldValue, newValue); + } + template + auto IToggleButtonOverridesT::OnToggle() const { + return shim().template try_as().OnToggle(); + } + template + struct ButtonBaseT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides, + winrt::Microsoft::UI::Xaml::Controls::IControlOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + winrt::Microsoft::UI::Xaml::Controls::IContentControl, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = ButtonBase; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ButtonBaseT() { + impl::call_factory( + [&](IButtonBaseFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct CarouselPanelT + : implements< + D, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanelOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanel, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollSnapPointsInfo, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanel, + winrt::Microsoft::UI::Xaml::Controls::IPanel, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanelProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanelOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = CarouselPanel; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanelProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanelProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IVirtualizingPanelOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + CarouselPanelT() { + impl::call_factory( + [&](ICarouselPanelFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ColorPickerSliderT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColorPickerSlider, + winrt::Microsoft::UI::Xaml::Controls::ISlider, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverridesT< + D>, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = ColorPickerSlider; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ColorPickerSliderT() { + impl::call_factory( + [&](IColorPickerSliderFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ColorSpectrumT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrum, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = ColorSpectrum; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ColorSpectrumT() { + impl::call_factory( + [&](IColorSpectrumFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ColumnMajorUniformToLargestGridLayoutT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IColumnMajorUniformToLargestGridLayout, + winrt::Microsoft::UI::Xaml::Controls::INonVirtualizingLayout, + winrt::Microsoft::UI::Xaml::Controls::ILayout, + winrt::Microsoft::UI::Xaml::Controls::ILayout2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::ILayoutProtected, + winrt::Microsoft::UI::Xaml::Controls::ILayoutProtected2>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::INonVirtualizingLayoutOverridesT< + D>, + winrt::Microsoft::UI::Xaml::Controls::ILayoutOverridesT { + using composable = ColumnMajorUniformToLargestGridLayout; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Controls::INonVirtualizingLayoutOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::ILayoutProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::ILayoutProtected>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::ILayoutProtected2>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::ILayoutProtected2>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::ILayoutOverrides>; + + protected: + ColumnMajorUniformToLargestGridLayoutT() { + impl::call_factory( + [&](IColumnMajorUniformToLargestGridLayoutFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct CommandBarFlyoutCommandBarT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IAppBarOverrides, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides, + winrt::Microsoft::UI::Xaml::Controls::IControlOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IAppBarOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = CommandBarFlyoutCommandBar; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IAppBarOverrides>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + CommandBarFlyoutCommandBarT() { + impl::call_factory( + [&](ICommandBarFlyoutCommandBarFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct DragCompletedEventArgsT + : implements, + impl::require, + impl::base { + using composable = DragCompletedEventArgs; + + protected: + DragCompletedEventArgsT(double horizontalChange, double verticalChange, + bool canceled) { + impl::call_factory( + [&](IDragCompletedEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled( + horizontalChange, verticalChange, canceled, *this, + this->m_inner); + }); + } + }; + template + struct DragDeltaEventArgsT + : implements, + impl::require, + impl::base { + using composable = DragDeltaEventArgs; + + protected: + DragDeltaEventArgsT(double horizontalChange, double verticalChange) { + impl::call_factory( + [&](IDragDeltaEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithHorizontalChangeAndVerticalChange( + horizontalChange, verticalChange, *this, this->m_inner); + }); + } + }; + template + struct DragStartedEventArgsT + : implements, + impl::require, + impl::base { + using composable = DragStartedEventArgs; + + protected: + DragStartedEventArgsT(double horizontalOffset, double verticalOffset) { + impl::call_factory( + [&](IDragStartedEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithHorizontalOffsetAndVerticalOffset( + horizontalOffset, verticalOffset, *this, this->m_inner); + }); + } + }; + template + struct FlyoutBaseT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT< + D> { + using composable = FlyoutBase; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides>; + + protected: + FlyoutBaseT() { + impl::call_factory( + [&](IFlyoutBaseFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct FlyoutShowOptionsT + : implements, + impl::require, + impl::base { + using composable = FlyoutShowOptions; + + protected: + FlyoutShowOptionsT() { + impl::call_factory( + [&](IFlyoutShowOptionsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct GridViewItemPresenterT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = GridViewItemPresenter; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + GridViewItemPresenterT() { + impl::call_factory( + [&](IGridViewItemPresenterFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct InfoBarPanelT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanel, + winrt::Microsoft::UI::Xaml::Controls::IPanel, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = InfoBarPanel; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + InfoBarPanelT() { + impl::call_factory( + [&](IInfoBarPanelFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ListViewItemPresenterT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = ListViewItemPresenter; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ListViewItemPresenterT() { + impl::call_factory( + [&](IListViewItemPresenterFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct MonochromaticOverlayPresenterT + : implements, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = MonochromaticOverlayPresenter; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + MonochromaticOverlayPresenterT() { + impl::call_factory( + [&](IMonochromaticOverlayPresenterFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct NavigationViewItemPresenterT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides, + winrt::Microsoft::UI::Xaml::Controls::IControlOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = NavigationViewItemPresenter; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + NavigationViewItemPresenterT() { + impl::call_factory( + [&](INavigationViewItemPresenterFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct NavigationViewItemPresenterTemplateSettingsT + : implements, + impl::require, + impl::base { + using composable = NavigationViewItemPresenterTemplateSettings; + + protected: + NavigationViewItemPresenterTemplateSettingsT() { + impl::call_factory( + [&](INavigationViewItemPresenterTemplateSettingsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct PickerFlyoutBaseT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBase2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IPickerFlyoutBaseOverridesT, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT< + D> { + using composable = PickerFlyoutBase; + friend impl::produce; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides>; + + protected: + PickerFlyoutBaseT() { + impl::call_factory( + [&](IPickerFlyoutBaseFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct PivotHeaderItemT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides, + winrt::Microsoft::UI::Xaml::Controls::IControlOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderItem, + winrt::Microsoft::UI::Xaml::Controls::IContentControl, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = PivotHeaderItem; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + PivotHeaderItemT() { + impl::call_factory( + [&](IPivotHeaderItemFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct RangeBaseT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBase, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverridesT< + D>, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = RangeBase; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + RangeBaseT() { + impl::call_factory( + [&](IRangeBaseFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct RepeatedScrollSnapPointT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRepeatedScrollSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBase>, + impl::base< + D, RepeatedScrollSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointBase> { + using composable = RepeatedScrollSnapPoint; + + protected: + RepeatedScrollSnapPointT(double offset, double interval, double start, + double end, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointsAlignment const& alignment) { + impl::call_factory( + [&](IRepeatedScrollSnapPointFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance( + offset, interval, start, end, alignment, *this, this->m_inner); + }); + } + }; + template + struct RepeatedZoomSnapPointT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IRepeatedZoomSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IZoomSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBase>, + impl::base< + D, RepeatedZoomSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ZoomSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointBase> { + using composable = RepeatedZoomSnapPoint; + + protected: + RepeatedZoomSnapPointT(double offset, double interval, double start, + double end) { + impl::call_factory( + [&](IRepeatedZoomSnapPointFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance( + offset, interval, start, end, *this, this->m_inner); + }); + } + }; + template + struct ScrollPresenterT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenter, + winrt::Microsoft::UI::Xaml::Controls::IScrollAnchorProvider, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = ScrollPresenter; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ScrollPresenterT() { + impl::call_factory( + [&](IScrollPresenterFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ScrollSnapPointT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IScrollSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBase>, + impl::base< + D, ScrollSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointBase> { + using composable = ScrollSnapPoint; + + protected: + ScrollSnapPointT(double snapPointValue, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ScrollSnapPointsAlignment const& alignment) { + impl::call_factory( + [&](IScrollSnapPointFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance( + snapPointValue, alignment, *this, this->m_inner); + }); + } + }; + template + struct SelectorItemT + : implements< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides, + winrt::Microsoft::UI::Xaml::Controls::IControlOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItem, + winrt::Microsoft::UI::Xaml::Controls::IContentControl, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = SelectorItem; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + SelectorItemT() { + impl::call_factory( + [&](ISelectorItemFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct TabViewListViewT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITabViewListView, + winrt::Microsoft::UI::Xaml::Controls::IListView, + winrt::Microsoft::UI::Xaml::Controls::IListViewBase, + winrt::Microsoft::UI::Xaml::Controls::ISemanticZoomInformation, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelector, + winrt::Microsoft::UI::Xaml::Controls::IItemsControl, + winrt::Microsoft::UI::Xaml::Controls::IItemContainerMapping, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = TabViewListView; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + TabViewListViewT() { + impl::call_factory( + [&](ITabViewListViewFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ToggleButtonT + : implements< + D, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleButtonOverrides, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides, + winrt::Microsoft::UI::Xaml::Controls::IControlOverrides, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, + winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing, + Interfaces...>, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButton, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBase, + winrt::Microsoft::UI::Xaml::Controls::IContentControl, + winrt::Microsoft::UI::Xaml::Controls::IControl, + winrt::Microsoft::UI::Xaml::IFrameworkElement, + winrt::Microsoft::UI::Xaml::IUIElement, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Composition::IVisualElement, + winrt::Microsoft::UI::Composition::IVisualElement2, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IToggleButtonOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = ToggleButton; + friend impl::produce; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Controls::IControlProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Controls::IControlOverrides>; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ToggleButtonT() { + impl::call_factory( + [&](IToggleButtonFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ZoomSnapPointT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + IZoomSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBase>, + impl::base< + D, ZoomSnapPoint, + winrt::Microsoft::UI::Xaml::Controls::Primitives::ZoomSnapPointBase, + winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointBase> { + using composable = ZoomSnapPoint; + + protected: + ZoomSnapPointT(double snapPointValue) { + impl::call_factory( + [&](IZoomSnapPointFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(snapPointValue, *this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IAppBarTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IAutoSuggestBoxHelper> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IButtonBaseStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ICarouselPanelFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSlider> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSliderFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorPickerSliderStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IColorSpectrumStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IComboBoxHelperStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IComboBoxTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragCompletedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragDeltaEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IDragStartedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseStatics2> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptions> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutShowOptionsFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IGeneratorPositionHelper> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IGridViewItemPresenter> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IInfoBarPanelStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IItemsChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILayoutInformation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILayoutInformationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IListViewItemPresenter> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelectorItem> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelectorPanel> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ILoopingSelectorStatics> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBaseFactory> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPickerFlyoutBaseStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IPivotHeaderItemFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverrides> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatButtonStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatedScrollSnapPoint> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRepeatedZoomSnapPoint> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenterFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollPresenterStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointBase> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollSnapPointsInfo> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItemFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISelectorItemStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ISnapPointBaseFactory> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ITabViewListViewFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonOverrides> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonStatics> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToolTipTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointBase> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointBaseFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::IZoomSnapPointFactory> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::AppBarTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::AutoSuggestBoxHelper> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ComboBoxTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragCompletedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragDeltaEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::DragStartedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPositionHelper> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::GridViewItemPresenter> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ListViewItemPresenter> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::LoopingSelectorItem> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::LoopingSelectorPanel> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::OrientedVirtualizingPanel> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::RepeatedScrollSnapPoint> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::RepeatedZoomSnapPoint> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollSnapPointBase> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::SplitViewTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Controls::Primitives::ToolTipTemplateSettings> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.h new file mode 100644 index 00000000..5c29385a --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Controls.h @@ -0,0 +1,135130 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Controls_H +#define WINRT_Microsoft_UI_Xaml_Controls_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Microsoft.UI.Text.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Data.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Documents.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Input.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Interop.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Animation.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Navigation.2.h" +#include "winrt/impl/Microsoft.Web.WebView2.Core.2.h" +#include "winrt/impl/Windows.ApplicationModel.Contacts.2.h" +#include "winrt/impl/Windows.ApplicationModel.DataTransfer.2.h" +#include "winrt/impl/Windows.Devices.Geolocation.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +#include "winrt/impl/Windows.Globalization.2.h" +#include "winrt/impl/Windows.Globalization.NumberFormatting.2.h" +#include "winrt/impl/Windows.Media.Casting.2.h" +#include "winrt/impl/Windows.Media.Playback.2.h" +#include "winrt/impl/Windows.UI.2.h" +#include "winrt/impl/Windows.UI.Text.2.h" +#include "winrt/impl/Windows.UI.Xaml.Interop.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +namespace winrt::impl +{ + template auto consume_Microsoft_UI_Xaml_Controls_IAnchorRequestedEventArgs::Anchor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Anchor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Anchor(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnchorRequestedEventArgs::Anchor(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Anchor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Anchor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnchorRequestedEventArgs::AnchorCandidates() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorCandidates(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorCandidates(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIcon::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisualSource2{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIcon::Source(winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisualSource2 const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIcon::FallbackIconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackIconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackIconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIcon::FallbackIconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackIconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackIconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIcon::MirroredWhenRightToLeft() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIcon::MirroredWhenRightToLeft(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AnimatedIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSource::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisualSource2{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSource::Source(winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisualSource2 const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSource::FallbackIconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackIconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackIconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSource::FallbackIconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackIconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackIconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSource::MirroredWhenRightToLeft() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSource::MirroredWhenRightToLeft(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AnimatedIconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSourceStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSourceStatics::FallbackIconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackIconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackIconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconSourceStatics::MirroredWhenRightToLeftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconStatics::StateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconStatics::SetState(winrt::Microsoft::UI::Xaml::DependencyObject const& object, param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetState(*(void**)(&object), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetState(*(void**)(&object), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconStatics::GetState(winrt::Microsoft::UI::Xaml::DependencyObject const& object) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetState(*(void**)(&object), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetState(*(void**)(&object), &result)); + } + return hstring{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconStatics::FallbackIconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackIconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackIconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedIconStatics::MirroredWhenRightToLeftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisual::RootVisual() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RootVisual(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RootVisual(&value)); + } + return winrt::Microsoft::UI::Composition::Visual{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisual::Size() const + { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisual::Duration() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisual2::CreateAnimations() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateAnimations()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateAnimations()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisual2::DestroyAnimations() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DestroyAnimations()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->DestroyAnimations()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Diagnostics() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Diagnostics(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Diagnostics(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Duration() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisualSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Source(winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisualSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::FallbackContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackContent(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::FallbackContent(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::AutoPlay() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoPlay(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoPlay(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::AutoPlay(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoPlay(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoPlay(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::IsAnimatedVisualLoaded() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAnimatedVisualLoaded(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAnimatedVisualLoaded(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::IsPlaying() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlaying(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlaying(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::PlaybackRate() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaybackRate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaybackRate(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::PlaybackRate(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaybackRate(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaybackRate(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::ProgressObject() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProgressObject(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProgressObject(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionObject{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Stretch() const + { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Stretch(winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Pause() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Pause()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Pause()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::PlayAsync(double fromProgress, double toProgress, bool looped) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PlayAsync(fromProgress, toProgress, looped, &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PlayAsync(fromProgress, toProgress, looped, &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Resume() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resume()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Resume()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::SetProgress(double progress) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetProgress(progress)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetProgress(progress)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer::Stop() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer2::AnimationOptimization() const + { + winrt::Microsoft::UI::Xaml::Controls::PlayerAnimationOptimization value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnimationOptimization(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnimationOptimization(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayer2::AnimationOptimization(winrt::Microsoft::UI::Xaml::Controls::PlayerAnimationOptimization const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnimationOptimization(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnimationOptimization(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AnimatedVisualPlayer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::AutoPlayProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoPlayProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoPlayProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::DiagnosticsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DiagnosticsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DiagnosticsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::DurationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DurationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DurationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::FallbackContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::IsAnimatedVisualLoadedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAnimatedVisualLoadedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAnimatedVisualLoadedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::IsPlayingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlayingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlayingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::PlaybackRateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaybackRateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaybackRateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics::StretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualPlayerStatics2::AnimationOptimizationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnimationOptimizationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnimationOptimizationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualSource::TryCreateAnimatedVisual(winrt::Microsoft::UI::Composition::Compositor const& compositor, winrt::Windows::Foundation::IInspectable& diagnostics) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryCreateAnimatedVisual(*(void**)(&compositor), impl::bind_out(diagnostics), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryCreateAnimatedVisual(*(void**)(&compositor), impl::bind_out(diagnostics), &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisual{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualSource2::Markers() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Markers(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Markers(&value)); + } + return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualSource2::SetColorProperty(param::hstring const& propertyName, winrt::Windows::UI::Color const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetColorProperty(*(void**)(&propertyName), impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetColorProperty(*(void**)(&propertyName), impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnimatedVisualSource3::TryCreateAnimatedVisual(winrt::Microsoft::UI::Composition::Compositor const& compositor, winrt::Windows::Foundation::IInspectable& diagnostics, bool createAnimations) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryCreateAnimatedVisual(*(void**)(&compositor), impl::bind_out(diagnostics), createAnimations, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryCreateAnimatedVisual(*(void**)(&compositor), impl::bind_out(diagnostics), createAnimations, &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::IAnimatedVisual2{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::ScrollController() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollController(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollController(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::Labels() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Labels(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Labels(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::Labels(param::vector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Labels(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Labels(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::LabelTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::IElementFactory{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::LabelTemplate(winrt::Microsoft::UI::Xaml::IElementFactory const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LabelTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LabelTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::DetailLabelTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DetailLabelTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DetailLabelTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::IElementFactory{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::DetailLabelTemplate(winrt::Microsoft::UI::Xaml::IElementFactory const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DetailLabelTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DetailLabelTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::SmallChange() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::SmallChange(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SmallChange(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SmallChange(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::Scrolling(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Scrolling(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Scrolling(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::Scrolling(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Scrolling(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::Scrolling(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Scrolling(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Scrolling(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::DetailLabelRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DetailLabelRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DetailLabelRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::DetailLabelRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DetailLabelRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBar::DetailLabelRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DetailLabelRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DetailLabelRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarDetailLabelRequestedEventArgs::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarDetailLabelRequestedEventArgs::Content(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarDetailLabelRequestedEventArgs::ScrollOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AnnotatedScrollBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarLabel::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarLabel::ScrollOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarLabelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& content, double scrollOffset) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&content), scrollOffset, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&content), scrollOffset, &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AnnotatedScrollBarLabel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarScrollingEventArgs::ScrollOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarScrollingEventArgs::ScrollingEventKind() const + { + winrt::Microsoft::UI::Xaml::Controls::AnnotatedScrollBarScrollingEventKind value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollingEventKind(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollingEventKind(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarScrollingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarScrollingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarStatics::LabelsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarStatics::LabelTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarStatics::DetailLabelTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DetailLabelTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DetailLabelTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAnnotatedScrollBarStatics::SmallChangeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::IsOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::IsOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::IsSticky() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSticky(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSticky(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::IsSticky(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSticky(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSticky(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::ClosedDisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::AppBarClosedDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedDisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedDisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::ClosedDisplayMode(winrt::Microsoft::UI::Xaml::Controls::AppBarClosedDisplayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedDisplayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedDisplayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::AppBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Opening(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Opening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Opening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Opening(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, Opening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Opening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Opened(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Opened(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, Opened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Opened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Closing(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Closing(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, Closing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Closing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Closed(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Closed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, Closed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBar::Closed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::Label() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Label(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Label(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::Label(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Label(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Label(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::Icon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::LabelPosition() const + { + winrt::Microsoft::UI::Xaml::Controls::CommandBarLabelPosition value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelPosition(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelPosition(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::LabelPosition(winrt::Microsoft::UI::Xaml::Controls::CommandBarLabelPosition const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LabelPosition(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LabelPosition(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::KeyboardAcceleratorTextOverride() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverride(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverride(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::KeyboardAcceleratorTextOverride(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorTextOverride(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorTextOverride(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButton::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::AppBarButtonTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBarButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::LabelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::IconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::LabelPositionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelPositionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelPositionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::KeyboardAcceleratorTextOverrideProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverrideProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverrideProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::IsCompactProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::IsInOverflowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarButtonStatics::DynamicOverflowOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarElementContainerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBarElementContainer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarElementContainerStatics::IsCompactProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarElementContainerStatics::IsInOverflowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarElementContainerStatics::DynamicOverflowOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarOverrides::OnClosed(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnClosed(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnClosed(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarOverrides::OnOpened(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnOpened(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnOpened(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarOverrides::OnClosing(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnClosing(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnClosing(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarOverrides::OnOpening(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnOpening(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnOpening(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarSeparatorFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBarSeparator{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarSeparatorStatics::IsCompactProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarSeparatorStatics::IsInOverflowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarSeparatorStatics::DynamicOverflowOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarStatics::IsOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarStatics::IsStickyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStickyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStickyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarStatics::ClosedDisplayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedDisplayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedDisplayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::Label() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Label(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Label(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::Label(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Label(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Label(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::Icon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::LabelPosition() const + { + winrt::Microsoft::UI::Xaml::Controls::CommandBarLabelPosition value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelPosition(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelPosition(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::LabelPosition(winrt::Microsoft::UI::Xaml::Controls::CommandBarLabelPosition const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LabelPosition(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LabelPosition(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::KeyboardAcceleratorTextOverride() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverride(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverride(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::KeyboardAcceleratorTextOverride(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorTextOverride(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorTextOverride(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButton::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::AppBarToggleButtonTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBarToggleButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::LabelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::IconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::LabelPositionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelPositionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelPositionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::KeyboardAcceleratorTextOverrideProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverrideProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverrideProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::IsCompactProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::IsInOverflowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInOverflowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAppBarToggleButtonStatics::DynamicOverflowOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::MaxSuggestionListHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSuggestionListHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSuggestionListHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::MaxSuggestionListHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxSuggestionListHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxSuggestionListHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::IsSuggestionListOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSuggestionListOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSuggestionListOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::IsSuggestionListOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSuggestionListOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSuggestionListOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextMemberPath() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextMemberPath(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextMemberPath(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextMemberPath(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextMemberPath(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextMemberPath(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::UpdateTextOnSelect() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UpdateTextOnSelect(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UpdateTextOnSelect(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::UpdateTextOnSelect(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UpdateTextOnSelect(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UpdateTextOnSelect(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::AutoMaximizeSuggestionArea() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoMaximizeSuggestionArea(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoMaximizeSuggestionArea(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::AutoMaximizeSuggestionArea(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoMaximizeSuggestionArea(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoMaximizeSuggestionArea(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextBoxStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextBoxStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextBoxStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextBoxStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextBoxStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextBoxStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::QueryIcon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_QueryIcon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_QueryIcon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::QueryIcon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_QueryIcon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_QueryIcon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::SuggestionChosen(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SuggestionChosen(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SuggestionChosen(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::SuggestionChosen(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SuggestionChosen(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::SuggestionChosen(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SuggestionChosen(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SuggestionChosen(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::TextChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::QuerySubmitted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_QuerySubmitted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_QuerySubmitted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::QuerySubmitted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, QuerySubmitted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBox::QuerySubmitted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_QuerySubmitted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_QuerySubmitted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxQuerySubmittedEventArgs::QueryText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_QueryText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_QueryText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxQuerySubmittedEventArgs::ChosenSuggestion() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChosenSuggestion(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChosenSuggestion(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::MaxSuggestionListHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSuggestionListHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSuggestionListHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::IsSuggestionListOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSuggestionListOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSuggestionListOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::TextMemberPathProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextMemberPathProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextMemberPathProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::UpdateTextOnSelectProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UpdateTextOnSelectProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UpdateTextOnSelectProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::AutoMaximizeSuggestionAreaProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoMaximizeSuggestionAreaProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoMaximizeSuggestionAreaProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::TextBoxStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextBoxStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextBoxStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::QueryIconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_QueryIconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_QueryIconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxSuggestionChosenEventArgs::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxTextChangedEventArgs::Reason() const + { + winrt::Microsoft::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxTextChangedEventArgs::Reason(winrt::Microsoft::UI::Xaml::Controls::AutoSuggestionBoxTextChangeReason const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Reason(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Reason(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxTextChangedEventArgs::CheckCurrent() const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CheckCurrent(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CheckCurrent(&result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IAutoSuggestBoxTextChangedEventArgsStatics::ReasonProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReasonProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReasonProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIcon::UriSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } + return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIcon::UriSource(winrt::Windows::Foundation::Uri const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIcon::ShowAsMonochrome() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowAsMonochrome(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowAsMonochrome(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIcon::ShowAsMonochrome(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowAsMonochrome(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowAsMonochrome(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::BitmapIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSource::UriSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } + return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSource::UriSource(winrt::Windows::Foundation::Uri const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSource::ShowAsMonochrome() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowAsMonochrome(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowAsMonochrome(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSource::ShowAsMonochrome(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowAsMonochrome(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowAsMonochrome(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::BitmapIconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSourceStatics::UriSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconSourceStatics::ShowAsMonochromeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowAsMonochromeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowAsMonochromeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconStatics::UriSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBitmapIconStatics::ShowAsMonochromeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowAsMonochromeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowAsMonochromeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::Background() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BackgroundSizing() const + { + winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BackgroundSizing(winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::CornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::CornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::Child() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::Child(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::ChildTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::ChildTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChildTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChildTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BackgroundTransition() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundTransition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::BrushTransition{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorder::BackgroundTransition(winrt::Microsoft::UI::Xaml::BrushTransition const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundTransition(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundTransition(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::BorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::BorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::BackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::BackgroundSizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::CornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBorderStatics::ChildTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemTemplate(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemClicked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemClicked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemClicked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemClicked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemClicked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBar::ItemClicked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemClicked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemClicked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::BreadcrumbBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBarItemClickedEventArgs::Index() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Index(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Index(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBarItemClickedEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBarItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::BreadcrumbBarItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBarStatics::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IBreadcrumbBarStatics::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IButton::Flyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Flyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Flyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IButton::Flyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Flyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Flyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Button{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IButtonStatics::FlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Date() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Date(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Date(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Date(winrt::Windows::Foundation::IReference const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Date(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Date(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsCalendarOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCalendarOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCalendarOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsCalendarOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsCalendarOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsCalendarOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DateFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DateFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DateFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DateFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarViewStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarViewStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarViewStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarViewStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarViewStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarViewStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::MinDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::MinDate(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinDate(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinDate(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::MaxDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::MaxDate(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxDate(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxDate(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsTodayHighlighted() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTodayHighlighted(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTodayHighlighted(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsTodayHighlighted(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTodayHighlighted(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTodayHighlighted(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::CalendarViewDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DisplayMode(winrt::Microsoft::UI::Xaml::Controls::CalendarViewDisplayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::FirstDayOfWeek() const + { + winrt::Windows::Globalization::DayOfWeek value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstDayOfWeek(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstDayOfWeek(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::FirstDayOfWeek(winrt::Windows::Globalization::DayOfWeek const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstDayOfWeek(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstDayOfWeek(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DayOfWeekFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayOfWeekFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayOfWeekFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DayOfWeekFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayOfWeekFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayOfWeekFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarIdentifier() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarIdentifier(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsOutOfScopeEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsOutOfScopeEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOutOfScopeEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOutOfScopeEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsGroupLabelVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::IsGroupLabelVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsGroupLabelVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsGroupLabelVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarViewDayItemChanging(winrt::Microsoft::UI::Xaml::Controls::CalendarViewDayItemChangingEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CalendarViewDayItemChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CalendarViewDayItemChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarViewDayItemChanging(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::CalendarViewDayItemChangingEventHandler const& handler) const + { + return impl::make_event_revoker(this, CalendarViewDayItemChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::CalendarViewDayItemChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CalendarViewDayItemChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CalendarViewDayItemChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DateChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DateChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DateChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::DateChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DateChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DateChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Opened(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Opened(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, Opened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Opened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Closed(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Closed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, Closed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::Closed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::SetDisplayDate(winrt::Windows::Foundation::DateTime const& date) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDisplayDate(impl::bind_in(date))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDisplayDate(impl::bind_in(date))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePicker::SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetYearDecadeDisplayDimensions(columns, rows)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetYearDecadeDisplayDimensions(columns, rows)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerDateChangedEventArgs::NewDate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewDate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewDate(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerDateChangedEventArgs::OldDate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldDate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldDate(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CalendarDatePicker{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::DateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::IsCalendarOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCalendarOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCalendarOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::DateFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::CalendarViewStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarViewStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarViewStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::MinDateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinDateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinDateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::MaxDateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxDateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxDateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::IsTodayHighlightedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTodayHighlightedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTodayHighlightedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::DisplayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::FirstDayOfWeekProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstDayOfWeekProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstDayOfWeekProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::DayOfWeekFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayOfWeekFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayOfWeekFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::CalendarIdentifierProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::IsOutOfScopeEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarDatePickerStatics::IsGroupLabelVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarIdentifier() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarIdentifier(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayOfWeekFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayOfWeekFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayOfWeekFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayOfWeekFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayOfWeekFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayOfWeekFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::IsGroupLabelVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::IsGroupLabelVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsGroupLabelVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsGroupLabelVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::CalendarViewDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DisplayMode(winrt::Microsoft::UI::Xaml::Controls::CalendarViewDisplayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstDayOfWeek() const + { + winrt::Windows::Globalization::DayOfWeek value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstDayOfWeek(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstDayOfWeek(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstDayOfWeek(winrt::Windows::Globalization::DayOfWeek const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstDayOfWeek(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstDayOfWeek(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::IsOutOfScopeEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::IsOutOfScopeEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOutOfScopeEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOutOfScopeEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::IsTodayHighlighted() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTodayHighlighted(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTodayHighlighted(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::IsTodayHighlighted(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTodayHighlighted(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTodayHighlighted(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MaxDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MaxDate(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxDate(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxDate(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MinDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MinDate(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinDate(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinDate(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::NumberOfWeeksInView() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumberOfWeeksInView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NumberOfWeeksInView(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::NumberOfWeeksInView(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NumberOfWeeksInView(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NumberOfWeeksInView(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDates() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDates(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDates(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectionMode() const + { + winrt::Microsoft::UI::Xaml::Controls::CalendarViewSelectionMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectionMode(winrt::Microsoft::UI::Xaml::Controls::CalendarViewSelectionMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::CalendarViewTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FocusBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FocusBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedHoverBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedHoverBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedHoverBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedHoverBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedHoverBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedHoverBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedPressedBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedPressedBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedPressedBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedPressedBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDisabledBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDisabledBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedDisabledBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedDisabledBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::HoverBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HoverBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HoverBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::HoverBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HoverBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HoverBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::PressedBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::PressedBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PressedBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PressedBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodaySelectedInnerBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodaySelectedInnerBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodaySelectedInnerBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodaySelectedInnerBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodaySelectedInnerBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodaySelectedInnerBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::BlackoutStrikethroughBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlackoutStrikethroughBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlackoutStrikethroughBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::BlackoutStrikethroughBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BlackoutStrikethroughBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BlackoutStrikethroughBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemBorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemBorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemBorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemBorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemBorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemBorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::BlackoutBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlackoutBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlackoutBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::BlackoutBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BlackoutBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BlackoutBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopeBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopeBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopeBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopeBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OutOfScopeBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OutOfScopeBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemHoverBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemHoverBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemHoverBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemHoverBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemHoverBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemHoverBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemPressedBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemPressedBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemPressedBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemPressedBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemPressedBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemPressedBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemDisabledBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemDisabledBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemDisabledBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemDisabledBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemDisabledBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemDisabledBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayBlackoutBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayBlackoutBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayBlackoutBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayBlackoutBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayBlackoutBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayBlackoutBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayHoverBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayHoverBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayHoverBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayHoverBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayHoverBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayHoverBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayPressedBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayPressedBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayPressedBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayPressedBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayPressedBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayPressedBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayDisabledBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayDisabledBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayDisabledBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayDisabledBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayDisabledBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayDisabledBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::PressedForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::PressedForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PressedForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PressedForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::BlackoutForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlackoutForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlackoutForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::BlackoutForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BlackoutForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BlackoutForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayBlackoutForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayBlackoutForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayBlackoutForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayBlackoutForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayBlackoutForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayBlackoutForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedHoverForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedHoverForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedHoverForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedHoverForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedHoverForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedHoverForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedPressedForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPressedForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPressedForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedPressedForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedPressedForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedPressedForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDisabledForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDisabledForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDisabledForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDisabledForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedDisabledForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedDisabledForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopeForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopeForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopeForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopeForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OutOfScopeForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OutOfScopeForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopeHoverForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopeHoverForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopeHoverForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopeHoverForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OutOfScopeHoverForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OutOfScopeHoverForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopePressedForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopePressedForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopePressedForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::OutOfScopePressedForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OutOfScopePressedForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OutOfScopePressedForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DisabledForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DisabledForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisabledForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisabledForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayItemFontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayItemFontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayItemFontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayItemFontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayItemFontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayItemFontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemFontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayItemFontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayItemFontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayFontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayFontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayFontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::TodayFontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TodayFontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TodayFontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelFontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelFontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthYearItemFontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthYearItemFontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthYearItemFontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthYearItemFontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthYearItemFontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthYearItemFontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemFontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthYearItemFontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthYearItemFontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelFontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelFontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::DayItemMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayItemMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayItemMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::MonthYearItemMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthYearItemMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthYearItemMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfMonthLabelMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfMonthLabelMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::FirstOfYearDecadeLabelMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FirstOfYearDecadeLabelMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::HorizontalDayItemAlignment() const + { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalDayItemAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalDayItemAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::HorizontalDayItemAlignment(winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalDayItemAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalDayItemAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::VerticalDayItemAlignment() const + { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalDayItemAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalDayItemAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::VerticalDayItemAlignment(winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalDayItemAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalDayItemAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::HorizontalFirstOfMonthLabelAlignment() const + { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalFirstOfMonthLabelAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalFirstOfMonthLabelAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::HorizontalFirstOfMonthLabelAlignment(winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalFirstOfMonthLabelAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalFirstOfMonthLabelAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::VerticalFirstOfMonthLabelAlignment() const + { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalFirstOfMonthLabelAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalFirstOfMonthLabelAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::VerticalFirstOfMonthLabelAlignment(winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalFirstOfMonthLabelAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalFirstOfMonthLabelAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemBorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemBorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemBorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemBorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemBorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemBorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarViewDayItemStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarViewDayItemStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarViewDayItemStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarViewDayItemStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarViewDayItemStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarViewDayItemStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemCornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemCornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemCornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarItemCornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarItemCornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarItemCornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarViewDayItemChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CalendarViewDayItemChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CalendarViewDayItemChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarViewDayItemChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CalendarViewDayItemChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::CalendarViewDayItemChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CalendarViewDayItemChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CalendarViewDayItemChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDatesChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectedDatesChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectedDatesChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDatesChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectedDatesChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SelectedDatesChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectedDatesChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectedDatesChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SetDisplayDate(winrt::Windows::Foundation::DateTime const& date) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDisplayDate(impl::bind_in(date))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDisplayDate(impl::bind_in(date))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarView::SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetYearDecadeDisplayDimensions(columns, rows)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetYearDecadeDisplayDimensions(columns, rows)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItem::IsBlackout() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBlackout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBlackout(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItem::IsBlackout(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsBlackout(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsBlackout(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItem::Date() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Date(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Date(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItem::SetDensityColors(param::iterable const& colors) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDensityColors(*(void**)(&colors))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDensityColors(*(void**)(&colors))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemChangingEventArgs::InRecycleQueue() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InRecycleQueue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InRecycleQueue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemChangingEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CalendarViewDayItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemChangingEventArgs::Phase() const + { + uint32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Phase(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Phase(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemChangingEventArgs::RegisterUpdateCallback(winrt::Windows::Foundation::TypedEventHandler const& callback) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterUpdateCallback(*(void**)(&callback))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterUpdateCallback(*(void**)(&callback))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemChangingEventArgs::RegisterUpdateCallback(uint32_t callbackPhase, winrt::Windows::Foundation::TypedEventHandler const& callback) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterUpdateCallbackWithPhase(callbackPhase, *(void**)(&callback))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterUpdateCallbackWithPhase(callbackPhase, *(void**)(&callback))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CalendarViewDayItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemStatics::IsBlackoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBlackoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBlackoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewDayItemStatics::DateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CalendarView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewSelectedDatesChangedEventArgs::AddedDates() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddedDates(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddedDates(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewSelectedDatesChangedEventArgs::RemovedDates() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RemovedDates(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RemovedDates(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarIdentifierProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DayOfWeekFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayOfWeekFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayOfWeekFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::IsGroupLabelVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroupLabelVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DisplayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstDayOfWeekProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstDayOfWeekProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstDayOfWeekProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::IsOutOfScopeEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOutOfScopeEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::IsTodayHighlightedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTodayHighlightedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTodayHighlightedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MaxDateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxDateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxDateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MinDateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinDateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinDateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::NumberOfWeeksInViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumberOfWeeksInViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NumberOfWeeksInViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedDatesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDatesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDatesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectionModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FocusBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedHoverBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedHoverBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedHoverBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedPressedBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedDisabledBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::HoverBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HoverBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HoverBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::PressedBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodaySelectedInnerBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodaySelectedInnerBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodaySelectedInnerBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::BlackoutStrikethroughBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlackoutStrikethroughBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlackoutStrikethroughBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemBorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemBorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemBorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::BlackoutBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlackoutBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlackoutBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::OutOfScopeBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopeBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopeBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemHoverBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemHoverBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemHoverBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemPressedBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemPressedBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemPressedBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemDisabledBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemDisabledBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemDisabledBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayBlackoutBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayBlackoutBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayBlackoutBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayHoverBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayHoverBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayHoverBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayPressedBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayPressedBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayPressedBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayDisabledBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayDisabledBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayDisabledBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::PressedForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::BlackoutForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BlackoutForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BlackoutForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayBlackoutForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayBlackoutForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayBlackoutForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedHoverForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedHoverForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedHoverForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedPressedForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPressedForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPressedForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::SelectedDisabledForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDisabledForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDisabledForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::OutOfScopeForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopeForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopeForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::OutOfScopeHoverForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopeHoverForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopeHoverForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::OutOfScopePressedForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OutOfScopePressedForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OutOfScopePressedForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DisabledForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DayItemFontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DayItemFontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DayItemFontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DayItemFontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemFontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemFontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::TodayFontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TodayFontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TodayFontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfMonthLabelFontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfMonthLabelFontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfMonthLabelFontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfMonthLabelFontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelFontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MonthYearItemFontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MonthYearItemFontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MonthYearItemFontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MonthYearItemFontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemFontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemFontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfYearDecadeLabelFontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfYearDecadeLabelFontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfYearDecadeLabelFontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfYearDecadeLabelFontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelFontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::DayItemMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayItemMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayItemMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::MonthYearItemMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthYearItemMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthYearItemMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfMonthLabelMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfMonthLabelMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::FirstOfYearDecadeLabelMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstOfYearDecadeLabelMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::HorizontalDayItemAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalDayItemAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalDayItemAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::VerticalDayItemAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalDayItemAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalDayItemAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::HorizontalFirstOfMonthLabelAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalFirstOfMonthLabelAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalFirstOfMonthLabelAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::VerticalFirstOfMonthLabelAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalFirstOfMonthLabelAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalFirstOfMonthLabelAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemBorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemBorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemBorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarViewDayItemStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarViewDayItemStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarViewDayItemStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICalendarViewStatics::CalendarItemCornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarItemCornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarItemCornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICandidateWindowBoundsChangedEventArgs::Bounds() const + { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Canvas{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::LeftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::GetLeft(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + double result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLeft(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLeft(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::SetLeft(winrt::Microsoft::UI::Xaml::UIElement const& element, double length) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLeft(*(void**)(&element), length)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLeft(*(void**)(&element), length)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::TopProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::GetTop(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + double result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTop(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTop(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::SetTop(winrt::Microsoft::UI::Xaml::UIElement const& element, double length) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTop(*(void**)(&element), length)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTop(*(void**)(&element), length)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::ZIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::GetZIndex(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetZIndex(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetZIndex(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICanvasStatics::SetZIndex(winrt::Microsoft::UI::Xaml::UIElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetZIndex(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetZIndex(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICheckBoxFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CheckBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingGroupHeaderContainerEventArgs::GroupHeaderContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupHeaderContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupHeaderContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListViewBaseHeaderItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingGroupHeaderContainerEventArgs::GroupHeaderContainer(winrt::Microsoft::UI::Xaml::Controls::ListViewBaseHeaderItem const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupHeaderContainer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupHeaderContainer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingGroupHeaderContainerEventArgs::GroupIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingGroupHeaderContainerEventArgs::Group() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Group(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Group(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingItemContainerEventArgs::ItemIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingItemContainerEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingItemContainerEventArgs::ItemContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::SelectorItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingItemContainerEventArgs::ItemContainer(winrt::Microsoft::UI::Xaml::Controls::Primitives::SelectorItem const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingItemContainerEventArgs::IsContainerPrepared() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContainerPrepared(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContainerPrepared(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IChoosingItemContainerEventArgs::IsContainerPrepared(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsContainerPrepared(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsContainerPrepared(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICleanUpVirtualizedItemEventArgs::Value() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICleanUpVirtualizedItemEventArgs::UIElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UIElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UIElement(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICleanUpVirtualizedItemEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICleanUpVirtualizedItemEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorChangedEventArgs::OldColor() const + { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldColor(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldColor(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorChangedEventArgs::NewColor() const + { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewColor(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewColor(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::Color() const + { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::Color(winrt::Windows::UI::Color const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::PreviousColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousColor(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::PreviousColor(winrt::Windows::Foundation::IReference const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreviousColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreviousColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsAlphaEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlphaEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlphaEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsAlphaEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAlphaEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAlphaEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorSpectrumVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorSpectrumVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorSpectrumVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorSpectrumVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorSpectrumVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorSpectrumVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorPreviewVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorPreviewVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorPreviewVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorPreviewVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorPreviewVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorPreviewVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorSliderVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorSliderVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorSliderVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorSliderVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorSliderVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorSliderVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsAlphaSliderVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlphaSliderVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlphaSliderVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsAlphaSliderVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAlphaSliderVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAlphaSliderVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsMoreButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMoreButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMoreButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsMoreButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsMoreButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsMoreButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorChannelTextInputVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorChannelTextInputVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorChannelTextInputVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsColorChannelTextInputVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorChannelTextInputVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorChannelTextInputVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsAlphaTextInputVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlphaTextInputVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlphaTextInputVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsAlphaTextInputVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAlphaTextInputVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAlphaTextInputVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsHexInputVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHexInputVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHexInputVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::IsHexInputVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHexInputVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHexInputVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MinHue() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MinHue(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinHue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinHue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MaxHue() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MaxHue(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxHue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxHue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MinSaturation() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinSaturation(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinSaturation(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MinSaturation(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinSaturation(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinSaturation(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MaxSaturation() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSaturation(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSaturation(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MaxSaturation(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxSaturation(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxSaturation(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MinValue() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MinValue(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinValue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinValue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MaxValue() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::MaxValue(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxValue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxValue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorSpectrumShape() const + { + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumShape value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorSpectrumShape(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorSpectrumShape(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorSpectrumShape(winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumShape const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ColorSpectrumShape(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ColorSpectrumShape(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorSpectrumComponents() const + { + winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumComponents value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorSpectrumComponents(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorSpectrumComponents(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorSpectrumComponents(winrt::Microsoft::UI::Xaml::Controls::ColorSpectrumComponents const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ColorSpectrumComponents(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ColorSpectrumComponents(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ColorChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ColorChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ColorChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker::ColorChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ColorChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ColorChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker2::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPicker2::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ColorPicker{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::ColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::PreviousColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsAlphaEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlphaEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlphaEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsColorSpectrumVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorSpectrumVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorSpectrumVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsColorPreviewVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorPreviewVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorPreviewVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsColorSliderVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorSliderVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorSliderVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsAlphaSliderVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlphaSliderVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlphaSliderVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsMoreButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMoreButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMoreButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsColorChannelTextInputVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorChannelTextInputVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorChannelTextInputVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsAlphaTextInputVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAlphaTextInputVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAlphaTextInputVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::IsHexInputVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHexInputVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHexInputVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::MinHueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::MaxHueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::MinSaturationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinSaturationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinSaturationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::MaxSaturationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSaturationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSaturationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::MinValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::MaxValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::ColorSpectrumShapeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorSpectrumShapeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorSpectrumShapeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics::ColorSpectrumComponentsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorSpectrumComponentsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorSpectrumComponentsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColorPickerStatics2::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::Width() const + { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Width(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Width(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::Width(winrt::Microsoft::UI::Xaml::GridLength const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Width(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Width(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::MaxWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::MaxWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::MinWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::MinWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinition::ActualWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinitionStatics::WidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinitionStatics::MaxWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IColumnDefinitionStatics::MinWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsDropDownOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDropDownOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDropDownOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsDropDownOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDropDownOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDropDownOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsEditable() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEditable(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEditable(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsEditable(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsEditable(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsEditable(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsSelectionBoxHighlighted() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectionBoxHighlighted(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectionBoxHighlighted(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::MaxDropDownHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxDropDownHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxDropDownHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::MaxDropDownHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxDropDownHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxDropDownHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::SelectionBoxItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionBoxItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionBoxItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::SelectionBoxItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionBoxItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionBoxItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ComboBoxTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsTextSearchEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextSearchEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextSearchEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::IsTextSearchEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextSearchEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextSearchEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::SelectionChangedTrigger() const + { + winrt::Microsoft::UI::Xaml::Controls::ComboBoxSelectionChangedTrigger value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionChangedTrigger(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionChangedTrigger(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::SelectionChangedTrigger(winrt::Microsoft::UI::Xaml::Controls::ComboBoxSelectionChangedTrigger const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionChangedTrigger(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionChangedTrigger(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::PlaceholderForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::PlaceholderForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::TextBoxStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextBoxStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextBoxStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::TextBoxStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextBoxStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextBoxStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::DropDownClosed(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DropDownClosed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DropDownClosed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::DropDownClosed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, DropDownClosed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::DropDownClosed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DropDownClosed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DropDownClosed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::DropDownOpened(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DropDownOpened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DropDownOpened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::DropDownOpened(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, DropDownOpened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::DropDownOpened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DropDownOpened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DropDownOpened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::TextSubmitted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextSubmitted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextSubmitted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::TextSubmitted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextSubmitted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBox::TextSubmitted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextSubmitted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextSubmitted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ComboBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ComboBoxItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxOverrides::OnDropDownClosed(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDropDownClosed(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDropDownClosed(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxOverrides::OnDropDownOpened(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDropDownOpened(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDropDownOpened(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::IsEditableProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEditableProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEditableProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::IsDropDownOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDropDownOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDropDownOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::MaxDropDownHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxDropDownHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxDropDownHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::IsTextSearchEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextSearchEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextSearchEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::SelectionChangedTriggerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionChangedTriggerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionChangedTriggerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::PlaceholderForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::TextBoxStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextBoxStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextBoxStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxTextSubmittedEventArgs::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxTextSubmittedEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IComboBoxTextSubmittedEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::PrimaryCommands() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryCommands(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryCommands(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::SecondaryCommands() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryCommands(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryCommands(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::CommandBarOverflowPresenterStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandBarOverflowPresenterStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandBarOverflowPresenterStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::CommandBarOverflowPresenterStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CommandBarOverflowPresenterStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CommandBarOverflowPresenterStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::CommandBarTemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandBarTemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandBarTemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::CommandBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::DefaultLabelPosition() const + { + winrt::Microsoft::UI::Xaml::Controls::CommandBarDefaultLabelPosition value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultLabelPosition(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultLabelPosition(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::DefaultLabelPosition(winrt::Microsoft::UI::Xaml::Controls::CommandBarDefaultLabelPosition const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultLabelPosition(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultLabelPosition(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::OverflowButtonVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::CommandBarOverflowButtonVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::OverflowButtonVisibility(winrt::Microsoft::UI::Xaml::Controls::CommandBarOverflowButtonVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OverflowButtonVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OverflowButtonVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::IsDynamicOverflowEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDynamicOverflowEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDynamicOverflowEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::IsDynamicOverflowEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDynamicOverflowEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDynamicOverflowEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::DynamicOverflowItemsChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DynamicOverflowItemsChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DynamicOverflowItemsChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::DynamicOverflowItemsChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DynamicOverflowItemsChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBar::DynamicOverflowItemsChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DynamicOverflowItemsChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DynamicOverflowItemsChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarElement::IsCompact() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompact(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompact(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarElement::IsCompact(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsCompact(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsCompact(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarElement::IsInOverflow() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInOverflow(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInOverflow(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarElement::DynamicOverflowOrder() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrder(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DynamicOverflowOrder(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarElement::DynamicOverflowOrder(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DynamicOverflowOrder(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DynamicOverflowOrder(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CommandBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarFlyout::PrimaryCommands() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryCommands(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryCommands(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarFlyout::SecondaryCommands() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryCommands(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryCommands(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarFlyout2::AlwaysExpanded() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlwaysExpanded(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlwaysExpanded(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarFlyout2::AlwaysExpanded(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlwaysExpanded(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlwaysExpanded(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarFlyoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CommandBarFlyout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarOverflowPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::CommandBarOverflowPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarStatics::PrimaryCommandsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryCommandsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryCommandsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarStatics::SecondaryCommandsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryCommandsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryCommandsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarStatics::CommandBarOverflowPresenterStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandBarOverflowPresenterStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandBarOverflowPresenterStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarStatics::DefaultLabelPositionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultLabelPositionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultLabelPositionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarStatics::OverflowButtonVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ICommandBarStatics::IsDynamicOverflowEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDynamicOverflowEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDynamicOverflowEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::ItemContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::SelectorItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::InRecycleQueue() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InRecycleQueue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InRecycleQueue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::ItemIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::Phase() const + { + uint32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Phase(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Phase(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::RegisterUpdateCallback(winrt::Windows::Foundation::TypedEventHandler const& callback) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterUpdateCallback(*(void**)(&callback))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterUpdateCallback(*(void**)(&callback))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContainerContentChangingEventArgs::RegisterUpdateCallback(uint32_t callbackPhase, winrt::Windows::Foundation::TypedEventHandler const& callback) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterUpdateCallbackWithPhase(callbackPhase, *(void**)(&callback))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterUpdateCallbackWithPhase(callbackPhase, *(void**)(&callback))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::Content(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControl::ContentTemplateRoot() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateRoot(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateRoot(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ContentControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlOverrides::OnContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnContentChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnContentChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlOverrides::OnContentTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldContentTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newContentTemplate) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnContentTemplateChanged(*(void**)(&oldContentTemplate), *(void**)(&newContentTemplate))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnContentTemplateChanged(*(void**)(&oldContentTemplate), *(void**)(&newContentTemplate))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlOverrides::OnContentTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldContentTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newContentTemplateSelector) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnContentTemplateSelectorChanged(*(void**)(&oldContentTemplateSelector), *(void**)(&newContentTemplateSelector))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnContentTemplateSelectorChanged(*(void**)(&oldContentTemplateSelector), *(void**)(&newContentTemplateSelector))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlStatics::ContentTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlStatics::ContentTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentControlStatics::ContentTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Title() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Title(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::TitleTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::TitleTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TitleTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TitleTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::FullSizeDesired() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FullSizeDesired(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FullSizeDesired(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::FullSizeDesired(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FullSizeDesired(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FullSizeDesired(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PrimaryButtonText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PrimaryButtonText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SecondaryButtonText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SecondaryButtonText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PrimaryButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PrimaryButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SecondaryButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SecondaryButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PrimaryButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PrimaryButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SecondaryButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SecondaryButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::IsPrimaryButtonEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPrimaryButtonEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPrimaryButtonEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::IsPrimaryButtonEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPrimaryButtonEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPrimaryButtonEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::IsSecondaryButtonEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSecondaryButtonEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSecondaryButtonEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::IsSecondaryButtonEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSecondaryButtonEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSecondaryButtonEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PrimaryButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PrimaryButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SecondaryButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SecondaryButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::DefaultButton() const + { + winrt::Microsoft::UI::Xaml::Controls::ContentDialogButton value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultButton(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultButton(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::DefaultButton(winrt::Microsoft::UI::Xaml::Controls::ContentDialogButton const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultButton(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultButton(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Closing(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Closing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Closing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Closed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Closed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Closed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Opened(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Opened(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Opened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Opened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PrimaryButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PrimaryButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PrimaryButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::PrimaryButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PrimaryButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PrimaryButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SecondaryButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SecondaryButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SecondaryButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::SecondaryButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SecondaryButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SecondaryButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CloseButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CloseButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CloseButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::CloseButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CloseButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CloseButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::Hide() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::ShowAsync() const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAsync(&operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialog::ShowAsync(winrt::Microsoft::UI::Xaml::Controls::ContentDialogPlacement const& placement) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAsyncWithPlacement(static_cast(placement), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAsyncWithPlacement(static_cast(placement), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogButtonClickDeferral::Complete() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogButtonClickEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogButtonClickEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogButtonClickEventArgs::GetDeferral() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ContentDialogButtonClickDeferral{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogClosedEventArgs::Result() const + { + winrt::Microsoft::UI::Xaml::Controls::ContentDialogResult value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Result(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Result(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogClosingDeferral::Complete() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogClosingEventArgs::Result() const + { + winrt::Microsoft::UI::Xaml::Controls::ContentDialogResult value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Result(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Result(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogClosingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogClosingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogClosingEventArgs::GetDeferral() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ContentDialogClosingDeferral{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ContentDialog{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::TitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::TitleTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::FullSizeDesiredProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FullSizeDesiredProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FullSizeDesiredProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::PrimaryButtonTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::SecondaryButtonTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::CloseButtonTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::PrimaryButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::SecondaryButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::CloseButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::PrimaryButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::SecondaryButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::CloseButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::IsPrimaryButtonEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPrimaryButtonEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPrimaryButtonEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::IsSecondaryButtonEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSecondaryButtonEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSecondaryButtonEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::PrimaryButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::SecondaryButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::CloseButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentDialogStatics::DefaultButtonProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultButtonProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultButtonProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Content(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::ContentTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::ContentTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::ContentTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::ContentTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::ContentTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::ContentTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontStretch() const + { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::FontStretch(winrt::Windows::UI::Text::FontStretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::CharacterSpacing() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::CharacterSpacing(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::OpticalMarginAlignment() const + { + winrt::Microsoft::UI::Xaml::OpticalMarginAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::OpticalMarginAlignment(winrt::Microsoft::UI::Xaml::OpticalMarginAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpticalMarginAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpticalMarginAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::TextLineBounds() const + { + winrt::Microsoft::UI::Xaml::TextLineBounds value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextLineBounds(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextLineBounds(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::TextLineBounds(winrt::Microsoft::UI::Xaml::TextLineBounds const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextLineBounds(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextLineBounds(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::IsTextScaleFactorEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::IsTextScaleFactorEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BackgroundTransition() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundTransition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::BrushTransition{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BackgroundTransition(winrt::Microsoft::UI::Xaml::BrushTransition const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundTransition(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundTransition(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::TextWrapping() const + { + winrt::Microsoft::UI::Xaml::TextWrapping value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::TextWrapping(winrt::Microsoft::UI::Xaml::TextWrapping const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::MaxLines() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::MaxLines(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::LineStackingStrategy() const + { + winrt::Microsoft::UI::Xaml::LineStackingStrategy value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategy(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategy(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::LineStackingStrategy(winrt::Microsoft::UI::Xaml::LineStackingStrategy const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::LineHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::LineHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::CornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::CornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Background() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BackgroundSizing() const + { + winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::BackgroundSizing(winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::HorizontalContentAlignment() const + { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::HorizontalContentAlignment(winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalContentAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalContentAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::VerticalContentAlignment() const + { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalContentAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalContentAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenter::VerticalContentAlignment(winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalContentAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalContentAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ContentPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterOverrides::OnContentTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldContentTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newContentTemplate) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnContentTemplateChanged(*(void**)(&oldContentTemplate), *(void**)(&newContentTemplate))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnContentTemplateChanged(*(void**)(&oldContentTemplate), *(void**)(&newContentTemplate))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterOverrides::OnContentTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldContentTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newContentTemplateSelector) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnContentTemplateSelectorChanged(*(void**)(&oldContentTemplateSelector), *(void**)(&newContentTemplateSelector))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnContentTemplateSelectorChanged(*(void**)(&oldContentTemplateSelector), *(void**)(&newContentTemplateSelector))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::ContentTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::ContentTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::ContentTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::FontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::FontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::FontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::FontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::FontStretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::CharacterSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::OpticalMarginAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::TextLineBoundsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextLineBoundsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextLineBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::IsTextScaleFactorEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::TextWrappingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::MaxLinesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::LineStackingStrategyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::LineHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::BorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::BorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::CornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::BackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::BackgroundSizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::HorizontalContentAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContentPresenterStatics::VerticalContentAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalContentAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalContentAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContextMenuEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContextMenuEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IContextMenuEventArgs::CursorLeft() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CursorLeft(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CursorLeft(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IContextMenuEventArgs::CursorTop() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CursorTop(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CursorTop(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsFocusEngagementEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFocusEngagementEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFocusEngagementEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsFocusEngagementEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFocusEngagementEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFocusEngagementEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsFocusEngaged() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFocusEngaged(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFocusEngaged(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsFocusEngaged(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFocusEngaged(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFocusEngaged(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::RequiresPointer() const + { + winrt::Microsoft::UI::Xaml::Controls::RequiresPointer value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequiresPointer(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequiresPointer(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::RequiresPointer(winrt::Microsoft::UI::Xaml::Controls::RequiresPointer const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RequiresPointer(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RequiresPointer(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontStretch() const + { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FontStretch(winrt::Windows::UI::Text::FontStretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::CharacterSpacing() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::CharacterSpacing(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsTextScaleFactorEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsTextScaleFactorEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::TabNavigation() const + { + winrt::Microsoft::UI::Xaml::Input::KeyboardNavigationMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabNavigation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabNavigation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::TabNavigation(winrt::Microsoft::UI::Xaml::Input::KeyboardNavigationMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabNavigation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabNavigation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Template() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Template(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Template(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ControlTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Template(winrt::Microsoft::UI::Xaml::Controls::ControlTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Template(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Template(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::HorizontalContentAlignment() const + { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::HorizontalContentAlignment(winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalContentAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalContentAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::VerticalContentAlignment() const + { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalContentAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalContentAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::VerticalContentAlignment(winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalContentAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalContentAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Background() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::BackgroundSizing() const + { + winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::BackgroundSizing(winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::BorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::BorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::BorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::BorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::DefaultStyleResourceUri() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultStyleResourceUri(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultStyleResourceUri(&value)); + } + return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::DefaultStyleResourceUri(winrt::Windows::Foundation::Uri const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultStyleResourceUri(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultStyleResourceUri(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::ElementSoundMode() const + { + winrt::Microsoft::UI::Xaml::ElementSoundMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementSoundMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementSoundMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::ElementSoundMode(winrt::Microsoft::UI::Xaml::ElementSoundMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ElementSoundMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ElementSoundMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::CornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::CornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FocusEngaged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_FocusEngaged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_FocusEngaged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FocusEngaged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, FocusEngaged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FocusEngaged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_FocusEngaged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_FocusEngaged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FocusDisengaged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_FocusDisengaged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_FocusDisengaged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FocusDisengaged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, FocusDisengaged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::FocusDisengaged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_FocusDisengaged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_FocusDisengaged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsEnabledChanged(winrt::Microsoft::UI::Xaml::DependencyPropertyChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsEnabledChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_IsEnabledChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsEnabledChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::DependencyPropertyChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, IsEnabledChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::IsEnabledChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsEnabledChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_IsEnabledChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::RemoveFocusEngagement() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveFocusEngagement()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveFocusEngagement()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControl::ApplyTemplate() const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ApplyTemplate(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ApplyTemplate(&result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Control{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerEntered(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerEntered(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerEntered(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerPressed(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerPressed(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerPressed(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerMoved(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerMoved(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerMoved(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerReleased(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerReleased(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerReleased(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerExited(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerExited(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerExited(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerCaptureLost(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerCaptureLost(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerCaptureLost(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerCanceled(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerCanceled(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerCanceled(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPointerWheelChanged(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPointerWheelChanged(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPointerWheelChanged(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnTapped(winrt::Microsoft::UI::Xaml::Input::TappedRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnTapped(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnTapped(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnDoubleTapped(winrt::Microsoft::UI::Xaml::Input::DoubleTappedRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDoubleTapped(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDoubleTapped(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnHolding(winrt::Microsoft::UI::Xaml::Input::HoldingRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnHolding(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnHolding(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnRightTapped(winrt::Microsoft::UI::Xaml::Input::RightTappedRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnRightTapped(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnRightTapped(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnManipulationStarting(winrt::Microsoft::UI::Xaml::Input::ManipulationStartingRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnManipulationStarting(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnManipulationStarting(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnManipulationInertiaStarting(winrt::Microsoft::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnManipulationInertiaStarting(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnManipulationInertiaStarting(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnManipulationStarted(winrt::Microsoft::UI::Xaml::Input::ManipulationStartedRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnManipulationStarted(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnManipulationStarted(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnManipulationDelta(winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnManipulationDelta(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnManipulationDelta(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnManipulationCompleted(winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnManipulationCompleted(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnManipulationCompleted(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnKeyUp(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnKeyUp(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnKeyUp(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnKeyDown(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnKeyDown(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnKeyDown(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPreviewKeyDown(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPreviewKeyDown(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPreviewKeyDown(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnPreviewKeyUp(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnPreviewKeyUp(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnPreviewKeyUp(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnGotFocus(winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnGotFocus(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnGotFocus(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnLostFocus(winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnLostFocus(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnLostFocus(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnCharacterReceived(winrt::Microsoft::UI::Xaml::Input::CharacterReceivedRoutedEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnCharacterReceived(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnCharacterReceived(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnDragEnter(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDragEnter(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDragEnter(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnDragLeave(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDragLeave(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDragLeave(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnDragOver(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDragOver(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDragOver(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlOverrides::OnDrop(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDrop(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDrop(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlProtected::DefaultStyleKey() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultStyleKey(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultStyleKey(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlProtected::DefaultStyleKey(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultStyleKey(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultStyleKey(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlProtected::GetTemplateChild(param::hstring const& childName) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTemplateChild(*(void**)(&childName), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTemplateChild(*(void**)(&childName), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::IsFocusEngagementEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFocusEngagementEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFocusEngagementEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::IsFocusEngagedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFocusEngagedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFocusEngagedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::RequiresPointerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequiresPointerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequiresPointerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::FontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::FontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::FontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::FontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::FontStretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::CharacterSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::IsTextScaleFactorEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::IsEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::TabNavigationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabNavigationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabNavigationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::TemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::HorizontalContentAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalContentAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::VerticalContentAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalContentAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalContentAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::BackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::BackgroundSizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::BorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::BorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::DefaultStyleKeyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultStyleKeyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultStyleKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::DefaultStyleResourceUriProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultStyleResourceUriProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultStyleResourceUriProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::ElementSoundModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::CornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::IsTemplateFocusTargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTemplateFocusTargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTemplateFocusTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::GetIsTemplateFocusTarget(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsTemplateFocusTarget(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsTemplateFocusTarget(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::SetIsTemplateFocusTarget(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsTemplateFocusTarget(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsTemplateFocusTarget(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::IsTemplateKeyTipTargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTemplateKeyTipTargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTemplateKeyTipTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::GetIsTemplateKeyTipTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsTemplateKeyTipTarget(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsTemplateKeyTipTarget(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlStatics::SetIsTemplateKeyTipTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsTemplateKeyTipTarget(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsTemplateKeyTipTarget(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlTemplate::TargetType() const + { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetType(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetType(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IControlTemplate::TargetType(winrt::Windows::UI::Xaml::Interop::TypeName const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetType(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetType(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ICoreWebView2InitializedEventArgs::Exception() const + { + winrt::hresult value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Exception(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Exception(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDataTemplateSelector::SelectTemplate(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectTemplate(*(void**)(&item), *(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectTemplate(*(void**)(&item), *(void**)(&container), &result)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDataTemplateSelector::SelectTemplate(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectTemplateForItem(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectTemplateForItem(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDataTemplateSelectorFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDataTemplateSelectorOverrides::SelectTemplateCore(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectTemplateCore(*(void**)(&item), *(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectTemplateCore(*(void**)(&item), *(void**)(&container), &result)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDataTemplateSelectorOverrides::SelectTemplateCore(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectTemplateForItemCore(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectTemplateForItemCore(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickedEventArgs::OldDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickedEventArgs::NewDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::CalendarIdentifier() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::CalendarIdentifier(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::Date() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Date(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Date(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::Date(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Date(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Date(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DayVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DayVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MonthVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MonthVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::YearVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::YearVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_YearVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_YearVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DayFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DayFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MonthFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MonthFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::YearFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::YearFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_YearFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_YearFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MinYear() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinYear(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinYear(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MinYear(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinYear(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinYear(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MaxYear() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxYear(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxYear(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::MaxYear(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxYear(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxYear(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::SelectedDate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDate(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::SelectedDate(winrt::Windows::Foundation::IReference const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedDate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedDate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DateChanged(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DateChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DateChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, DateChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::DateChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DateChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DateChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::SelectedDateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectedDateChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectedDateChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::SelectedDateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectedDateChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePicker::SelectedDateChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectedDateChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectedDateChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DatePicker{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::CalendarIdentifier() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifier(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::CalendarIdentifier(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CalendarIdentifier(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::Date() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Date(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Date(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::Date(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Date(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Date(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DayVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DayVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MonthVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MonthVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::YearVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::YearVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_YearVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_YearVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MinYear() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinYear(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinYear(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MinYear(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinYear(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinYear(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MaxYear() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxYear(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxYear(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MaxYear(winrt::Windows::Foundation::DateTime const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxYear(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxYear(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DayFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DayFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DayFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DayFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MonthFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::MonthFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MonthFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MonthFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::YearFormat() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearFormat(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearFormat(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::YearFormat(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_YearFormat(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_YearFormat(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DatePicked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DatePicked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DatePicked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DatePicked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DatePicked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::DatePicked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DatePicked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DatePicked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyout::ShowAtAsync(winrt::Microsoft::UI::Xaml::FrameworkElement const& target) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutItem::PrimaryText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutItem::PrimaryText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PrimaryText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PrimaryText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutItem::SecondaryText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutItem::SecondaryText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SecondaryText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SecondaryText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutItemStatics::PrimaryTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrimaryTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PrimaryTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutItemStatics::SecondaryTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SecondaryTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SecondaryTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutPresenter::IsDefaultShadowEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutPresenter::IsDefaultShadowEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutPresenterStatics::IsDefaultShadowEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::CalendarIdentifierProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::DateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::DayVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::MonthVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::YearVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::MinYearProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinYearProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinYearProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::MaxYearProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxYearProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxYearProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::DayFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::MonthFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerFlyoutStatics::YearFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerSelectedValueChangedEventArgs::OldDate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldDate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldDate(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerSelectedValueChangedEventArgs::NewDate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewDate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewDate(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::CalendarIdentifierProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CalendarIdentifierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::DateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::DayVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::MonthVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::YearVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::DayFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DayFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DayFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::MonthFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MonthFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MonthFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::YearFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YearFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YearFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::MinYearProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinYearProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinYearProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::MaxYearProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxYearProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxYearProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerStatics::SelectedDateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedDateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedDateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerValueChangedEventArgs::OldDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDatePickerValueChangedEventArgs::NewDate() const + { + winrt::Windows::Foundation::DateTime value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewDate(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewDate(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDragItemsCompletedEventArgs::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDragItemsCompletedEventArgs::DropResult() const + { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDragItemsStartingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDragItemsStartingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDragItemsStartingEventArgs::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDragItemsStartingEventArgs::Data() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDropDownButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DropDownButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDynamicAnimatedVisualSource::AnimatedVisualInvalidated(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AnimatedVisualInvalidated(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AnimatedVisualInvalidated(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IDynamicAnimatedVisualSource::AnimatedVisualInvalidated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, AnimatedVisualInvalidated(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IDynamicAnimatedVisualSource::AnimatedVisualInvalidated(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AnimatedVisualInvalidated(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_AnimatedVisualInvalidated(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IDynamicOverflowItemsChangingEventArgs::Action() const + { + winrt::Microsoft::UI::Xaml::Controls::CommandBarDynamicOverflowAction value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Action(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Action(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::HeaderTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::HeaderTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::IsExpanded() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::IsExpanded(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::ExpandDirection() const + { + winrt::Microsoft::UI::Xaml::Controls::ExpandDirection value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandDirection(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandDirection(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::ExpandDirection(winrt::Microsoft::UI::Xaml::Controls::ExpandDirection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExpandDirection(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExpandDirection(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Expanding(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Expanding(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Expanding(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Expanding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Expanding(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Expanding(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Expanding(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Expanding(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Collapsed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Collapsed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Collapsed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Collapsed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Collapsed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::Collapsed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Collapsed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Collapsed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpander::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ExpanderTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Expander{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderStatics::HeaderTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderStatics::IsExpandedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderStatics::ExpandDirectionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandDirectionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderTemplateSettings::ContentHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IExpanderTemplateSettings::NegativeContentHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NegativeContentHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NegativeContentHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlipView::UseTouchAnimationsForAllNavigation() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseTouchAnimationsForAllNavigation(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseTouchAnimationsForAllNavigation(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlipView::UseTouchAnimationsForAllNavigation(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UseTouchAnimationsForAllNavigation(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UseTouchAnimationsForAllNavigation(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlipViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::FlipView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlipViewItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::FlipViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlipViewStatics::UseTouchAnimationsForAllNavigationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseTouchAnimationsForAllNavigationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseTouchAnimationsForAllNavigationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyout::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyout::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyout::FlyoutPresenterStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlyoutPresenterStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlyoutPresenterStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyout::FlyoutPresenterStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FlyoutPresenterStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FlyoutPresenterStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Flyout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutPresenter::IsDefaultShadowEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutPresenter::IsDefaultShadowEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::FlyoutPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutPresenterStatics::IsDefaultShadowEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFlyoutStatics::FlyoutPresenterStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlyoutPresenterStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlyoutPresenterStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFocusEngagedEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFocusEngagedEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::Glyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Glyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Glyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::Glyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Glyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Glyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::IsTextScaleFactorEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::IsTextScaleFactorEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::MirroredWhenRightToLeft() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIcon::MirroredWhenRightToLeft(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::FontIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::Glyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Glyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Glyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::Glyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Glyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Glyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::IsTextScaleFactorEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::IsTextScaleFactorEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::MirroredWhenRightToLeft() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeft(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSource::MirroredWhenRightToLeft(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MirroredWhenRightToLeft(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::FontIconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::GlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::FontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::FontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::FontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::FontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::IsTextScaleFactorEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconSourceStatics::MirroredWhenRightToLeftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::GlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::FontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::FontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::FontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::FontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::IsTextScaleFactorEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFontIconStatics::MirroredWhenRightToLeftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MirroredWhenRightToLeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::CacheSize() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::CacheSize(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CacheSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CacheSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::CanGoBack() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoBack(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoBack(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::CanGoForward() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoForward(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoForward(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::CurrentSourcePageType() const + { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentSourcePageType(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentSourcePageType(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::SourcePageType() const + { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::SourcePageType(winrt::Windows::UI::Xaml::Interop::TypeName const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SourcePageType(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SourcePageType(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::BackStackDepth() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackStackDepth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackStackDepth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::BackStack() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackStack(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackStack(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::ForwardStack() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForwardStack(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForwardStack(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::IsNavigationStackEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsNavigationStackEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsNavigationStackEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::IsNavigationStackEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsNavigationStackEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsNavigationStackEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigated(winrt::Microsoft::UI::Xaml::Navigation::NavigatedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Navigated(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Navigated(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigated(auto_revoke_t, winrt::Microsoft::UI::Xaml::Navigation::NavigatedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Navigated(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigated(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Navigated(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Navigated(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigating(winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Navigating(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Navigating(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigating(auto_revoke_t, winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventHandler const& handler) const + { + return impl::make_event_revoker(this, Navigating(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigating(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Navigating(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Navigating(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigationFailed(winrt::Microsoft::UI::Xaml::Navigation::NavigationFailedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NavigationFailed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NavigationFailed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigationFailed(auto_revoke_t, winrt::Microsoft::UI::Xaml::Navigation::NavigationFailedEventHandler const& handler) const + { + return impl::make_event_revoker(this, NavigationFailed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigationFailed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NavigationFailed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_NavigationFailed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigationStopped(winrt::Microsoft::UI::Xaml::Navigation::NavigationStoppedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NavigationStopped(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NavigationStopped(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigationStopped(auto_revoke_t, winrt::Microsoft::UI::Xaml::Navigation::NavigationStoppedEventHandler const& handler) const + { + return impl::make_event_revoker(this, NavigationStopped(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigationStopped(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NavigationStopped(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_NavigationStopped(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::GoBack() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoBack()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GoBack()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::GoBack(winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo const& transitionInfoOverride) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoBackWithTransitionInfo(*(void**)(&transitionInfoOverride))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GoBackWithTransitionInfo(*(void**)(&transitionInfoOverride))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::GoForward() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoForward()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GoForward()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigate(winrt::Windows::UI::Xaml::Interop::TypeName const& sourcePageType, winrt::Windows::Foundation::IInspectable const& parameter) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Navigate(impl::bind_in(sourcePageType), *(void**)(¶meter), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Navigate(impl::bind_in(sourcePageType), *(void**)(¶meter), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::Navigate(winrt::Windows::UI::Xaml::Interop::TypeName const& sourcePageType, winrt::Windows::Foundation::IInspectable const& parameter, winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo const& infoOverride) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateWithTransitionInfo(impl::bind_in(sourcePageType), *(void**)(¶meter), *(void**)(&infoOverride), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateWithTransitionInfo(impl::bind_in(sourcePageType), *(void**)(¶meter), *(void**)(&infoOverride), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::NavigateToType(winrt::Windows::UI::Xaml::Interop::TypeName const& sourcePageType, winrt::Windows::Foundation::IInspectable const& parameter, winrt::Microsoft::UI::Xaml::Navigation::FrameNavigationOptions const& navigationOptions) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateToType(impl::bind_in(sourcePageType), *(void**)(¶meter), *(void**)(&navigationOptions), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateToType(impl::bind_in(sourcePageType), *(void**)(¶meter), *(void**)(&navigationOptions), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::GetNavigationState() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetNavigationState(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetNavigationState(&result)); + } + return hstring{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::SetNavigationState(param::hstring const& navigationState) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetNavigationState(*(void**)(&navigationState))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetNavigationState(*(void**)(&navigationState))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrame::SetNavigationState(param::hstring const& navigationState, bool suppressNavigate) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetNavigationStateWithNavigationControl(*(void**)(&navigationState), suppressNavigate)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetNavigationStateWithNavigationControl(*(void**)(&navigationState), suppressNavigate)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Frame{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::CacheSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::CanGoBackProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoBackProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoBackProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::CanGoForwardProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoForwardProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoForwardProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::CurrentSourcePageTypeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentSourcePageTypeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentSourcePageTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::SourcePageTypeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageTypeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::BackStackDepthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackStackDepthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackStackDepthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::BackStackProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackStackProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackStackProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::ForwardStackProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForwardStackProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForwardStackProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IFrameStatics::IsNavigationStackEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsNavigationStackEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsNavigationStackEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::RowDefinitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowDefinitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowDefinitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RowDefinitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::ColumnDefinitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnDefinitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnDefinitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ColumnDefinitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::BackgroundSizing() const + { + winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::BackgroundSizing(winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::BorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::BorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::BorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::BorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::CornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::CornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::RowSpacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::RowSpacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RowSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RowSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::ColumnSpacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGrid::ColumnSpacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ColumnSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ColumnSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Grid{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::BackgroundSizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::BorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::BorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::CornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::RowSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::ColumnSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::RowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::GetRow(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRow(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRow(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::SetRow(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRow(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetRow(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::ColumnProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::GetColumn(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetColumn(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetColumn(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::SetColumn(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetColumn(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetColumn(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::RowSpanProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpanProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpanProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::GetRowSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRowSpan(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRowSpan(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::SetRowSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRowSpan(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetRowSpan(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::ColumnSpanProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpanProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpanProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::GetColumnSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetColumnSpan(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetColumnSpan(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridStatics::SetColumnSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetColumnSpan(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetColumnSpan(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GridView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridViewHeaderItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GridViewHeaderItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridViewItem::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::GridViewItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGridViewItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GridViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GroupItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::Panel() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Panel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Panel(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsPanelTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::Panel(winrt::Microsoft::UI::Xaml::Controls::ItemsPanelTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Panel(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Panel(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::ContainerStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainerStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainerStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::ContainerStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContainerStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContainerStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HeaderContainerStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderContainerStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderContainerStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HeaderContainerStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderContainerStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderContainerStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::ContainerStyleSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainerStyleSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainerStyleSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::ContainerStyleSelector(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContainerStyleSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContainerStyleSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HeaderTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HeaderTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HidesIfEmpty() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HidesIfEmpty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HidesIfEmpty(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyle::HidesIfEmpty(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HidesIfEmpty(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HidesIfEmpty(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyleFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GroupStyle{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyleSelector::SelectGroupStyle(winrt::Windows::Foundation::IInspectable const& group, uint32_t level) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectGroupStyle(*(void**)(&group), level, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectGroupStyle(*(void**)(&group), level, &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::GroupStyle{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyleSelectorFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IGroupStyleSelectorOverrides::SelectGroupStyleCore(winrt::Windows::Foundation::IInspectable const& group, uint32_t level) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectGroupStyleCore(*(void**)(&group), level, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectGroupStyleCore(*(void**)(&group), level, &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::GroupStyle{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHasValidationErrorsChangedEventArgs::NewValue() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::DefaultSectionIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultSectionIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultSectionIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::DefaultSectionIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultSectionIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultSectionIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::Sections() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Sections(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Sections(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionsInView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SectionsInView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SectionsInView(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionHeaders() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SectionHeaders(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SectionHeaders(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionHeaderClick(winrt::Microsoft::UI::Xaml::Controls::HubSectionHeaderClickEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SectionHeaderClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SectionHeaderClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionHeaderClick(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::HubSectionHeaderClickEventHandler const& handler) const + { + return impl::make_event_revoker(this, SectionHeaderClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionHeaderClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SectionHeaderClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SectionHeaderClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionsInViewChanged(winrt::Microsoft::UI::Xaml::Controls::SectionsInViewChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SectionsInViewChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SectionsInViewChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionsInViewChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::SectionsInViewChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SectionsInViewChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::SectionsInViewChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SectionsInViewChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SectionsInViewChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHub::ScrollToSection(winrt::Microsoft::UI::Xaml::Controls::HubSection const& section) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollToSection(*(void**)(§ion))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollToSection(*(void**)(§ion))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Hub{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::ContentTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::ContentTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::IsHeaderInteractive() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHeaderInteractive(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHeaderInteractive(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSection::IsHeaderInteractive(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHeaderInteractive(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHeaderInteractive(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSectionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::HubSection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSectionHeaderClickEventArgs::Section() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Section(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Section(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::HubSection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSectionStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSectionStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSectionStatics::ContentTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubSectionStatics::IsHeaderInteractiveProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHeaderInteractiveProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHeaderInteractiveProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::DefaultSectionIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultSectionIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultSectionIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::SemanticZoomOwnerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SemanticZoomOwnerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SemanticZoomOwnerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::IsActiveViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActiveViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActiveViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHubStatics::IsZoomedInViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomedInViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomedInViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHyperlinkButton::NavigateUri() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigateUri(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigateUri(&value)); + } + return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHyperlinkButton::NavigateUri(winrt::Windows::Foundation::Uri const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NavigateUri(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NavigateUri(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IHyperlinkButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::HyperlinkButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IHyperlinkButtonStatics::NavigateUriProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigateUriProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigateUriProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconElement::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconElement::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconElementStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSource::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSource::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSource::CreateIconElement() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateIconElement(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateIconElement(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceElement::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceElement::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceElementFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSourceElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceElementStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceOverrides::CreateIconElementCore() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateIconElementCore(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateIconElementCore(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceOverrides::GetIconElementPropertyCore(winrt::Microsoft::UI::Xaml::DependencyProperty const& iconSourceProperty) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIconElementPropertyCore(*(void**)(&iconSourceProperty), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIconElementPropertyCore(*(void**)(&iconSourceProperty), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IIconSourceStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::Source(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::Stretch() const + { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::Stretch(winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::NineGrid() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NineGrid(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NineGrid(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::NineGrid(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NineGrid(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NineGrid(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::ImageFailed(winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ImageFailed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ImageFailed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::ImageFailed(auto_revoke_t, winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ImageFailed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::ImageFailed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ImageFailed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ImageFailed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::ImageOpened(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ImageOpened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ImageOpened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::ImageOpened(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ImageOpened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::ImageOpened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ImageOpened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ImageOpened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::GetAsCastingSource() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAsCastingSource(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAsCastingSource(&result)); + } + return winrt::Windows::Media::Casting::CastingSource{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImage::GetAlphaMask() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlphaMask(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlphaMask(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIcon::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIcon::Source(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIconFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ImageIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIconSource::ImageSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ImageSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ImageSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIconSource::ImageSource(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ImageSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ImageSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIconSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ImageIconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIconSourceStatics::ImageSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ImageSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ImageSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageIconStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageStatics::StretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IImageStatics::NineGridProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NineGridProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NineGridProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadge::Value() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadge::Value(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadge::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadge::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadge::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBadgeTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBadge{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeStatics::ValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeStatics::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettings::InfoBadgeCornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoBadgeCornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoBadgeCornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettings::InfoBadgeCornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InfoBadgeCornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InfoBadgeCornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettings::IconElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettings::IconElement(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBadgeTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettingsStatics::InfoBadgeCornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoBadgeCornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoBadgeCornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBadgeTemplateSettingsStatics::IconElementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IsOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IsOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Title() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Title(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Message() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Message(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Message(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Message(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Message(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Message(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Severity() const + { + winrt::Microsoft::UI::Xaml::Controls::InfoBarSeverity value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Severity(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Severity(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Severity(winrt::Microsoft::UI::Xaml::Controls::InfoBarSeverity const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Severity(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Severity(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IsIconVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIconVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIconVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IsIconVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsIconVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsIconVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IsClosable() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClosable(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClosable(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::IsClosable(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsClosable(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsClosable(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::ActionButton() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButton(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButton(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ButtonBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::ActionButton(winrt::Microsoft::UI::Xaml::Controls::Primitives::ButtonBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActionButton(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActionButton(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Content(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::ContentTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::ContentTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CloseButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CloseButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CloseButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::CloseButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CloseButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CloseButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Closing(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Closing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Closing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Closed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Closed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBar::Closed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarClosedEventArgs::Reason() const + { + winrt::Microsoft::UI::Xaml::Controls::InfoBarCloseReason value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarClosingEventArgs::Reason() const + { + winrt::Microsoft::UI::Xaml::Controls::InfoBarCloseReason value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarClosingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarClosingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::IsOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::TitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::MessageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MessageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MessageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::SeverityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SeverityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SeverityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::IsIconVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIconVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIconVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::IsClosableProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClosableProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClosableProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::CloseButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::CloseButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::CloseButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::ActionButtonProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::ContentTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarStatics::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarTemplateSettings::IconElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarTemplateSettings::IconElement(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInfoBarTemplateSettingsStatics::IconElementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IInsertionPanel::GetInsertionIndexes(winrt::Windows::Foundation::Point const& position, int32_t& first, int32_t& second) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetInsertionIndexes(impl::bind_in(position), &first, &second)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetInsertionIndexes(impl::bind_in(position), &first, &second)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemClickEventArgs::ClickedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClickedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClickedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransition::Operation() const + { + winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionOperation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Operation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Operation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransition::Triggers() const + { + winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionTriggers value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Triggers(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Triggers(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransition::OldBounds() const + { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldBounds(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldBounds(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransition::NewBounds() const + { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewBounds(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewBounds(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransition::HasStarted() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasStarted(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasStarted(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransition::Start() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Start(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Start(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProgress{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionCompletedEventArgs::Transition() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transition(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionCompletedEventArgs::Element() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProgress::Transition() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transition(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProgress::Element() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProgress::Complete() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProvider::ShouldAnimate(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition const& transition) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShouldAnimate(*(void**)(&transition), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShouldAnimate(*(void**)(&transition), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProvider::QueueTransition(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition const& transition) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->QueueTransition(*(void**)(&transition))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->QueueTransition(*(void**)(&transition))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProvider::TransitionCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TransitionCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TransitionCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProvider::TransitionCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TransitionCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProvider::TransitionCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TransitionCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TransitionCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProviderFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProvider{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProviderOverrides::ShouldAnimateCore(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition const& transition) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShouldAnimateCore(*(void**)(&transition), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShouldAnimateCore(*(void**)(&transition), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemCollectionTransitionProviderOverrides::StartTransitions(param::vector const& transitions) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartTransitions(*(void**)(&transitions))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartTransitions(*(void**)(&transitions))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainer::Child() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainer::Child(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainer::IsSelected() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainer::IsSelected(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSelected(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSelected(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemContainer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::ItemsChanged(winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemsChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemsChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::ItemsChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemsChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::ItemsChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemsChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemsChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::ItemFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ItemFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ItemFromContainer(*(void**)(&container), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::ContainerFromItem(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::IndexFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IndexFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IndexFromContainer(*(void**)(&container), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::ContainerFromIndex(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::GetItemContainerGeneratorForPanel(winrt::Microsoft::UI::Xaml::Controls::Panel const& panel) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemContainerGeneratorForPanel(*(void**)(&panel), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemContainerGeneratorForPanel(*(void**)(&panel), &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemContainerGenerator{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::StartAt(winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition const& position, winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorDirection const& direction, bool allowStartAtRealizedItem) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAt(impl::bind_in(position), static_cast(direction), allowStartAtRealizedItem)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAt(impl::bind_in(position), static_cast(direction), allowStartAtRealizedItem)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::Stop() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::GenerateNext(bool& isNewlyRealized) const + { + void* returnValue{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GenerateNext(&isNewlyRealized, &returnValue)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GenerateNext(&isNewlyRealized, &returnValue)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ returnValue, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::PrepareItemContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PrepareItemContainer(*(void**)(&container))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PrepareItemContainer(*(void**)(&container))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::RemoveAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::Remove(winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition const& position, int32_t count) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Remove(impl::bind_in(position), count)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Remove(impl::bind_in(position), count)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::GeneratorPositionFromIndex(int32_t itemIndex) const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GeneratorPositionFromIndex(itemIndex, put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GeneratorPositionFromIndex(itemIndex, put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::IndexFromGeneratorPosition(winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition const& position) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IndexFromGeneratorPosition(impl::bind_in(position), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IndexFromGeneratorPosition(impl::bind_in(position), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerGenerator::Recycle(winrt::Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition const& position, int32_t count) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Recycle(impl::bind_in(position), count)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Recycle(impl::bind_in(position), count)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerMapping::ItemFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ItemFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ItemFromContainer(*(void**)(&container), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerMapping::ContainerFromItem(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerMapping::IndexFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IndexFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IndexFromContainer(*(void**)(&container), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerMapping::ContainerFromIndex(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerStatics::ChildProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemContainerStatics::IsSelectedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemsPanel() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsPanel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsPanel(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsPanelTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemsPanel(winrt::Microsoft::UI::Xaml::Controls::ItemsPanelTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsPanel(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsPanel(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::DisplayMemberPath() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMemberPath(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMemberPath(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::DisplayMemberPath(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayMemberPath(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayMemberPath(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemsPanelRoot() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsPanelRoot(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsPanelRoot(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Panel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainerStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainerStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerStyleSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerStyleSelector(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainerStyleSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainerStyleSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerGenerator() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerGenerator(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerGenerator(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemContainerGenerator{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::ItemContainerTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainerTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainerTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::GroupStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupStyle(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::GroupStyleSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupStyleSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupStyleSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::GroupStyleSelector(winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupStyleSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupStyleSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::IsGrouping() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGrouping(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGrouping(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControl::GroupHeaderContainerFromItemContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& itemContainer) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GroupHeaderContainerFromItemContainer(*(void**)(&itemContainer), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GroupHeaderContainerFromItemContainer(*(void**)(&itemContainer), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::IsItemItsOwnContainerOverride(winrt::Windows::Foundation::IInspectable const& item) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsItemItsOwnContainerOverride(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IsItemItsOwnContainerOverride(*(void**)(&item), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::GetContainerForItemOverride() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetContainerForItemOverride(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetContainerForItemOverride(&result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::ClearContainerForItemOverride(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearContainerForItemOverride(*(void**)(&element), *(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ClearContainerForItemOverride(*(void**)(&element), *(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::PrepareContainerForItemOverride(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PrepareContainerForItemOverride(*(void**)(&element), *(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PrepareContainerForItemOverride(*(void**)(&element), *(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::OnItemsChanged(winrt::Windows::Foundation::IInspectable const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemsChanged(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemsChanged(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::OnItemContainerStyleChanged(winrt::Microsoft::UI::Xaml::Style const& oldItemContainerStyle, winrt::Microsoft::UI::Xaml::Style const& newItemContainerStyle) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemContainerStyleChanged(*(void**)(&oldItemContainerStyle), *(void**)(&newItemContainerStyle))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemContainerStyleChanged(*(void**)(&oldItemContainerStyle), *(void**)(&newItemContainerStyle))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::OnItemContainerStyleSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& oldItemContainerStyleSelector, winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& newItemContainerStyleSelector) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemContainerStyleSelectorChanged(*(void**)(&oldItemContainerStyleSelector), *(void**)(&newItemContainerStyleSelector))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemContainerStyleSelectorChanged(*(void**)(&oldItemContainerStyleSelector), *(void**)(&newItemContainerStyleSelector))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::OnItemTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldItemTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newItemTemplate) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemTemplateChanged(*(void**)(&oldItemTemplate), *(void**)(&newItemTemplate))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemTemplateChanged(*(void**)(&oldItemTemplate), *(void**)(&newItemTemplate))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::OnItemTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldItemTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newItemTemplateSelector) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemTemplateSelectorChanged(*(void**)(&oldItemTemplateSelector), *(void**)(&newItemTemplateSelector))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemTemplateSelectorChanged(*(void**)(&oldItemTemplateSelector), *(void**)(&newItemTemplateSelector))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlOverrides::OnGroupStyleSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& oldGroupStyleSelector, winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& newGroupStyleSelector) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnGroupStyleSelectorChanged(*(void**)(&oldGroupStyleSelector), *(void**)(&newGroupStyleSelector))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnGroupStyleSelectorChanged(*(void**)(&oldGroupStyleSelector), *(void**)(&newGroupStyleSelector))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemsPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::DisplayMemberPathProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMemberPathProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMemberPathProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemContainerStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemContainerStyleSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemContainerTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::GroupStyleSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupStyleSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupStyleSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::IsGroupingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroupingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroupingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::GetItemsOwner(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemsOwner(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemsOwner(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsControl{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsControlStatics::ItemsControlFromItemContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ItemsControlFromItemContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ItemsControlFromItemContainer(*(void**)(&container), &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsControl{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPickedEventArgs::AddedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPickedEventArgs::RemovedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RemovedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RemovedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::HeaderTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::HeaderTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::Footer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Footer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Footer(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::Footer(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Footer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Footer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::FooterTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::FooterTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FooterTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FooterTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::FooterTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::FooterTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FooterTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FooterTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenter::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::HeaderTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::FooterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::FooterTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::FooterTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsPresenterStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ItemsSourceView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceView(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsSourceView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ItemTemplate(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::Layout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Layout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Layout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Layout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::Layout(winrt::Microsoft::UI::Xaml::Controls::Layout const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Layout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Layout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::HorizontalCacheLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalCacheLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalCacheLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::HorizontalCacheLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalCacheLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalCacheLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::VerticalCacheLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalCacheLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalCacheLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::VerticalCacheLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalCacheLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalCacheLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::Background() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::GetElementIndex(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetElementIndex(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetElementIndex(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::TryGetElement(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetElement(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryGetElement(index, &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::GetOrCreateElement(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOrCreateElement(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetOrCreateElement(index, &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementPrepared(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ElementPrepared(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ElementPrepared(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementPrepared(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ElementPrepared(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementPrepared(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ElementPrepared(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ElementPrepared(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementClearing(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ElementClearing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ElementClearing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementClearing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ElementClearing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementClearing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ElementClearing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ElementClearing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementIndexChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ElementIndexChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ElementIndexChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementIndexChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ElementIndexChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater::ElementIndexChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ElementIndexChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ElementIndexChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater2::ItemTransitionProvider() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTransitionProvider(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTransitionProvider(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProvider{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeater2::ItemTransitionProvider(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProvider const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTransitionProvider(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTransitionProvider(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterElementClearingEventArgs::Element() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterElementIndexChangedEventArgs::Element() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterElementIndexChangedEventArgs::OldIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterElementIndexChangedEventArgs::NewIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterElementPreparedEventArgs::Element() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterElementPreparedEventArgs::Index() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Index(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Index(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsRepeater{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::ScrollViewer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollViewer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollViewer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollViewer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::ScrollViewer(winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScrollViewer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScrollViewer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::CurrentAnchor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentAnchor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentAnchor(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::HorizontalAnchorRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::HorizontalAnchorRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::VerticalAnchorRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterScrollHost::VerticalAnchorRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics::LayoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics::HorizontalCacheLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalCacheLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalCacheLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics::VerticalCacheLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalCacheLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalCacheLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics::BackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsRepeaterStatics2::ItemTransitionProviderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTransitionProviderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTransitionProviderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceView::Count() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Count(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceView::GetAt(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAt(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAt(index, &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceView::HasKeyIndexMapping() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasKeyIndexMapping(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasKeyIndexMapping(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceView::KeyFromIndex(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->KeyFromIndex(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->KeyFromIndex(index, &result)); + } + return hstring{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceView::IndexFromKey(param::hstring const& key) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IndexFromKey(*(void**)(&key), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IndexFromKey(*(void**)(&key), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceView::IndexOf(winrt::Windows::Foundation::IInspectable const& item) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IndexOf(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IndexOf(*(void**)(&item), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsSourceViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& source, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&source), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&source), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsSourceView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::GroupPadding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupPadding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupPadding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::GroupPadding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupPadding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupPadding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::FirstCacheIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstCacheIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstCacheIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::FirstVisibleIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstVisibleIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstVisibleIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::LastVisibleIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LastVisibleIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LastVisibleIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::LastCacheIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LastCacheIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LastCacheIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::ScrollingDirection() const + { + winrt::Microsoft::UI::Xaml::Controls::PanelScrollingDirection value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollingDirection(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollingDirection(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::GroupHeaderPlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::GroupHeaderPlacement(winrt::Microsoft::UI::Xaml::Controls::Primitives::GroupHeaderPlacement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupHeaderPlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupHeaderPlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::ItemsUpdatingScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ItemsUpdatingScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsUpdatingScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsUpdatingScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::ItemsUpdatingScrollMode(winrt::Microsoft::UI::Xaml::Controls::ItemsUpdatingScrollMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsUpdatingScrollMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsUpdatingScrollMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::CacheLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::CacheLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CacheLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CacheLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::AreStickyGroupHeadersEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanel::AreStickyGroupHeadersEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreStickyGroupHeadersEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreStickyGroupHeadersEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanelStatics::GroupPaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupPaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanelStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanelStatics::GroupHeaderPlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanelStatics::CacheLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsStackPanelStatics::AreStickyGroupHeadersEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ScrollView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollView(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::VerticalScrollController() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollController(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollController(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::VerticalScrollController(winrt::Microsoft::UI::Xaml::Controls::Primitives::IScrollController const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollController(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollController(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::IElementFactory{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemTemplate(winrt::Microsoft::UI::Xaml::IElementFactory const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::Layout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Layout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Layout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Layout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::Layout(winrt::Microsoft::UI::Xaml::Controls::Layout const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Layout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Layout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::IsItemInvokedEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsItemInvokedEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsItemInvokedEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::IsItemInvokedEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsItemInvokedEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsItemInvokedEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectionMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ItemsViewSelectionMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectionMode(winrt::Microsoft::UI::Xaml::Controls::ItemsViewSelectionMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemTransitionProvider() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTransitionProvider(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTransitionProvider(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProvider{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemTransitionProvider(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProvider const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTransitionProvider(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTransitionProvider(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::CurrentItemIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentItemIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentItemIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::TryGetItemIndex(double horizontalViewportRatio, double verticalViewportRatio, int32_t& index) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetItemIndex(horizontalViewportRatio, verticalViewportRatio, &index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryGetItemIndex(horizontalViewportRatio, verticalViewportRatio, &index, &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::StartBringItemIntoView(int32_t index, winrt::Microsoft::UI::Xaml::BringIntoViewOptions const& options) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartBringItemIntoView(index, *(void**)(&options))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartBringItemIntoView(index, *(void**)(&options))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::Select(int32_t itemIndex) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Select(itemIndex)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Select(itemIndex)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::Deselect(int32_t itemIndex) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Deselect(itemIndex)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Deselect(itemIndex)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::IsSelected(int32_t itemIndex) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsSelected(itemIndex, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IsSelected(itemIndex, &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::DeselectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DeselectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->DeselectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::InvertSelection() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvertSelection()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InvertSelection()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemInvoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemInvoked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemInvoked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemInvoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemInvoked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::ItemInvoked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemInvoked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemInvoked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsView::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewItemInvokedEventArgs::InvokedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InvokedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InvokedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::IsItemInvokedEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsItemInvokedEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsItemInvokedEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::LayoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::SelectionModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::ItemTransitionProviderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTransitionProviderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTransitionProviderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::CurrentItemIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentItemIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentItemIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::ScrollViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsViewStatics::VerticalScrollControllerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollControllerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollControllerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::GroupPadding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupPadding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupPadding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::GroupPadding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupPadding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupPadding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::MaximumRowsOrColumns() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::MaximumRowsOrColumns(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::ItemWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::ItemWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::ItemHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::ItemHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::FirstCacheIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstCacheIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstCacheIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::FirstVisibleIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstVisibleIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstVisibleIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::LastVisibleIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LastVisibleIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LastVisibleIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::LastCacheIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LastCacheIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LastCacheIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::ScrollingDirection() const + { + winrt::Microsoft::UI::Xaml::Controls::PanelScrollingDirection value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollingDirection(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollingDirection(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::GroupHeaderPlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::GroupHeaderPlacement value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::GroupHeaderPlacement(winrt::Microsoft::UI::Xaml::Controls::Primitives::GroupHeaderPlacement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupHeaderPlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupHeaderPlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::CacheLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::CacheLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CacheLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CacheLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::AreStickyGroupHeadersEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGrid::AreStickyGroupHeadersEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreStickyGroupHeadersEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreStickyGroupHeadersEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemsWrapGrid{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::GroupPaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupPaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::MaximumRowsOrColumnsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::ItemWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::ItemHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::GroupHeaderPlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupHeaderPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::CacheLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IItemsWrapGridStatics::AreStickyGroupHeadersEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreStickyGroupHeadersEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IKeyIndexMapping::KeyFromIndex(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->KeyFromIndex(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->KeyFromIndex(index, &result)); + } + return hstring{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IKeyIndexMapping::IndexFromKey(param::hstring const& key) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IndexFromKey(*(void**)(&key), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IndexFromKey(*(void**)(&key), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::InitializeForContext(winrt::Microsoft::UI::Xaml::Controls::LayoutContext const& context) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InitializeForContext(*(void**)(&context))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InitializeForContext(*(void**)(&context))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::UninitializeForContext(winrt::Microsoft::UI::Xaml::Controls::LayoutContext const& context) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UninitializeForContext(*(void**)(&context))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->UninitializeForContext(*(void**)(&context))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::Measure(winrt::Microsoft::UI::Xaml::Controls::LayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) const + { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Measure(*(void**)(&context), impl::bind_in(availableSize), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Measure(*(void**)(&context), impl::bind_in(availableSize), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::Arrange(winrt::Microsoft::UI::Xaml::Controls::LayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) const + { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Arrange(*(void**)(&context), impl::bind_in(finalSize), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Arrange(*(void**)(&context), impl::bind_in(finalSize), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::MeasureInvalidated(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_MeasureInvalidated(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_MeasureInvalidated(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::MeasureInvalidated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, MeasureInvalidated(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::MeasureInvalidated(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_MeasureInvalidated(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_MeasureInvalidated(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::ArrangeInvalidated(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ArrangeInvalidated(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ArrangeInvalidated(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::ArrangeInvalidated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ArrangeInvalidated(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout::ArrangeInvalidated(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ArrangeInvalidated(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ArrangeInvalidated(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayout2::IndexBasedLayoutOrientation() const + { + winrt::Microsoft::UI::Xaml::Controls::IndexBasedLayoutOrientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IndexBasedLayoutOrientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IndexBasedLayoutOrientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutContext::LayoutState() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutState(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutState(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutContext::LayoutState(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LayoutState(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LayoutState(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutContextOverrides::LayoutStateCore() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutStateCore(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutStateCore(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutContextOverrides::LayoutStateCore(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LayoutStateCore(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LayoutStateCore(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutOverrides::CreateDefaultItemTransitionProvider() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateDefaultItemTransitionProvider(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateDefaultItemTransitionProvider(&result)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransitionProvider{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutProtected::InvalidateMeasure() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateMeasure()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateMeasure()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutProtected::InvalidateArrange() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateArrange()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateArrange()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILayoutProtected2::SetIndexBasedLayoutOrientation(winrt::Microsoft::UI::Xaml::Controls::IndexBasedLayoutOrientation const& orientation) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIndexBasedLayoutOrientation(static_cast(orientation))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIndexBasedLayoutOrientation(static_cast(orientation))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsInfoRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemsInfoRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemsInfoRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsInfoRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemsInfoRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsInfoRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemsInfoRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemsInfoRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsUnlocked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemsUnlocked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemsUnlocked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsUnlocked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemsUnlocked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsUnlocked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemsUnlocked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemsUnlocked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsJustification() const + { + winrt::Microsoft::UI::Xaml::Controls::LinedFlowLayoutItemsJustification value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsJustification(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsJustification(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsJustification(winrt::Microsoft::UI::Xaml::Controls::LinedFlowLayoutItemsJustification const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsJustification(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsJustification(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsStretch() const + { + winrt::Microsoft::UI::Xaml::Controls::LinedFlowLayoutItemsStretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsStretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsStretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ItemsStretch(winrt::Microsoft::UI::Xaml::Controls::LinedFlowLayoutItemsStretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsStretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsStretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::MinItemSpacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinItemSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinItemSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::MinItemSpacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinItemSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinItemSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::LineSpacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::LineSpacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::LineHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::LineHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::ActualLineHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualLineHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualLineHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::RequestedRangeStartIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedRangeStartIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedRangeStartIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::RequestedRangeLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedRangeLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedRangeLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::InvalidateItemsInfo() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateItemsInfo()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateItemsInfo()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayout::LockItemToLine(int32_t itemIndex) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LockItemToLine(itemIndex, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LockItemToLine(itemIndex, &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::LinedFlowLayout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemCollectionTransitionProviderFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::LinedFlowLayoutItemCollectionTransitionProvider{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::ItemsRangeStartIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsRangeStartIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsRangeStartIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::ItemsRangeStartIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsRangeStartIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsRangeStartIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::ItemsRangeRequestedLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsRangeRequestedLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsRangeRequestedLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::MinWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::MinWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::MaxWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::MaxWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::SetDesiredAspectRatios(array_view values) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDesiredAspectRatios(values.size(), get_abi(values))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDesiredAspectRatios(values.size(), get_abi(values))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::SetMinWidths(array_view values) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMinWidths(values.size(), get_abi(values))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetMinWidths(values.size(), get_abi(values))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutItemsInfoRequestedEventArgs::SetMaxWidths(array_view values) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMaxWidths(values.size(), get_abi(values))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetMaxWidths(values.size(), get_abi(values))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutStatics::ItemsJustificationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsJustificationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsJustificationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutStatics::ItemsStretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsStretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutStatics::MinItemSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinItemSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinItemSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutStatics::LineSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutStatics::LineHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ILinedFlowLayoutStatics::ActualLineHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualLineHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualLineHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::SelectedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::SelectionMode() const + { + winrt::Microsoft::UI::Xaml::Controls::SelectionMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::SelectionMode(winrt::Microsoft::UI::Xaml::Controls::SelectionMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::SingleSelectionFollowsFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::SingleSelectionFollowsFocus(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SingleSelectionFollowsFocus(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SingleSelectionFollowsFocus(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::ScrollIntoView(winrt::Windows::Foundation::IInspectable const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollIntoView(*(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollIntoView(*(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBox::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBoxFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBoxItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListBoxItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBoxStatics::SelectionModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListBoxStatics::SingleSelectionFollowsFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::DisplayMemberPath() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMemberPath(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMemberPath(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::DisplayMemberPath(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayMemberPath(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayMemberPath(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectionMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ListPickerFlyoutSelectionMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectionMode(winrt::Microsoft::UI::Xaml::Controls::ListPickerFlyoutSelectionMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedValue() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedValue(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedValue(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedValue(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedValuePath() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValuePath(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedValuePath(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedValuePath(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedValuePath(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedValuePath(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::SelectedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemsPicked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemsPicked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemsPicked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemsPicked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemsPicked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ItemsPicked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemsPicked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemsPicked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyout::ShowAtAsync(winrt::Microsoft::UI::Xaml::FrameworkElement const& target) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::DisplayMemberPathProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMemberPathProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMemberPathProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::SelectionModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::SelectedIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::SelectedValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListPickerFlyoutStatics::SelectedValuePathProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedValuePathProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedValuePathProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SelectedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SelectionMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ListViewSelectionMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SelectionMode(winrt::Microsoft::UI::Xaml::Controls::ListViewSelectionMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsSwipeEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSwipeEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSwipeEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsSwipeEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSwipeEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSwipeEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::CanDragItems() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragItems(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::CanDragItems(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanDragItems(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanDragItems(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::CanReorderItems() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanReorderItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanReorderItems(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::CanReorderItems(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanReorderItems(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanReorderItems(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsItemClickEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsItemClickEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsItemClickEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsItemClickEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsItemClickEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsItemClickEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DataFetchSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataFetchSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataFetchSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DataFetchSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DataFetchSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DataFetchSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IncrementalLoadingThreshold() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IncrementalLoadingThreshold(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IncrementalLoadingThreshold(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IncrementalLoadingThreshold(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IncrementalLoadingThreshold(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IncrementalLoadingThreshold(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IncrementalLoadingTrigger() const + { + winrt::Microsoft::UI::Xaml::Controls::IncrementalLoadingTrigger value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IncrementalLoadingTrigger(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IncrementalLoadingTrigger(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IncrementalLoadingTrigger(winrt::Microsoft::UI::Xaml::Controls::IncrementalLoadingTrigger const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IncrementalLoadingTrigger(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IncrementalLoadingTrigger(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ShowsScrollingPlaceholders() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowsScrollingPlaceholders(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowsScrollingPlaceholders(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ShowsScrollingPlaceholders(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowsScrollingPlaceholders(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowsScrollingPlaceholders(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ReorderMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ListViewReorderMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReorderMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReorderMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ReorderMode(winrt::Microsoft::UI::Xaml::Controls::ListViewReorderMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ReorderMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ReorderMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SelectedRanges() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedRanges(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedRanges(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsMultiSelectCheckBoxEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMultiSelectCheckBoxEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMultiSelectCheckBoxEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsMultiSelectCheckBoxEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsMultiSelectCheckBoxEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsMultiSelectCheckBoxEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SingleSelectionFollowsFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SingleSelectionFollowsFocus(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SingleSelectionFollowsFocus(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SingleSelectionFollowsFocus(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ItemClick(winrt::Microsoft::UI::Xaml::Controls::ItemClickEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ItemClick(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::ItemClickEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ItemClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DragItemsStarting(winrt::Microsoft::UI::Xaml::Controls::DragItemsStartingEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DragItemsStarting(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DragItemsStarting(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DragItemsStarting(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::DragItemsStartingEventHandler const& handler) const + { + return impl::make_event_revoker(this, DragItemsStarting(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DragItemsStarting(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragItemsStarting(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DragItemsStarting(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DragItemsCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DragItemsCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DragItemsCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DragItemsCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DragItemsCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DragItemsCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragItemsCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DragItemsCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ContainerContentChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContainerContentChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContainerContentChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ContainerContentChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ContainerContentChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ContainerContentChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContainerContentChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ContainerContentChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ChoosingItemContainer(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ChoosingItemContainer(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ChoosingItemContainer(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ChoosingItemContainer(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ChoosingItemContainer(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ChoosingItemContainer(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ChoosingItemContainer(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ChoosingItemContainer(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ChoosingGroupHeaderContainer(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ChoosingGroupHeaderContainer(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ChoosingGroupHeaderContainer(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ChoosingGroupHeaderContainer(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ChoosingGroupHeaderContainer(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ChoosingGroupHeaderContainer(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ChoosingGroupHeaderContainer(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ChoosingGroupHeaderContainer(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ScrollIntoView(winrt::Windows::Foundation::IInspectable const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollIntoView(*(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollIntoView(*(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::LoadMoreItemsAsync() const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadMoreItemsAsync(&operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadMoreItemsAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::ScrollIntoView(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::Controls::ScrollIntoViewAlignment const& alignment) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollIntoViewWithAlignment(*(void**)(&item), static_cast(alignment))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollIntoViewWithAlignment(*(void**)(&item), static_cast(alignment))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SetDesiredContainerUpdateDuration(winrt::Windows::Foundation::TimeSpan const& duration) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDesiredContainerUpdateDuration(impl::bind_in(duration))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDesiredContainerUpdateDuration(impl::bind_in(duration))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::SelectRange(winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const& itemIndexRange) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectRange(*(void**)(&itemIndexRange))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectRange(*(void**)(&itemIndexRange))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::DeselectRange(winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const& itemIndexRange) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DeselectRange(*(void**)(&itemIndexRange))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->DeselectRange(*(void**)(&itemIndexRange))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::IsDragSource() const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsDragSource(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->IsDragSource(&result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::TryStartConnectedAnimationAsync(winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation const& animation, winrt::Windows::Foundation::IInspectable const& item, param::hstring const& elementName) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryStartConnectedAnimationAsync(*(void**)(&animation), *(void**)(&item), *(void**)(&elementName), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryStartConnectedAnimationAsync(*(void**)(&animation), *(void**)(&item), *(void**)(&elementName), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::PrepareConnectedAnimation(param::hstring const& key, winrt::Windows::Foundation::IInspectable const& item, param::hstring const& elementName) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PrepareConnectedAnimation(*(void**)(&key), *(void**)(&item), *(void**)(&elementName), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PrepareConnectedAnimation(*(void**)(&key), *(void**)(&item), *(void**)(&elementName), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::HeaderTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::HeaderTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::Footer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Footer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Footer(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::Footer(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Footer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Footer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::FooterTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::FooterTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FooterTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FooterTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::FooterTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBase::FooterTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FooterTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FooterTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListViewBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::SelectionModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IsSwipeEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSwipeEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSwipeEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::CanDragItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::CanReorderItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanReorderItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanReorderItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IsItemClickEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsItemClickEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsItemClickEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::DataFetchSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataFetchSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataFetchSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IncrementalLoadingThresholdProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IncrementalLoadingThresholdProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IncrementalLoadingThresholdProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IncrementalLoadingTriggerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IncrementalLoadingTriggerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IncrementalLoadingTriggerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::ShowsScrollingPlaceholdersProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowsScrollingPlaceholdersProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowsScrollingPlaceholdersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::ReorderModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReorderModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReorderModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IsMultiSelectCheckBoxEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMultiSelectCheckBoxEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMultiSelectCheckBoxEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::SingleSelectionFollowsFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::SemanticZoomOwnerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SemanticZoomOwnerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SemanticZoomOwnerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IsActiveViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActiveViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActiveViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::IsZoomedInViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomedInViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomedInViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::HeaderTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::FooterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::FooterTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewBaseStatics::FooterTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewHeaderItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListViewHeaderItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewItem::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ListViewItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ListViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewPersistenceHelperStatics::GetRelativeScrollPosition(winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& listViewBase, winrt::Microsoft::UI::Xaml::Controls::ListViewItemToKeyHandler const& itemToKeyHandler) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRelativeScrollPosition(*(void**)(&listViewBase), *(void**)(&itemToKeyHandler), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRelativeScrollPosition(*(void**)(&listViewBase), *(void**)(&itemToKeyHandler), &result)); + } + return hstring{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IListViewPersistenceHelperStatics::SetRelativeScrollPositionAsync(winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& listViewBase, param::hstring const& relativeScrollPosition, winrt::Microsoft::UI::Xaml::Controls::ListViewKeyToItemHandler const& keyToItemHandler) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRelativeScrollPositionAsync(*(void**)(&listViewBase), *(void**)(&relativeScrollPosition), *(void**)(&keyToItemHandler), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetRelativeScrollPositionAsync(*(void**)(&listViewBase), *(void**)(&relativeScrollPosition), *(void**)(&keyToItemHandler), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapServiceToken() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MapServiceToken(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MapServiceToken(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapServiceToken(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MapServiceToken(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MapServiceToken(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::Center() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Center(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Center(&value)); + } + return winrt::Windows::Devices::Geolocation::Geopoint{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::Center(winrt::Windows::Devices::Geolocation::Geopoint const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Center(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Center(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::Layers() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Layers(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Layers(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::Layers(param::vector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Layers(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Layers(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::ZoomLevel() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomLevel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomLevel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::ZoomLevel(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomLevel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomLevel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::InteractiveControlsVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InteractiveControlsVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InteractiveControlsVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::InteractiveControlsVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InteractiveControlsVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InteractiveControlsVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapElementClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_MapElementClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_MapElementClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapElementClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, MapElementClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapElementClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_MapElementClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_MapElementClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapServiceErrorOccurred(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_MapServiceErrorOccurred(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_MapServiceErrorOccurred(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapServiceErrorOccurred(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, MapServiceErrorOccurred(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControl::MapServiceErrorOccurred(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_MapServiceErrorOccurred(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_MapServiceErrorOccurred(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MapControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlMapServiceErrorOccurredEventArgs::DiagnosticMessage() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DiagnosticMessage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DiagnosticMessage(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlStatics::LayersProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayersProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlStatics::MapServiceTokenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MapServiceTokenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MapServiceTokenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlStatics::CenterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlStatics::ZoomLevelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomLevelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomLevelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapControlStatics::InteractiveControlsVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InteractiveControlsVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InteractiveControlsVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementClickEventArgs::Location() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Location(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Location(&value)); + } + return winrt::Windows::Devices::Geolocation::Geopoint{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementClickEventArgs::Element() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MapElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayer::MapElements() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MapElements(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MapElements(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayer::MapElements(param::vector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MapElements(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MapElements(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayer::MapElementClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_MapElementClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_MapElementClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayer::MapElementClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, MapElementClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayer::MapElementClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_MapElementClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_MapElementClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MapElementsLayer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapElementsLayerStatics::MapElementsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MapElementsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MapElementsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapIcon::Location() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Location(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Location(&value)); + } + return winrt::Windows::Devices::Geolocation::Geopoint{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapIcon::Location(winrt::Windows::Devices::Geolocation::Geopoint const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Location(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Location(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapIconFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MapIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMapIconStatics::LocationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Windows::Media::Playback::IMediaPlaybackSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::Source(winrt::Windows::Media::Playback::IMediaPlaybackSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::TransportControls() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransportControls(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransportControls(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MediaTransportControls{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::TransportControls(winrt::Microsoft::UI::Xaml::Controls::MediaTransportControls const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransportControls(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransportControls(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::AreTransportControlsEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreTransportControlsEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreTransportControlsEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::AreTransportControlsEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreTransportControlsEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreTransportControlsEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::PosterSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PosterSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PosterSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::PosterSource(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PosterSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PosterSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::Stretch() const + { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::Stretch(winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::AutoPlay() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoPlay(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoPlay(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::AutoPlay(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoPlay(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoPlay(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::IsFullWindow() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFullWindow(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFullWindow(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::IsFullWindow(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFullWindow(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFullWindow(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::MediaPlayer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MediaPlayer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MediaPlayer(&value)); + } + return winrt::Windows::Media::Playback::MediaPlayer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElement::SetMediaPlayer(winrt::Windows::Media::Playback::MediaPlayer const& mediaPlayer) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetMediaPlayer(*(void**)(&mediaPlayer))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetMediaPlayer(*(void**)(&mediaPlayer))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MediaPlayerElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::AreTransportControlsEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreTransportControlsEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreTransportControlsEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::PosterSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PosterSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PosterSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::StretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::AutoPlayProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoPlayProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoPlayProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::IsFullWindowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFullWindowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFullWindowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerElementStatics::MediaPlayerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MediaPlayerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MediaPlayerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenter::MediaPlayer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MediaPlayer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MediaPlayer(&value)); + } + return winrt::Windows::Media::Playback::MediaPlayer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenter::MediaPlayer(winrt::Windows::Media::Playback::MediaPlayer const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MediaPlayer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MediaPlayer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenter::Stretch() const + { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenter::Stretch(winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenter::IsFullWindow() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFullWindow(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFullWindow(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenter::IsFullWindow(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFullWindow(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFullWindow(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MediaPlayerPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenterStatics::MediaPlayerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MediaPlayerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MediaPlayerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenterStatics::StretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaPlayerPresenterStatics::IsFullWindowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFullWindowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFullWindowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsZoomButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsZoomButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsZoomEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsZoomEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastForwardButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastForwardButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastForwardButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastForwardButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFastForwardButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFastForwardButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastForwardEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastForwardEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastForwardEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastForwardEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFastForwardEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFastForwardEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastRewindButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastRewindButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastRewindButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastRewindButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFastRewindButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFastRewindButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastRewindEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastRewindEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastRewindEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsFastRewindEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFastRewindEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFastRewindEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsStopButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStopButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStopButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsStopButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsStopButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsStopButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsStopEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStopEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStopEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsStopEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsStopEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsStopEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsVolumeButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVolumeButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVolumeButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsVolumeButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsVolumeButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsVolumeButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsVolumeEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVolumeEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVolumeEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsVolumeEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsVolumeEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsVolumeEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsPlaybackRateButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlaybackRateButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlaybackRateButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsPlaybackRateButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPlaybackRateButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPlaybackRateButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsPlaybackRateEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlaybackRateEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlaybackRateEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsPlaybackRateEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPlaybackRateEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPlaybackRateEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSeekBarVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSeekBarVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSeekBarVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSeekBarVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSeekBarVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSeekBarVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSeekEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSeekEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSeekEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSeekEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSeekEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSeekEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsCompact() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompact(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompact(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsCompact(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsCompact(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsCompact(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipForwardButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipForwardButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipForwardButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipForwardButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSkipForwardButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSkipForwardButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipForwardEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipForwardEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipForwardEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipForwardEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSkipForwardEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSkipForwardEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipBackwardButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipBackwardButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipBackwardButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipBackwardButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSkipBackwardButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSkipBackwardButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipBackwardEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipBackwardEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipBackwardEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsSkipBackwardEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSkipBackwardEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSkipBackwardEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsNextTrackButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsNextTrackButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsNextTrackButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsNextTrackButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsNextTrackButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsNextTrackButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsPreviousTrackButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPreviousTrackButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPreviousTrackButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsPreviousTrackButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPreviousTrackButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPreviousTrackButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::FastPlayFallbackBehaviour() const + { + winrt::Microsoft::UI::Xaml::Media::FastPlayFallbackBehaviour value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FastPlayFallbackBehaviour(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FastPlayFallbackBehaviour(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::FastPlayFallbackBehaviour(winrt::Microsoft::UI::Xaml::Media::FastPlayFallbackBehaviour const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FastPlayFallbackBehaviour(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FastPlayFallbackBehaviour(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::ShowAndHideAutomatically() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowAndHideAutomatically(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowAndHideAutomatically(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::ShowAndHideAutomatically(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowAndHideAutomatically(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowAndHideAutomatically(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsRepeatEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRepeatEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRepeatEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsRepeatEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsRepeatEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsRepeatEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsRepeatButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRepeatButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRepeatButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::IsRepeatButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsRepeatButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsRepeatButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::ThumbnailRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ThumbnailRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ThumbnailRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::ThumbnailRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ThumbnailRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::ThumbnailRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ThumbnailRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ThumbnailRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::Show() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Show()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Show()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControls::Hide() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Hide()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Hide()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MediaTransportControls{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsHelperStatics::DropoutOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropoutOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropoutOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsHelperStatics::GetDropoutOrder(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDropoutOrder(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDropoutOrder(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IReference{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsHelperStatics::SetDropoutOrder(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IReference const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDropoutOrder(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDropoutOrder(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsZoomButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsZoomEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsFastForwardButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastForwardButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastForwardButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsFastForwardEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastForwardEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastForwardEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsFastRewindButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastRewindButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastRewindButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsFastRewindEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFastRewindEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFastRewindEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsStopButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStopButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStopButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsStopEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStopEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStopEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsVolumeButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVolumeButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVolumeButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsVolumeEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVolumeEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVolumeEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsPlaybackRateButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlaybackRateButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlaybackRateButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsPlaybackRateEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlaybackRateEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlaybackRateEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsSeekBarVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSeekBarVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSeekBarVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsSeekEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSeekEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSeekEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsCompactProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCompactProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsSkipForwardButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipForwardButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipForwardButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsSkipForwardEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipForwardEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipForwardEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsSkipBackwardButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipBackwardButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipBackwardButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsSkipBackwardEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSkipBackwardEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSkipBackwardEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsNextTrackButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsNextTrackButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsNextTrackButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsPreviousTrackButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPreviousTrackButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPreviousTrackButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::FastPlayFallbackBehaviourProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FastPlayFallbackBehaviourProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FastPlayFallbackBehaviourProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::ShowAndHideAutomaticallyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowAndHideAutomaticallyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowAndHideAutomaticallyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsRepeatEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRepeatEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRepeatEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMediaTransportControlsStatics::IsRepeatButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRepeatButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRepeatButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBar::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItem::Title() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItem::Title(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItem::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuBarItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItemFlyoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuBarItemFlyout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItemStatics::TitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarItemStatics::ItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuBarStatics::ItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyout::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyout::MenuFlyoutPresenterStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuFlyoutPresenterStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuFlyoutPresenterStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyout::MenuFlyoutPresenterStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuFlyoutPresenterStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuFlyoutPresenterStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyout::ShowAt(winrt::Microsoft::UI::Xaml::UIElement const& targetElement, winrt::Windows::Foundation::Point const& point) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAt(*(void**)(&targetElement), impl::bind_in(point))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAt(*(void**)(&targetElement), impl::bind_in(point))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuFlyout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Command() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Command(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::CommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::CommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Icon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::KeyboardAcceleratorTextOverride() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverride(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverride(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::KeyboardAcceleratorTextOverride(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorTextOverride(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorTextOverride(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::MenuFlyoutItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Click(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Click(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Click(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItem::Click(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItemStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItemStatics::CommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItemStatics::CommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItemStatics::IconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutItemStatics::KeyboardAcceleratorTextOverrideProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverrideProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextOverrideProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenter::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::MenuFlyoutPresenterTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenter::IsDefaultShadowEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenter::IsDefaultShadowEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenter2::SystemBackdrop() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenter2::SystemBackdrop(winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenterStatics::IsDefaultShadowEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutPresenterStatics2::SystemBackdropProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdropProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSeparatorFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutSeparator{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutStatics::MenuFlyoutPresenterStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuFlyoutPresenterStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuFlyoutPresenterStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItem::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItem::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItem::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItem::Icon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItem::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItemStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IMenuFlyoutSubItemStatics::IconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigate::Navigate(winrt::Windows::UI::Xaml::Interop::TypeName const& sourcePageType) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Navigate(impl::bind_in(sourcePageType), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Navigate(impl::bind_in(sourcePageType), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsPaneOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsPaneOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPaneOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPaneOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::CompactModeThresholdWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactModeThresholdWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactModeThresholdWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::CompactModeThresholdWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CompactModeThresholdWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CompactModeThresholdWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::ExpandedModeThresholdWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedModeThresholdWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedModeThresholdWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::ExpandedModeThresholdWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExpandedModeThresholdWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExpandedModeThresholdWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::FooterMenuItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterMenuItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterMenuItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::FooterMenuItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterMenuItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterMenuItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::FooterMenuItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FooterMenuItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FooterMenuItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::PaneFooter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneFooter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneFooter(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::PaneFooter(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneFooter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneFooter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::DisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsSettingsVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSettingsVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSettingsVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsSettingsVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSettingsVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSettingsVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsPaneToggleButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsPaneToggleButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPaneToggleButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPaneToggleButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::AlwaysShowHeader() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlwaysShowHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlwaysShowHeader(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::AlwaysShowHeader(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlwaysShowHeader(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlwaysShowHeader(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::CompactPaneLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::CompactPaneLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CompactPaneLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CompactPaneLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::OpenPaneLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::OpenPaneLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenPaneLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenPaneLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::PaneToggleButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneToggleButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneToggleButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::PaneToggleButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneToggleButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneToggleButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::SettingsItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SettingsItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SettingsItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::AutoSuggestBox() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoSuggestBox(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoSuggestBox(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::AutoSuggestBox(winrt::Microsoft::UI::Xaml::Controls::AutoSuggestBox const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoSuggestBox(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoSuggestBox(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuItemTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuItemTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemContainerStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemContainerStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuItemContainerStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuItemContainerStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemContainerStyleSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyleSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyleSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemContainerStyleSelector(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuItemContainerStyleSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuItemContainerStyleSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::MenuItemFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MenuItemFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MenuItemFromContainer(*(void**)(&container), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::ContainerFromMenuItem(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromMenuItem(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromMenuItem(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::SelectionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::SelectionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::ItemInvoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemInvoked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemInvoked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::ItemInvoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemInvoked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::ItemInvoked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemInvoked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemInvoked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::DisplayModeChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DisplayModeChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DisplayModeChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::DisplayModeChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DisplayModeChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::DisplayModeChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DisplayModeChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DisplayModeChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsTitleBarAutoPaddingEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTitleBarAutoPaddingEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTitleBarAutoPaddingEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView::IsTitleBarAutoPaddingEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTitleBarAutoPaddingEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTitleBarAutoPaddingEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::IsBackButtonVisible() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewBackButtonVisible value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackButtonVisible(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackButtonVisible(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::IsBackButtonVisible(winrt::Microsoft::UI::Xaml::Controls::NavigationViewBackButtonVisible const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsBackButtonVisible(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsBackButtonVisible(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::IsBackEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::IsBackEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsBackEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsBackEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneTitle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneTitle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneTitle(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneTitle(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneTitle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneTitle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::BackRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BackRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BackRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::BackRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, BackRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::BackRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_BackRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_BackRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneClosed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneClosed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneClosed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneClosed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneClosed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneClosed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneClosed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneClosed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneClosing(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneClosing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneClosing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneClosing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneClosing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneClosing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneClosing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneClosing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneOpened(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneOpened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneOpened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneOpened(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneOpened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneOpened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneOpened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneOpened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneOpening(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneOpening(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneDisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewPaneDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneDisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneDisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneDisplayMode(winrt::Microsoft::UI::Xaml::Controls::NavigationViewPaneDisplayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneDisplayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneDisplayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneHeader(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneHeader(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneCustomContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneCustomContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneCustomContent(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::PaneCustomContent(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneCustomContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneCustomContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::ContentOverlay() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentOverlay(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentOverlay(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::ContentOverlay(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentOverlay(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentOverlay(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::IsPaneVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::IsPaneVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPaneVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPaneVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::SelectionFollowsFocus() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewSelectionFollowsFocus value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFollowsFocus(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFollowsFocus(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::SelectionFollowsFocus(winrt::Microsoft::UI::Xaml::Controls::NavigationViewSelectionFollowsFocus const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFollowsFocus(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFollowsFocus(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::ShoulderNavigationEnabled() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewShoulderNavigationEnabled value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShoulderNavigationEnabled(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShoulderNavigationEnabled(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::ShoulderNavigationEnabled(winrt::Microsoft::UI::Xaml::Controls::NavigationViewShoulderNavigationEnabled const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShoulderNavigationEnabled(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShoulderNavigationEnabled(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::OverflowLabelMode() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewOverflowLabelMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowLabelMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowLabelMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::OverflowLabelMode(winrt::Microsoft::UI::Xaml::Controls::NavigationViewOverflowLabelMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OverflowLabelMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OverflowLabelMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Expanding(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Expanding(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Expanding(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Expanding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Expanding(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Expanding(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Expanding(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Expanding(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Collapsed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Collapsed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Collapsed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Collapsed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Collapsed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Collapsed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Collapsed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Collapsed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Expand(winrt::Microsoft::UI::Xaml::Controls::NavigationViewItem const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Expand(*(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Expand(*(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationView2::Collapse(winrt::Microsoft::UI::Xaml::Controls::NavigationViewItem const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Collapse(*(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Collapse(*(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewDisplayModeChangedEventArgs::DisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem::Icon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem::CompactPaneLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::SelectsOnInvoked() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectsOnInvoked(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectsOnInvoked(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::SelectsOnInvoked(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectsOnInvoked(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectsOnInvoked(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::IsExpanded() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::IsExpanded(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::HasUnrealizedChildren() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildren(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildren(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::HasUnrealizedChildren(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HasUnrealizedChildren(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HasUnrealizedChildren(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::IsChildSelected() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsChildSelected(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsChildSelected(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::IsChildSelected(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsChildSelected(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsChildSelected(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::MenuItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::MenuItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem2::MenuItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MenuItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MenuItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem3::InfoBadge() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoBadge(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoBadge(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::InfoBadge{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItem3::InfoBadge(winrt::Microsoft::UI::Xaml::Controls::InfoBadge const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InfoBadge(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InfoBadge(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemBase2::IsSelected() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelected(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemBase2::IsSelected(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSelected(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSelected(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemBaseStatics::IsSelectedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemCollapsedEventArgs::CollapsedItemContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollapsedItemContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollapsedItemContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItemBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemCollapsedEventArgs::CollapsedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollapsedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollapsedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemExpandingEventArgs::ExpandingItemContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandingItemContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandingItemContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItemBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemExpandingEventArgs::ExpandingItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandingItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandingItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemHeaderFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItemHeader{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemInvokedEventArgs::InvokedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InvokedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InvokedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemInvokedEventArgs::IsSettingsInvoked() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSettingsInvoked(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSettingsInvoked(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemInvokedEventArgs2::InvokedItemContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InvokedItemContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InvokedItemContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItemBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemInvokedEventArgs2::RecommendedNavigationTransitionInfo() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RecommendedNavigationTransitionInfo(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RecommendedNavigationTransitionInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemSeparatorFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItemSeparator{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics::IconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics::CompactPaneLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics2::SelectsOnInvokedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectsOnInvokedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectsOnInvokedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics2::IsExpandedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics2::HasUnrealizedChildrenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildrenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildrenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics2::IsChildSelectedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsChildSelectedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsChildSelectedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics2::MenuItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics2::MenuItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewItemStatics3::InfoBadgeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoBadgeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoBadgeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewPaneClosingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewPaneClosingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewSelectionChangedEventArgs::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewSelectionChangedEventArgs::IsSettingsSelected() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSettingsSelected(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSettingsSelected(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewSelectionChangedEventArgs2::SelectedItemContainer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemContainer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemContainer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewItemBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewSelectionChangedEventArgs2::RecommendedNavigationTransitionInfo() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RecommendedNavigationTransitionInfo(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RecommendedNavigationTransitionInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::IsPaneOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::CompactModeThresholdWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactModeThresholdWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactModeThresholdWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::ExpandedModeThresholdWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedModeThresholdWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedModeThresholdWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::FooterMenuItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterMenuItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterMenuItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::FooterMenuItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FooterMenuItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FooterMenuItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::PaneFooterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneFooterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneFooterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::DisplayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::IsSettingsVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSettingsVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSettingsVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::IsPaneToggleButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::AlwaysShowHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlwaysShowHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlwaysShowHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::CompactPaneLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::OpenPaneLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::PaneToggleButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneToggleButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneToggleButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::MenuItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::MenuItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::SettingsItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SettingsItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SettingsItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::AutoSuggestBoxProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoSuggestBoxProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoSuggestBoxProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::MenuItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::MenuItemTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::MenuItemContainerStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::MenuItemContainerStyleSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyleSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MenuItemContainerStyleSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics::IsTitleBarAutoPaddingEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTitleBarAutoPaddingEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTitleBarAutoPaddingEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::IsBackButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::IsBackEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::PaneTitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneTitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneTitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::PaneDisplayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneDisplayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneDisplayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::PaneHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::PaneCustomContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneCustomContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneCustomContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::ContentOverlayProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentOverlayProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentOverlayProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::IsPaneVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::SelectionFollowsFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFollowsFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFollowsFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::ShoulderNavigationEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShoulderNavigationEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShoulderNavigationEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewStatics2::OverflowLabelModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowLabelModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowLabelModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::TopPadding() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopPadding(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopPadding(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::OverflowButtonVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::PaneToggleButtonVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneToggleButtonVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneToggleButtonVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::BackButtonVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackButtonVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackButtonVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::TopPaneVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopPaneVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopPaneVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::LeftPaneVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftPaneVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftPaneVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::SingleSelectionFollowsFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::PaneToggleButtonWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneToggleButtonWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneToggleButtonWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings::SmallerPaneToggleButtonWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallerPaneToggleButtonWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallerPaneToggleButtonWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettings2::OpenPaneLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NavigationViewTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::TopPaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopPaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopPaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::OverflowButtonVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowButtonVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::PaneToggleButtonVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneToggleButtonVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneToggleButtonVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::BackButtonVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackButtonVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackButtonVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::TopPaneVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopPaneVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopPaneVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::LeftPaneVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftPaneVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftPaneVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::SingleSelectionFollowsFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SingleSelectionFollowsFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::PaneToggleButtonWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneToggleButtonWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneToggleButtonWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics::SmallerPaneToggleButtonWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallerPaneToggleButtonWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallerPaneToggleButtonWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INavigationViewTemplateSettingsStatics2::OpenPaneLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutContext::Children() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutContextFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutContextOverrides::ChildrenCore() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildrenCore(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildrenCore(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutOverrides::InitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InitializeForContextCore(*(void**)(&context))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InitializeForContextCore(*(void**)(&context))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutOverrides::UninitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UninitializeForContextCore(*(void**)(&context))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->UninitializeForContextCore(*(void**)(&context))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutOverrides::MeasureOverride(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) const + { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MeasureOverride(*(void**)(&context), impl::bind_in(availableSize), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MeasureOverride(*(void**)(&context), impl::bind_in(availableSize), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_INonVirtualizingLayoutOverrides::ArrangeOverride(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) const + { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ArrangeOverride(*(void**)(&context), impl::bind_in(finalSize), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ArrangeOverride(*(void**)(&context), impl::bind_in(finalSize), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Minimum() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Minimum(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Minimum(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Minimum(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Maximum() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Maximum(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Maximum(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Maximum(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Value() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Value(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SmallChange() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChange(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SmallChange(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SmallChange(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SmallChange(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::LargeChange() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LargeChange(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LargeChange(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::LargeChange(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LargeChange(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LargeChange(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SelectionFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SelectionFlyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SelectionHighlightColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SelectionHighlightColor(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::TextReadingOrder() const + { + winrt::Microsoft::UI::Xaml::TextReadingOrder value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::TextReadingOrder(winrt::Microsoft::UI::Xaml::TextReadingOrder const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::PreventKeyboardDisplayOnProgrammaticFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::ValidationMode() const + { + winrt::Microsoft::UI::Xaml::Controls::NumberBoxValidationMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValidationMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValidationMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::ValidationMode(winrt::Microsoft::UI::Xaml::Controls::NumberBoxValidationMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ValidationMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ValidationMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SpinButtonPlacementMode() const + { + winrt::Microsoft::UI::Xaml::Controls::NumberBoxSpinButtonPlacementMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpinButtonPlacementMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpinButtonPlacementMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::SpinButtonPlacementMode(winrt::Microsoft::UI::Xaml::Controls::NumberBoxSpinButtonPlacementMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SpinButtonPlacementMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SpinButtonPlacementMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::IsWrapEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsWrapEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsWrapEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::IsWrapEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsWrapEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsWrapEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::AcceptsExpression() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptsExpression(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptsExpression(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::AcceptsExpression(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AcceptsExpression(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AcceptsExpression(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::NumberFormatter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumberFormatter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NumberFormatter(&value)); + } + return winrt::Windows::Globalization::NumberFormatting::INumberFormatter2{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::NumberFormatter(winrt::Windows::Globalization::NumberFormatting::INumberFormatter2 const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NumberFormatter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NumberFormatter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::ValueChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::ValueChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ValueChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBox::ValueChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::NumberBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::MinimumProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::MaximumProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::ValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::SmallChangeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::LargeChangeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::SelectionFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::SelectionHighlightColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::TextReadingOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::PreventKeyboardDisplayOnProgrammaticFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::ValidationModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValidationModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValidationModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::SpinButtonPlacementModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpinButtonPlacementModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpinButtonPlacementModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::IsWrapEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsWrapEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsWrapEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::AcceptsExpressionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptsExpressionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptsExpressionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxStatics::NumberFormatterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumberFormatterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NumberFormatterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxValueChangedEventArgs::OldValue() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_INumberBoxValueChangedEventArgs::NewValue() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::Frame() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Frame(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Frame(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Frame{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::NavigationCacheMode() const + { + winrt::Microsoft::UI::Xaml::Navigation::NavigationCacheMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigationCacheMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigationCacheMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::NavigationCacheMode(winrt::Microsoft::UI::Xaml::Navigation::NavigationCacheMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NavigationCacheMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NavigationCacheMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::TopAppBar() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopAppBar(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopAppBar(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::TopAppBar(winrt::Microsoft::UI::Xaml::Controls::AppBar const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopAppBar(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopAppBar(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::BottomAppBar() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomAppBar(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomAppBar(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::AppBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPage::BottomAppBar(winrt::Microsoft::UI::Xaml::Controls::AppBar const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomAppBar(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomAppBar(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Page{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageOverrides::OnNavigatedFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnNavigatedFrom(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnNavigatedFrom(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageOverrides::OnNavigatedTo(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnNavigatedTo(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnNavigatedTo(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageOverrides::OnNavigatingFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnNavigatingFrom(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnNavigatingFrom(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageStatics::FrameProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FrameProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FrameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageStatics::TopAppBarProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopAppBarProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopAppBarProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPageStatics::BottomAppBarProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomAppBarProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomAppBarProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::Children() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::UIElementCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::Background() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::IsItemsHost() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsItemsHost(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsItemsHost(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::ChildrenTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildrenTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildrenTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::ChildrenTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChildrenTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChildrenTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::BackgroundTransition() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundTransition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::BrushTransition{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanel::BackgroundTransition(winrt::Microsoft::UI::Xaml::BrushTransition const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundTransition(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundTransition(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Panel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanelStatics::BackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanelStatics::IsItemsHostProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsItemsHostProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsItemsHostProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPanelStatics::ChildrenTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildrenTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildrenTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::Child() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::Child(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalShift() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalShift(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalShift(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalShift(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalShift(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalShift(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalSourceEndOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSourceEndOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSourceEndOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalSourceEndOffset(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalSourceEndOffset(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalSourceEndOffset(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalSourceOffsetKind() const + { + winrt::Microsoft::UI::Xaml::Controls::ParallaxSourceOffsetKind value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSourceOffsetKind(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSourceOffsetKind(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalSourceOffsetKind(winrt::Microsoft::UI::Xaml::Controls::ParallaxSourceOffsetKind const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalSourceOffsetKind(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalSourceOffsetKind(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalSourceStartOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSourceStartOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSourceStartOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::HorizontalSourceStartOffset(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalSourceStartOffset(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalSourceStartOffset(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::IsHorizontalShiftClamped() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalShiftClamped(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalShiftClamped(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::IsHorizontalShiftClamped(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHorizontalShiftClamped(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHorizontalShiftClamped(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::IsVerticalShiftClamped() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVerticalShiftClamped(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVerticalShiftClamped(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::IsVerticalShiftClamped(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsVerticalShiftClamped(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsVerticalShiftClamped(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::MaxHorizontalShiftRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHorizontalShiftRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHorizontalShiftRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::MaxHorizontalShiftRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxHorizontalShiftRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxHorizontalShiftRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::MaxVerticalShiftRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxVerticalShiftRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxVerticalShiftRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::MaxVerticalShiftRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxVerticalShiftRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxVerticalShiftRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::Source(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalShift() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalShift(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalShift(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalShift(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalShift(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalShift(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalSourceEndOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSourceEndOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSourceEndOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalSourceEndOffset(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalSourceEndOffset(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalSourceEndOffset(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalSourceOffsetKind() const + { + winrt::Microsoft::UI::Xaml::Controls::ParallaxSourceOffsetKind value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSourceOffsetKind(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSourceOffsetKind(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalSourceOffsetKind(winrt::Microsoft::UI::Xaml::Controls::ParallaxSourceOffsetKind const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalSourceOffsetKind(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalSourceOffsetKind(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalSourceStartOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSourceStartOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSourceStartOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::VerticalSourceStartOffset(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalSourceStartOffset(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalSourceStartOffset(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::RefreshAutomaticHorizontalOffsets() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RefreshAutomaticHorizontalOffsets()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RefreshAutomaticHorizontalOffsets()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxView::RefreshAutomaticVerticalOffsets() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RefreshAutomaticVerticalOffsets()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RefreshAutomaticVerticalOffsets()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ParallaxView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::ChildProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::HorizontalSourceEndOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSourceEndOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSourceEndOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::HorizontalSourceOffsetKindProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSourceOffsetKindProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSourceOffsetKindProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::HorizontalSourceStartOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSourceStartOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSourceStartOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::MaxHorizontalShiftRatioProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHorizontalShiftRatioProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHorizontalShiftRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::HorizontalShiftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalShiftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalShiftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::IsHorizontalShiftClampedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalShiftClampedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalShiftClampedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::IsVerticalShiftClampedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVerticalShiftClampedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVerticalShiftClampedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::VerticalSourceEndOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSourceEndOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSourceEndOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::VerticalSourceOffsetKindProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSourceOffsetKindProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSourceOffsetKindProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::VerticalSourceStartOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSourceStartOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSourceStartOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::MaxVerticalShiftRatioProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxVerticalShiftRatioProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxVerticalShiftRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IParallaxViewStatics::VerticalShiftProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalShiftProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalShiftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Password() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Password(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Password(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Password(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Password(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Password(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChar() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PasswordChar(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PasswordChar(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChar(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PasswordChar(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PasswordChar(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::IsPasswordRevealButtonEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPasswordRevealButtonEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPasswordRevealButtonEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::IsPasswordRevealButtonEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPasswordRevealButtonEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPasswordRevealButtonEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::MaxLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::MaxLength(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::SelectionHighlightColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::SelectionHighlightColor(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PreventKeyboardDisplayOnProgrammaticFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordRevealMode() const + { + winrt::Microsoft::UI::Xaml::Controls::PasswordRevealMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PasswordRevealMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PasswordRevealMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordRevealMode(winrt::Microsoft::UI::Xaml::Controls::PasswordRevealMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PasswordRevealMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PasswordRevealMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::TextReadingOrder() const + { + winrt::Microsoft::UI::Xaml::TextReadingOrder value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::TextReadingOrder(winrt::Microsoft::UI::Xaml::TextReadingOrder const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::InputScope() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InputScope(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InputScope(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::InputScope{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::InputScope(winrt::Microsoft::UI::Xaml::Input::InputScope const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InputScope(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InputScope(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::CanPasteClipboardContent() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContent(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::SelectionFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::SelectionFlyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChanged(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PasswordChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PasswordChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PasswordChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PasswordChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PasswordChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::ContextMenuOpening(winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::ContextMenuOpening(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + return impl::make_event_revoker(this, ContextMenuOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::ContextMenuOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Paste(winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Paste(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Paste(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Paste(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventHandler const& handler) const + { + return impl::make_event_revoker(this, Paste(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::Paste(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Paste(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Paste(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PasswordChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PasswordChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PasswordChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasswordChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PasswordChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PasswordChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBox::PasteFromClipboard() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PasteFromClipboard()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PasteFromClipboard()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxPasswordChangingEventArgs::IsContentChanging() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContentChanging(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContentChanging(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::PasswordProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PasswordProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PasswordProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::PasswordCharProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PasswordCharProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PasswordCharProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::IsPasswordRevealButtonEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPasswordRevealButtonEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPasswordRevealButtonEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::MaxLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::SelectionHighlightColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::PreventKeyboardDisplayOnProgrammaticFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::PasswordRevealModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PasswordRevealModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PasswordRevealModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::TextReadingOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::InputScopeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InputScopeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InputScopeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::CanPasteClipboardContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::SelectionFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPasswordBoxStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIcon::Data() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Geometry{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIcon::Data(winrt::Microsoft::UI::Xaml::Media::Geometry const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIconFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PathIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIconSource::Data() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Geometry{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIconSource::Data(winrt::Microsoft::UI::Xaml::Media::Geometry const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIconSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PathIconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIconSourceStatics::DataProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPathIconStatics::DataProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeNumber() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeNumber(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeNumber(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeNumber(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BadgeNumber(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BadgeNumber(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BadgeGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BadgeGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeImageSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeImageSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeImageSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeImageSource(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BadgeImageSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BadgeImageSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::BadgeText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BadgeText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BadgeText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::IsGroup() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroup(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroup(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::IsGroup(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsGroup(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsGroup(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::Contact() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Contact(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Contact(&value)); + } + return winrt::Windows::ApplicationModel::Contacts::Contact{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::Contact(winrt::Windows::ApplicationModel::Contacts::Contact const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Contact(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Contact(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::DisplayName() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayName(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayName(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::DisplayName(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::Initials() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Initials(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Initials(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::Initials(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Initials(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Initials(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::PreferSmallImage() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferSmallImage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferSmallImage(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::PreferSmallImage(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreferSmallImage(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreferSmallImage(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::ProfilePicture() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProfilePicture(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProfilePicture(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::ProfilePicture(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProfilePicture(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProfilePicture(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPicture::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PersonPictureTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PersonPicture{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::BadgeNumberProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeNumberProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeNumberProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::BadgeGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::BadgeImageSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeImageSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeImageSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::BadgeTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BadgeTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BadgeTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::IsGroupProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGroupProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGroupProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::ContactProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContactProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContactProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::DisplayNameProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayNameProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::InitialsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::PreferSmallImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferSmallImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferSmallImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureStatics::ProfilePictureProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProfilePictureProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProfilePictureProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureTemplateSettings::ActualInitials() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualInitials(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualInitials(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPersonPictureTemplateSettings::ActualImageBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualImageBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualImageBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::ConfirmationButtonsVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConfirmationButtonsVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConfirmationButtonsVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::ConfirmationButtonsVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ConfirmationButtonsVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ConfirmationButtonsVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::Confirmed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Confirmed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Confirmed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::Confirmed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Confirmed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::Confirmed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Confirmed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Confirmed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyout::ShowAtAsync(winrt::Microsoft::UI::Xaml::FrameworkElement const& target) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyoutStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPickerFlyoutStatics::ConfirmationButtonsVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConfirmationButtonsVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConfirmationButtonsVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NumberOfPages() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumberOfPages(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NumberOfPages(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NumberOfPages(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NumberOfPages(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NumberOfPages(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedPageIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPageIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPageIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedPageIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedPageIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedPageIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::MaxVisiblePips() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxVisiblePips(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxVisiblePips(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::MaxVisiblePips(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxVisiblePips(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxVisiblePips(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::PreviousButtonVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::PipsPagerButtonVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousButtonVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousButtonVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::PreviousButtonVisibility(winrt::Microsoft::UI::Xaml::Controls::PipsPagerButtonVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreviousButtonVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreviousButtonVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NextButtonVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::PipsPagerButtonVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NextButtonVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NextButtonVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NextButtonVisibility(winrt::Microsoft::UI::Xaml::Controls::PipsPagerButtonVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NextButtonVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NextButtonVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::PreviousButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::PreviousButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreviousButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreviousButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NextButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NextButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NextButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NextButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NextButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NextButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedPipStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPipStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPipStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedPipStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedPipStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedPipStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NormalPipStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NormalPipStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NormalPipStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::NormalPipStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NormalPipStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NormalPipStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedIndexChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectedIndexChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectedIndexChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedIndexChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectedIndexChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::SelectedIndexChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectedIndexChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectedIndexChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PipsPagerTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager2::WrapMode() const + { + winrt::Microsoft::UI::Xaml::Controls::PipsPagerWrapMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WrapMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WrapMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPager2::WrapMode(winrt::Microsoft::UI::Xaml::Controls::PipsPagerWrapMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_WrapMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_WrapMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PipsPager{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::NumberOfPagesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumberOfPagesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NumberOfPagesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::SelectedPageIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPageIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPageIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::MaxVisiblePipsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxVisiblePipsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxVisiblePipsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::PreviousButtonVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousButtonVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousButtonVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::NextButtonVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NextButtonVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NextButtonVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::PreviousButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::NextButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NextButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NextButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::SelectedPipStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedPipStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedPipStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics::NormalPipStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NormalPipStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NormalPipStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerStatics2::WrapModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WrapModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WrapModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPipsPagerTemplateSettings::PipsPagerItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PipsPagerItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PipsPagerItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::Title() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::Title(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::TitleTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::TitleTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TitleTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TitleTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::LeftHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeader(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::LeftHeader(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::LeftHeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::LeftHeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftHeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftHeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::RightHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightHeader(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::RightHeader(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::RightHeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightHeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightHeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::RightHeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightHeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightHeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectedIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectedIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::IsLocked() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLocked(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLocked(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::IsLocked(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsLocked(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsLocked(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::HeaderFocusVisualPlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::PivotHeaderFocusVisualPlacement value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderFocusVisualPlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderFocusVisualPlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::HeaderFocusVisualPlacement(winrt::Microsoft::UI::Xaml::Controls::PivotHeaderFocusVisualPlacement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderFocusVisualPlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderFocusVisualPlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::IsHeaderItemsCarouselEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHeaderItemsCarouselEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHeaderItemsCarouselEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::IsHeaderItemsCarouselEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHeaderItemsCarouselEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHeaderItemsCarouselEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectionChanged(winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemLoading(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PivotItemLoading(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PivotItemLoading(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemLoading(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PivotItemLoading(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemLoading(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PivotItemLoading(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PivotItemLoading(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemLoaded(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PivotItemLoaded(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PivotItemLoaded(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemLoaded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PivotItemLoaded(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemLoaded(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PivotItemLoaded(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PivotItemLoaded(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemUnloading(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PivotItemUnloading(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PivotItemUnloading(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemUnloading(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PivotItemUnloading(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemUnloading(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PivotItemUnloading(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PivotItemUnloading(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemUnloaded(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PivotItemUnloaded(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PivotItemUnloaded(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemUnloaded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PivotItemUnloaded(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivot::PivotItemUnloaded(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PivotItemUnloaded(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PivotItemUnloaded(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Pivot{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotItem::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotItem::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotItemEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PivotItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotItemEventArgs::Item(winrt::Microsoft::UI::Xaml::Controls::PivotItem const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Item(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Item(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::PivotItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotItemStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::TitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::TitleTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::LeftHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::LeftHeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::RightHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::RightHeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightHeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightHeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::SelectedIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::IsLockedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLockedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLockedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::HeaderFocusVisualPlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderFocusVisualPlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderFocusVisualPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::IsHeaderItemsCarouselEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHeaderItemsCarouselEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHeaderItemsCarouselEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::SlideInAnimationGroupProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SlideInAnimationGroupProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SlideInAnimationGroupProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::GetSlideInAnimationGroup(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::PivotSlideInAnimationGroup result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSlideInAnimationGroup(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSlideInAnimationGroup(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IPivotStatics::SetSlideInAnimationGroup(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, winrt::Microsoft::UI::Xaml::Controls::PivotSlideInAnimationGroup const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetSlideInAnimationGroup(*(void**)(&element), static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetSlideInAnimationGroup(*(void**)(&element), static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::IsIndeterminate() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIndeterminate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIndeterminate(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::IsIndeterminate(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsIndeterminate(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsIndeterminate(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::ShowError() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowError(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowError(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::ShowError(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowError(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowError(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::ShowPaused() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowPaused(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowPaused(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::ShowPaused(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShowPaused(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShowPaused(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBar::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ProgressBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ProgressBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarStatics::IsIndeterminateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIndeterminateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIndeterminateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarStatics::ShowErrorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowErrorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowErrorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarStatics::ShowPausedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShowPausedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShowPausedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::ContainerAnimationStartPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainerAnimationStartPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainerAnimationStartPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::ContainerAnimationEndPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainerAnimationEndPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainerAnimationEndPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::Container2AnimationStartPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container2AnimationStartPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container2AnimationStartPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::Container2AnimationEndPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container2AnimationEndPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container2AnimationEndPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::ContainerAnimationMidPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContainerAnimationMidPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContainerAnimationMidPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::IndicatorLengthDelta() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IndicatorLengthDelta(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IndicatorLengthDelta(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::ClipRect() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClipRect(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClipRect(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::RectangleGeometry{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::EllipseAnimationEndPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseAnimationEndPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseAnimationEndPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::EllipseAnimationWellPosition() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseAnimationWellPosition(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseAnimationWellPosition(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::EllipseDiameter() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressBarTemplateSettings::EllipseOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::IsActive() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::IsActive(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsActive(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsActive(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::IsIndeterminate() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIndeterminate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIndeterminate(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::IsIndeterminate(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsIndeterminate(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsIndeterminate(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ProgressRingTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::Value() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::Value(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::Minimum() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Minimum(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::Minimum(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Minimum(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Minimum(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::Maximum() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Maximum(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRing::Maximum(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Maximum(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Maximum(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ProgressRing{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingStatics::IsActiveProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActiveProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActiveProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingStatics::IsIndeterminateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIndeterminateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIndeterminateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingStatics::ValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingStatics::MinimumProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingStatics::MaximumProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingTemplateSettings::EllipseDiameter() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingTemplateSettings::EllipseOffset() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EllipseOffset(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EllipseOffset(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IProgressRingTemplateSettings::MaxSideLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxSideLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxSideLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButton::GroupName() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupName(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupName(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButton::GroupName(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupName(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupName(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RadioButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonStatics::GroupNameProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupNameProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::ItemTemplate(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::ContainerFromIndex(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectedIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectedIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectionChanged(winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::MaxColumns() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxColumns(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxColumns(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::MaxColumns(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxColumns(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxColumns(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtons::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RadioButtons{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::ItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::SelectedIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::MaxColumnsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxColumnsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxColumnsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioButtonsStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItem::IsChecked() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItem::IsChecked(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsChecked(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsChecked(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItem::GroupName() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupName(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupName(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItem::GroupName(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GroupName(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GroupName(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RadioMenuFlyoutItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItemStatics::IsCheckedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItemStatics::GroupNameProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupNameProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItemStatics2::AreCheckStatesEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreCheckStatesEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreCheckStatesEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItemStatics2::SetAreCheckStatesEnabled(winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutSubItem const& object, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAreCheckStatesEnabled(*(void**)(&object), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAreCheckStatesEnabled(*(void**)(&object), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRadioMenuFlyoutItemStatics2::GetAreCheckStatesEnabled(winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutSubItem const& object) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAreCheckStatesEnabled(*(void**)(&object), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAreCheckStatesEnabled(*(void**)(&object), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::Caption() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Caption(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Caption(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::Caption(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Caption(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Caption(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::InitialSetValue() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialSetValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialSetValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::InitialSetValue(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InitialSetValue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InitialSetValue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::IsClearEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClearEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClearEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::IsClearEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsClearEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsClearEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::IsReadOnly() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::IsReadOnly(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsReadOnly(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsReadOnly(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::MaxRating() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxRating(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxRating(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::MaxRating(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxRating(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxRating(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::PlaceholderValue() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::PlaceholderValue(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderValue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderValue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::ItemInfo() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemInfo(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RatingItemInfo{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::ItemInfo(winrt::Microsoft::UI::Xaml::Controls::RatingItemInfo const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemInfo(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemInfo(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::Value() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::Value(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::ValueChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::ValueChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ValueChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControl::ValueChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RatingControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::CaptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CaptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CaptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::InitialSetValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InitialSetValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InitialSetValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::IsClearEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClearEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClearEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::IsReadOnlyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::MaxRatingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxRatingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxRatingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::PlaceholderValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::ItemInfoProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemInfoProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemInfoProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingControlStatics::ValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::DisabledGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::DisabledGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisabledGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisabledGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::Glyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Glyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Glyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::Glyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Glyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Glyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::PointerOverGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::PointerOverGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PointerOverGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PointerOverGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::PointerOverPlaceholderGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::PointerOverPlaceholderGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PointerOverPlaceholderGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PointerOverPlaceholderGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::PlaceholderGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::PlaceholderGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::UnsetGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnsetGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnsetGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfo::UnsetGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UnsetGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UnsetGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RatingItemFontInfo{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoStatics::DisabledGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoStatics::GlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoStatics::PlaceholderGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoStatics::PointerOverGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoStatics::PointerOverPlaceholderGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemFontInfoStatics::UnsetGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnsetGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnsetGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::DisabledImage() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledImage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledImage(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::DisabledImage(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisabledImage(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisabledImage(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::Image() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Image(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Image(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::Image(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Image(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Image(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::PlaceholderImage() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderImage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderImage(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::PlaceholderImage(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderImage(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderImage(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::PointerOverImage() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverImage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverImage(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::PointerOverImage(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PointerOverImage(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PointerOverImage(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::PointerOverPlaceholderImage() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderImage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderImage(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::PointerOverPlaceholderImage(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PointerOverPlaceholderImage(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PointerOverPlaceholderImage(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::UnsetImage() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnsetImage(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnsetImage(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfo::UnsetImage(winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UnsetImage(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UnsetImage(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RatingItemImageInfo{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoStatics::DisabledImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoStatics::ImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoStatics::PlaceholderImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoStatics::PointerOverImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoStatics::PointerOverPlaceholderImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerOverPlaceholderImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemImageInfoStatics::UnsetImageProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnsetImageProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnsetImageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRatingItemInfoFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RatingItemInfo{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::Visualizer() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Visualizer(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Visualizer(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::Visualizer(winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizer const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Visualizer(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Visualizer(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::PullDirection() const + { + winrt::Microsoft::UI::Xaml::Controls::RefreshPullDirection value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PullDirection(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PullDirection(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::PullDirection(winrt::Microsoft::UI::Xaml::Controls::RefreshPullDirection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PullDirection(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PullDirection(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::RefreshRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_RefreshRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_RefreshRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::RefreshRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, RefreshRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::RefreshRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RefreshRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_RefreshRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainer::RequestRefresh() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestRefresh()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestRefresh()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RefreshContainer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainerStatics::VisualizerProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VisualizerProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VisualizerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshContainerStatics::PullDirectionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PullDirectionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PullDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshInteractionRatioChangedEventArgs::InteractionRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InteractionRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InteractionRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshRequestedEventArgs::GetDeferral() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshStateChangedEventArgs::OldState() const + { + winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizerState value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldState(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldState(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshStateChangedEventArgs::NewState() const + { + winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizerState value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewState(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewState(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RequestRefresh() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RequestRefresh()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RequestRefresh()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizerOrientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::Orientation(winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizerOrientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::State() const + { + winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizerState value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_State(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RefreshRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_RefreshRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_RefreshRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RefreshRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, RefreshRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RefreshRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RefreshRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_RefreshRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RefreshStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_RefreshStateChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_RefreshStateChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RefreshStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, RefreshStateChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizer::RefreshStateChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RefreshStateChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_RefreshStateChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RefreshVisualizer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizerStatics::InfoProviderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InfoProviderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InfoProviderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizerStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizerStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRefreshVisualizerStatics::StateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::BackgroundSizing() const + { + winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::BackgroundSizing(winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::BorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::BorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::BorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::BorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::CornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::CornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanel::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RelativePanel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::BackgroundSizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::LeftOfProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftOfProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftOfProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetLeftOf(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLeftOf(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLeftOf(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetLeftOf(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetLeftOf(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetLeftOf(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AboveProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AboveProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AboveProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAbove(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAbove(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAbove(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAbove(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAbove(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAbove(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::RightOfProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightOfProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightOfProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetRightOf(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRightOf(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRightOf(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetRightOf(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRightOf(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetRightOf(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::BelowProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BelowProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BelowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetBelow(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBelow(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBelow(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetBelow(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetBelow(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetBelow(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignHorizontalCenterWithProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignHorizontalCenterWithProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignHorizontalCenterWithProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignHorizontalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignHorizontalCenterWith(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignHorizontalCenterWith(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignHorizontalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignHorizontalCenterWith(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignHorizontalCenterWith(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignVerticalCenterWithProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignVerticalCenterWithProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignVerticalCenterWithProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignVerticalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignVerticalCenterWith(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignVerticalCenterWith(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignVerticalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignVerticalCenterWith(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignVerticalCenterWith(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignLeftWithProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignLeftWithProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignLeftWithProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignLeftWith(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignLeftWith(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignLeftWith(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignLeftWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignLeftWith(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignLeftWith(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignTopWithProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignTopWithProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignTopWithProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignTopWith(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignTopWith(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignTopWith(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignTopWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignTopWith(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignTopWith(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignRightWithProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignRightWithProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignRightWithProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignRightWith(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignRightWith(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignRightWith(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignRightWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignRightWith(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignRightWith(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignBottomWithProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignBottomWithProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignBottomWithProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignBottomWith(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignBottomWith(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignBottomWith(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignBottomWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignBottomWith(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignBottomWith(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignLeftWithPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignLeftWithPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignLeftWithPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignLeftWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignLeftWithPanel(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignLeftWithPanel(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignLeftWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignLeftWithPanel(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignLeftWithPanel(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignTopWithPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignTopWithPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignTopWithPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignTopWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignTopWithPanel(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignTopWithPanel(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignTopWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignTopWithPanel(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignTopWithPanel(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignRightWithPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignRightWithPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignRightWithPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignRightWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignRightWithPanel(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignRightWithPanel(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignRightWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignRightWithPanel(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignRightWithPanel(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignBottomWithPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignBottomWithPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignBottomWithPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignBottomWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignBottomWithPanel(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignBottomWithPanel(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignBottomWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignBottomWithPanel(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignBottomWithPanel(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignHorizontalCenterWithPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignHorizontalCenterWithPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignHorizontalCenterWithPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignHorizontalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignHorizontalCenterWithPanel(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignHorizontalCenterWithPanel(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignHorizontalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignHorizontalCenterWithPanel(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignHorizontalCenterWithPanel(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::AlignVerticalCenterWithPanelProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignVerticalCenterWithPanelProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignVerticalCenterWithPanelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::GetAlignVerticalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlignVerticalCenterWithPanel(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlignVerticalCenterWithPanel(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::SetAlignVerticalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAlignVerticalCenterWithPanel(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAlignVerticalCenterWithPanel(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::BorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::BorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::CornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRelativePanelStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRevealListViewItemPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RevealListViewItemPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsReadOnly() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsReadOnly(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsReadOnly(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsReadOnly(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::AcceptsReturn() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptsReturn(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptsReturn(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::AcceptsReturn(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AcceptsReturn(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AcceptsReturn(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextWrapping() const + { + winrt::Microsoft::UI::Xaml::TextWrapping value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextWrapping(winrt::Microsoft::UI::Xaml::TextWrapping const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsSpellCheckEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsSpellCheckEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSpellCheckEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSpellCheckEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsTextPredictionEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsTextPredictionEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextPredictionEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextPredictionEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Document() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Document(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Document(&value)); + } + return winrt::Microsoft::UI::Text::RichEditTextDocument{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::InputScope() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InputScope(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InputScope(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::InputScope{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::InputScope(winrt::Microsoft::UI::Xaml::Input::InputScope const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InputScope(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InputScope(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionHighlightColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionHighlightColor(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::PreventKeyboardDisplayOnProgrammaticFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsColorFontEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::IsColorFontEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionHighlightColorWhenNotFocused() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocused(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocused(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionHighlightColorWhenNotFocused(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColorWhenNotFocused(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColorWhenNotFocused(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::MaxLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::MaxLength(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::HorizontalTextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::HorizontalTextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CharacterCasing() const + { + winrt::Microsoft::UI::Xaml::Controls::CharacterCasing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterCasing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterCasing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CharacterCasing(winrt::Microsoft::UI::Xaml::Controls::CharacterCasing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterCasing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterCasing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::DisabledFormattingAccelerators() const + { + winrt::Microsoft::UI::Xaml::Controls::DisabledFormattingAccelerators value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledFormattingAccelerators(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledFormattingAccelerators(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::DisabledFormattingAccelerators(winrt::Microsoft::UI::Xaml::Controls::DisabledFormattingAccelerators const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisabledFormattingAccelerators(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisabledFormattingAccelerators(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextDocument() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDocument(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextDocument(&value)); + } + return winrt::Microsoft::UI::Text::RichEditTextDocument{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionFlyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::ProofingMenuFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextChanged(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionChanged(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::ContextMenuOpening(winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::ContextMenuOpening(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + return impl::make_event_revoker(this, ContextMenuOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::ContextMenuOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Paste(winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Paste(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Paste(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Paste(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventHandler const& handler) const + { + return impl::make_event_revoker(this, Paste(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::Paste(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Paste(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Paste(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionStarted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextCompositionStarted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextCompositionStarted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionStarted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextCompositionStarted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionStarted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextCompositionStarted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextCompositionStarted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextCompositionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextCompositionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextCompositionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextCompositionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextCompositionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionEnded(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextCompositionEnded(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextCompositionEnded(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionEnded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextCompositionEnded(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextCompositionEnded(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextCompositionEnded(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextCompositionEnded(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CopyingToClipboard(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CopyingToClipboard(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CopyingToClipboard(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CopyingToClipboard(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CopyingToClipboard(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CopyingToClipboard(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CopyingToClipboard(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CopyingToClipboard(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CuttingToClipboard(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CuttingToClipboard(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CuttingToClipboard(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CuttingToClipboard(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CuttingToClipboard(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CuttingToClipboard(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CuttingToClipboard(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CuttingToClipboard(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::SelectionChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::GetLinguisticAlternativesAsync() const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLinguisticAlternativesAsync(&operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLinguisticAlternativesAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextReadingOrder() const + { + winrt::Microsoft::UI::Xaml::TextReadingOrder value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextReadingOrder(winrt::Microsoft::UI::Xaml::TextReadingOrder const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::ClipboardCopyFormat() const + { + winrt::Microsoft::UI::Xaml::Controls::RichEditClipboardFormat value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClipboardCopyFormat(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClipboardCopyFormat(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::ClipboardCopyFormat(winrt::Microsoft::UI::Xaml::Controls::RichEditClipboardFormat const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClipboardCopyFormat(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClipboardCopyFormat(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::DesiredCandidateWindowAlignment() const + { + winrt::Microsoft::UI::Xaml::Controls::CandidateWindowAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::DesiredCandidateWindowAlignment(winrt::Microsoft::UI::Xaml::Controls::CandidateWindowAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredCandidateWindowAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DesiredCandidateWindowAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CandidateWindowBoundsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CandidateWindowBoundsChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CandidateWindowBoundsChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CandidateWindowBoundsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CandidateWindowBoundsChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::CandidateWindowBoundsChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CandidateWindowBoundsChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CandidateWindowBoundsChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBox::TextChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RichEditBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxSelectionChangingEventArgs::SelectionStart() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxSelectionChangingEventArgs::SelectionLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxSelectionChangingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxSelectionChangingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::IsReadOnlyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::AcceptsReturnProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptsReturnProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptsReturnProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::TextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::TextWrappingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::IsSpellCheckEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::IsTextPredictionEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::InputScopeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InputScopeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InputScopeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::SelectionHighlightColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::PreventKeyboardDisplayOnProgrammaticFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::IsColorFontEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::SelectionHighlightColorWhenNotFocusedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocusedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocusedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::MaxLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::HorizontalTextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::CharacterCasingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterCasingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterCasingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::DisabledFormattingAcceleratorsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisabledFormattingAcceleratorsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisabledFormattingAcceleratorsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::SelectionFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::ProofingMenuFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::DesiredCandidateWindowAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::TextReadingOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxStatics::ClipboardCopyFormatProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClipboardCopyFormatProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClipboardCopyFormatProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichEditBoxTextChangingEventArgs::IsContentChanging() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContentChanging(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContentChanging(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontStretch() const + { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::FontStretch(winrt::Windows::UI::Text::FontStretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextWrapping() const + { + winrt::Microsoft::UI::Xaml::TextWrapping value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextWrapping(winrt::Microsoft::UI::Xaml::TextWrapping const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextTrimming() const + { + winrt::Microsoft::UI::Xaml::TextTrimming value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextTrimming(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextTrimming(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextTrimming(winrt::Microsoft::UI::Xaml::TextTrimming const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextTrimming(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextTrimming(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::Blocks() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Blocks(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Blocks(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::BlockCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::LineHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::LineHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::LineStackingStrategy() const + { + winrt::Microsoft::UI::Xaml::LineStackingStrategy value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategy(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategy(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::LineStackingStrategy(winrt::Microsoft::UI::Xaml::LineStackingStrategy const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::CharacterSpacing() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::CharacterSpacing(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::OverflowContentTarget() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentTarget(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::OverflowContentTarget(winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OverflowContentTarget(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OverflowContentTarget(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextSelectionEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextSelectionEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextSelectionEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextSelectionEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::HasOverflowContent() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasOverflowContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasOverflowContent(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectedText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::ContentStart() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::ContentEnd() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionStart() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionEnd() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionEnd(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::BaselineOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaselineOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaselineOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::MaxLines() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::MaxLines(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextLineBounds() const + { + winrt::Microsoft::UI::Xaml::TextLineBounds value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextLineBounds(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextLineBounds(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextLineBounds(winrt::Microsoft::UI::Xaml::TextLineBounds const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextLineBounds(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextLineBounds(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionHighlightColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionHighlightColor(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::OpticalMarginAlignment() const + { + winrt::Microsoft::UI::Xaml::OpticalMarginAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::OpticalMarginAlignment(winrt::Microsoft::UI::Xaml::OpticalMarginAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpticalMarginAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpticalMarginAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsColorFontEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsColorFontEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextReadingOrder() const + { + winrt::Microsoft::UI::Xaml::TextReadingOrder value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextReadingOrder(winrt::Microsoft::UI::Xaml::TextReadingOrder const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextScaleFactorEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextScaleFactorEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextDecorations() const + { + winrt::Windows::UI::Text::TextDecorations value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDecorations(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextDecorations(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextDecorations(winrt::Windows::UI::Text::TextDecorations const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextDecorations(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextDecorations(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextTrimmed() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextTrimmed(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextTrimmed(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::HorizontalTextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::HorizontalTextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextHighlighters() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextHighlighters(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextHighlighters(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionFlyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionChanged(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::ContextMenuOpening(winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::ContextMenuOpening(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + return impl::make_event_revoker(this, ContextMenuOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::ContextMenuOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextTrimmedChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsTextTrimmedChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_IsTextTrimmedChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextTrimmedChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, IsTextTrimmedChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::IsTextTrimmedChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsTextTrimmedChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_IsTextTrimmedChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::Select(winrt::Microsoft::UI::Xaml::Documents::TextPointer const& start, winrt::Microsoft::UI::Xaml::Documents::TextPointer const& end) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Select(*(void**)(&start), *(void**)(&end))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Select(*(void**)(&start), *(void**)(&end))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::GetPositionFromPoint(winrt::Windows::Foundation::Point const& point) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPositionFromPoint(impl::bind_in(point), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPositionFromPoint(impl::bind_in(point), &result)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::CopySelectionToClipboard() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CopySelectionToClipboard()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CopySelectionToClipboard()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextIndent() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextIndent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextIndent(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlock::TextIndent(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextIndent(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextIndent(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::OverflowContentTarget() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentTarget(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::OverflowContentTarget(winrt::Microsoft::UI::Xaml::Controls::RichTextBlockOverflow const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OverflowContentTarget(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OverflowContentTarget(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::ContentSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::RichTextBlock{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::HasOverflowContent() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasOverflowContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasOverflowContent(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::ContentStart() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::ContentEnd() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::BaselineOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaselineOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaselineOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::MaxLines() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::MaxLines(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::IsTextTrimmed() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextTrimmed(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextTrimmed(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::IsTextTrimmedChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsTextTrimmedChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_IsTextTrimmedChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::IsTextTrimmedChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, IsTextTrimmedChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::IsTextTrimmedChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsTextTrimmedChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_IsTextTrimmedChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflow::GetPositionFromPoint(winrt::Windows::Foundation::Point const& point) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPositionFromPoint(impl::bind_in(point), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPositionFromPoint(impl::bind_in(point), &result)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflowStatics::OverflowContentTargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentTargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflowStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflowStatics::HasOverflowContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasOverflowContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasOverflowContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflowStatics::MaxLinesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockOverflowStatics::IsTextTrimmedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextTrimmedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextTrimmedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::FontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::FontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::FontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::FontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::FontStretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextWrappingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextTrimmingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextTrimmingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextTrimmingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::LineHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::LineStackingStrategyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::CharacterSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::OverflowContentTargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OverflowContentTargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OverflowContentTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::IsTextSelectionEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::HasOverflowContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasOverflowContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasOverflowContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::SelectedTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::MaxLinesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextLineBoundsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextLineBoundsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextLineBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::SelectionHighlightColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::OpticalMarginAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::IsColorFontEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextReadingOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::IsTextScaleFactorEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextDecorationsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDecorationsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextDecorationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::IsTextTrimmedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextTrimmedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextTrimmedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::HorizontalTextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::SelectionFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRichTextBlockStatics::TextIndentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextIndentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextIndentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::Height() const + { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Height(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Height(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::Height(winrt::Microsoft::UI::Xaml::GridLength const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Height(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Height(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::MaxHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::MaxHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::MinHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::MinHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinition::ActualHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinitionStatics::HeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinitionStatics::MaxHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IRowDefinitionStatics::MinHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollAnchorProvider::CurrentAnchor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentAnchor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentAnchor(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollAnchorProvider::RegisterAnchorCandidate(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterAnchorCandidate(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterAnchorCandidate(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollAnchorProvider::UnregisterAnchorCandidate(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UnregisterAnchorCandidate(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->UnregisterAnchorCandidate(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::CanVerticallyScroll() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::CanVerticallyScroll(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::CanHorizontallyScroll() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::CanHorizontallyScroll(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::ExtentWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::ExtentHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::ViewportWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::ViewportHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::HorizontalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::VerticalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::ScrollOwner() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::ScrollOwner(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::CanContentRenderOutsideBounds() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBounds(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBounds(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::CanContentRenderOutsideBounds(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanContentRenderOutsideBounds(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanContentRenderOutsideBounds(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::SizesContentToTemplatedParent() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizesContentToTemplatedParent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizesContentToTemplatedParent(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::SizesContentToTemplatedParent(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SizesContentToTemplatedParent(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SizesContentToTemplatedParent(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::LineUp() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineUp()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineUp()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::LineDown() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineDown()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineDown()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::LineLeft() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineLeft()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineLeft()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::LineRight() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LineRight()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LineRight()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::PageUp() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageUp()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageUp()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::PageDown() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageDown()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageDown()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::PageLeft() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageLeft()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageLeft()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::PageRight() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PageRight()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PageRight()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::MouseWheelUp() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelUp()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelUp()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::MouseWheelDown() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelDown()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelDown()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::MouseWheelLeft() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelLeft()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelLeft()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::MouseWheelRight() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MouseWheelRight()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MouseWheelRight()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::SetHorizontalOffset(double offset) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::SetVerticalOffset(double offset) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenter::MakeVisible(winrt::Microsoft::UI::Xaml::UIElement const& visual, winrt::Windows::Foundation::Rect const& rectangle) const + { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenterStatics::CanContentRenderOutsideBoundsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBoundsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollContentPresenterStatics::SizesContentToTemplatedParentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizesContentToTemplatedParentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizesContentToTemplatedParentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::CurrentAnchor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentAnchor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentAnchor(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollPresenter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollPresenter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollPresenter(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ScrollPresenter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ExpressionAnimationSources() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpressionAnimationSources(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpressionAnimationSources(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionPropertySet{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ExtentWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ExtentHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ViewportWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ViewportHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollableWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollableHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::State() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingInteractionState value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_State(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollBarVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollBarVisibility(winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollBarVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollBarVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollBarVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollBarVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollBarVisibility(winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollBarVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollBarVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollBarVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ContentOrientation() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingContentOrientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentOrientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentOrientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ContentOrientation(winrt::Microsoft::UI::Xaml::Controls::ScrollingContentOrientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentOrientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentOrientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollChainMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollChainMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollChainMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollChainMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollChainMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollChainMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollChainMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollChainMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollChainMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollChainMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollChainMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollChainMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollRailMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollRailMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollRailMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollRailMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollRailMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollRailMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollRailMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollRailMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollRailMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollRailMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingRailMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollRailMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollRailMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalScrollMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalScrollMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ComputedHorizontalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ComputedVerticalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ComputedHorizontalScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ComputedVerticalScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomChainMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomChainMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomChainMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomChainMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingChainMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomChainMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomChainMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::IgnoredInputKinds() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingInputKinds value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IgnoredInputKinds(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IgnoredInputKinds(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::IgnoredInputKinds(winrt::Microsoft::UI::Xaml::Controls::ScrollingInputKinds const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IgnoredInputKinds(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IgnoredInputKinds(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::MinZoomFactor() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::MinZoomFactor(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinZoomFactor(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinZoomFactor(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::MaxZoomFactor() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::MaxZoomFactor(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxZoomFactor(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxZoomFactor(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalAnchorRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::HorizontalAnchorRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalAnchorRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::VerticalAnchorRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::RegisterAnchorCandidate(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterAnchorCandidate(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterAnchorCandidate(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::UnregisterAnchorCandidate(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UnregisterAnchorCandidate(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->UnregisterAnchorCandidate(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollTo(double horizontalOffset, double verticalOffset) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollTo(horizontalOffset, verticalOffset, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollTo(horizontalOffset, verticalOffset, &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollTo(double horizontalOffset, double verticalOffset, winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions const& options) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollToWithOptions(horizontalOffset, verticalOffset, *(void**)(&options), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollToWithOptions(horizontalOffset, verticalOffset, *(void**)(&options), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollBy(double horizontalOffsetDelta, double verticalOffsetDelta) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollBy(horizontalOffsetDelta, verticalOffsetDelta, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollBy(horizontalOffsetDelta, verticalOffsetDelta, &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollBy(double horizontalOffsetDelta, double verticalOffsetDelta, winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions const& options) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollByWithOptions(horizontalOffsetDelta, verticalOffsetDelta, *(void**)(&options), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollByWithOptions(horizontalOffsetDelta, verticalOffsetDelta, *(void**)(&options), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::AddScrollVelocity(winrt::Windows::Foundation::Numerics::float2 const& offsetsVelocity, winrt::Windows::Foundation::IReference const& inertiaDecayRate) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddScrollVelocity(impl::bind_in(offsetsVelocity), *(void**)(&inertiaDecayRate), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->AddScrollVelocity(impl::bind_in(offsetsVelocity), *(void**)(&inertiaDecayRate), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomTo(float zoomFactor, winrt::Windows::Foundation::IReference const& centerPoint) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomTo(zoomFactor, *(void**)(¢erPoint), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomTo(zoomFactor, *(void**)(¢erPoint), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomTo(float zoomFactor, winrt::Windows::Foundation::IReference const& centerPoint, winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions const& options) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomToWithOptions(zoomFactor, *(void**)(¢erPoint), *(void**)(&options), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomToWithOptions(zoomFactor, *(void**)(¢erPoint), *(void**)(&options), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomBy(float zoomFactorDelta, winrt::Windows::Foundation::IReference const& centerPoint) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomBy(zoomFactorDelta, *(void**)(¢erPoint), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomBy(zoomFactorDelta, *(void**)(¢erPoint), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomBy(float zoomFactorDelta, winrt::Windows::Foundation::IReference const& centerPoint, winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions const& options) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomByWithOptions(zoomFactorDelta, *(void**)(¢erPoint), *(void**)(&options), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomByWithOptions(zoomFactorDelta, *(void**)(¢erPoint), *(void**)(&options), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::AddZoomVelocity(float zoomFactorVelocity, winrt::Windows::Foundation::IReference const& centerPoint, winrt::Windows::Foundation::IReference const& inertiaDecayRate) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddZoomVelocity(zoomFactorVelocity, *(void**)(¢erPoint), *(void**)(&inertiaDecayRate), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->AddZoomVelocity(zoomFactorVelocity, *(void**)(¢erPoint), *(void**)(&inertiaDecayRate), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ExtentChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ExtentChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ExtentChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ExtentChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ExtentChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ExtentChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ExtentChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ExtentChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::StateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_StateChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, StateChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::StateChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_StateChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ViewChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ViewChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ViewChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ViewChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ViewChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ViewChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ViewChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ViewChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollAnimationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ScrollAnimationStarting(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ScrollAnimationStarting(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollAnimationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ScrollAnimationStarting(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollAnimationStarting(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ScrollAnimationStarting(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ScrollAnimationStarting(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomAnimationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ZoomAnimationStarting(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ZoomAnimationStarting(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomAnimationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ZoomAnimationStarting(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomAnimationStarting(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ZoomAnimationStarting(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ZoomAnimationStarting(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ScrollCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ScrollCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ScrollCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ScrollCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ScrollCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ScrollCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ZoomCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ZoomCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ZoomCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::ZoomCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ZoomCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ZoomCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::BringingIntoView(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BringingIntoView(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BringingIntoView(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::BringingIntoView(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, BringingIntoView(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::BringingIntoView(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_BringingIntoView(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_BringingIntoView(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::AnchorRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AnchorRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AnchorRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::AnchorRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, AnchorRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollView::AnchorRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AnchorRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_AnchorRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ScrollPresenterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollPresenterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollPresenterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::HorizontalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::VerticalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ContentOrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentOrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentOrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::HorizontalScrollChainModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollChainModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollChainModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::VerticalScrollChainModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollChainModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollChainModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::HorizontalScrollRailModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollRailModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollRailModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::VerticalScrollRailModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollRailModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollRailModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::HorizontalScrollModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::VerticalScrollModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ComputedHorizontalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ComputedVerticalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ComputedHorizontalScrollModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ComputedVerticalScrollModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ZoomChainModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomChainModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomChainModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::ZoomModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::IgnoredInputKindsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IgnoredInputKindsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IgnoredInputKindsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::MinZoomFactorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomFactorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::MaxZoomFactorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomFactorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::HorizontalAnchorRatioProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatioProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewStatics::VerticalAnchorRatioProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatioProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalScrollBarVisibility(winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollBarVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollBarVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalScrollBarVisibility(winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollBarVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollBarVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsHorizontalRailEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalRailEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalRailEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsHorizontalRailEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHorizontalRailEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHorizontalRailEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsVerticalRailEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVerticalRailEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVerticalRailEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsVerticalRailEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsVerticalRailEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsVerticalRailEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsHorizontalScrollChainingEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalScrollChainingEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalScrollChainingEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsHorizontalScrollChainingEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHorizontalScrollChainingEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHorizontalScrollChainingEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsVerticalScrollChainingEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVerticalScrollChainingEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVerticalScrollChainingEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsVerticalScrollChainingEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsVerticalScrollChainingEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsVerticalScrollChainingEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsZoomChainingEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomChainingEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomChainingEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsZoomChainingEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomChainingEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomChainingEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsScrollInertiaEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsScrollInertiaEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsScrollInertiaEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsScrollInertiaEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsScrollInertiaEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsScrollInertiaEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsZoomInertiaEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomInertiaEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomInertiaEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsZoomInertiaEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomInertiaEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomInertiaEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalScrollMode(winrt::Microsoft::UI::Xaml::Controls::ScrollMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalScrollMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalScrollMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalScrollMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalScrollMode(winrt::Microsoft::UI::Xaml::Controls::ScrollMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalScrollMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalScrollMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ZoomMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomMode(winrt::Microsoft::UI::Xaml::Controls::ZoomMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalSnapPointsAlignment() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointsAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalSnapPointsAlignment(winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointsAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalSnapPointsAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalSnapPointsAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalSnapPointsAlignment() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointsAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalSnapPointsAlignment(winrt::Microsoft::UI::Xaml::Controls::Primitives::SnapPointsAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalSnapPointsAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalSnapPointsAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalSnapPointsType() const + { + winrt::Microsoft::UI::Xaml::Controls::SnapPointsType value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsType(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsType(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalSnapPointsType(winrt::Microsoft::UI::Xaml::Controls::SnapPointsType const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalSnapPointsType(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalSnapPointsType(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalSnapPointsType() const + { + winrt::Microsoft::UI::Xaml::Controls::SnapPointsType value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsType(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsType(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalSnapPointsType(winrt::Microsoft::UI::Xaml::Controls::SnapPointsType const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalSnapPointsType(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalSnapPointsType(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomSnapPointsType() const + { + winrt::Microsoft::UI::Xaml::Controls::SnapPointsType value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomSnapPointsType(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomSnapPointsType(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomSnapPointsType(winrt::Microsoft::UI::Xaml::Controls::SnapPointsType const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomSnapPointsType(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomSnapPointsType(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewportWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ScrollableWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ComputedHorizontalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ExtentWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewportHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ScrollableHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ComputedVerticalScrollBarVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ExtentHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::MinZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::MinZoomFactor(float value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinZoomFactor(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinZoomFactor(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::MaxZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::MaxZoomFactor(float value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxZoomFactor(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxZoomFactor(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomSnapPoints() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomSnapPoints(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomSnapPoints(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::TopLeftHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopLeftHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopLeftHeader(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::TopLeftHeader(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopLeftHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopLeftHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::LeftHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeader(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::LeftHeader(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::TopHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopHeader(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::TopHeader(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ReduceViewportForCoreInputViewOcclusions() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReduceViewportForCoreInputViewOcclusions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReduceViewportForCoreInputViewOcclusions(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ReduceViewportForCoreInputViewOcclusions(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ReduceViewportForCoreInputViewOcclusions(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ReduceViewportForCoreInputViewOcclusions(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalAnchorRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::HorizontalAnchorRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalAnchorRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalAnchorRatio() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatio(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::VerticalAnchorRatio(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalAnchorRatio(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::CanContentRenderOutsideBounds() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBounds(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBounds(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::CanContentRenderOutsideBounds(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanContentRenderOutsideBounds(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanContentRenderOutsideBounds(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::AnchorRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AnchorRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AnchorRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::AnchorRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, AnchorRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::AnchorRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AnchorRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_AnchorRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewChanging(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ViewChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ViewChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewChanging(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, ViewChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ViewChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ViewChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewChanged(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ViewChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ViewChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, ViewChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ViewChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ViewChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ViewChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::DirectManipulationStarted(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DirectManipulationStarted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DirectManipulationStarted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::DirectManipulationStarted(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, DirectManipulationStarted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::DirectManipulationStarted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DirectManipulationStarted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DirectManipulationStarted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::DirectManipulationCompleted(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DirectManipulationCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DirectManipulationCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::DirectManipulationCompleted(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, DirectManipulationCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::DirectManipulationCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DirectManipulationCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DirectManipulationCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ScrollToHorizontalOffset(double offset) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollToHorizontalOffset(offset)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollToHorizontalOffset(offset)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ScrollToVerticalOffset(double offset) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ScrollToVerticalOffset(offset)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ScrollToVerticalOffset(offset)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ZoomToFactor(float factor) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ZoomToFactor(factor)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ZoomToFactor(factor)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ChangeView(winrt::Windows::Foundation::IReference const& horizontalOffset, winrt::Windows::Foundation::IReference const& verticalOffset, winrt::Windows::Foundation::IReference const& zoomFactor) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ChangeView(*(void**)(&horizontalOffset), *(void**)(&verticalOffset), *(void**)(&zoomFactor), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ChangeView(*(void**)(&horizontalOffset), *(void**)(&verticalOffset), *(void**)(&zoomFactor), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::ChangeView(winrt::Windows::Foundation::IReference const& horizontalOffset, winrt::Windows::Foundation::IReference const& verticalOffset, winrt::Windows::Foundation::IReference const& zoomFactor, bool disableAnimation) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ChangeViewWithOptionalAnimation(*(void**)(&horizontalOffset), *(void**)(&verticalOffset), *(void**)(&zoomFactor), disableAnimation, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ChangeViewWithOptionalAnimation(*(void**)(&horizontalOffset), *(void**)(&verticalOffset), *(void**)(&zoomFactor), disableAnimation, &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::InvalidateScrollInfo() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateScrollInfo()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateScrollInfo()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsDeferredScrollingEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDeferredScrollingEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDeferredScrollingEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::IsDeferredScrollingEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDeferredScrollingEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDeferredScrollingEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::BringIntoViewOnFocusChange() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BringIntoViewOnFocusChange(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BringIntoViewOnFocusChange(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewer::BringIntoViewOnFocusChange(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BringIntoViewOnFocusChange(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BringIntoViewOnFocusChange(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::HorizontalSnapPointsAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::VerticalSnapPointsAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::HorizontalSnapPointsTypeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsTypeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalSnapPointsTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::VerticalSnapPointsTypeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsTypeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalSnapPointsTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ZoomSnapPointsTypeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomSnapPointsTypeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomSnapPointsTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::HorizontalOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ViewportWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ScrollableWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ComputedHorizontalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedHorizontalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ExtentWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::VerticalOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ViewportHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewportHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewportHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ScrollableHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScrollableHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScrollableHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ComputedVerticalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ComputedVerticalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ExtentHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtentHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtentHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::MinZoomFactorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinZoomFactorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::MaxZoomFactorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxZoomFactorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ZoomFactorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomFactorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomFactorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ZoomSnapPointsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomSnapPointsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomSnapPointsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::TopLeftHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopLeftHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopLeftHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::LeftHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::TopHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ReduceViewportForCoreInputViewOcclusionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ReduceViewportForCoreInputViewOcclusionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ReduceViewportForCoreInputViewOcclusionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::HorizontalAnchorRatioProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatioProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAnchorRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::VerticalAnchorRatioProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatioProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAnchorRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::HorizontalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetHorizontalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHorizontalScrollBarVisibility(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHorizontalScrollBarVisibility(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetHorizontalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility const& horizontalScrollBarVisibility) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHorizontalScrollBarVisibility(*(void**)(&element), static_cast(horizontalScrollBarVisibility))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHorizontalScrollBarVisibility(*(void**)(&element), static_cast(horizontalScrollBarVisibility))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::VerticalScrollBarVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollBarVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetVerticalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetVerticalScrollBarVisibility(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetVerticalScrollBarVisibility(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetVerticalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility const& verticalScrollBarVisibility) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVerticalScrollBarVisibility(*(void**)(&element), static_cast(verticalScrollBarVisibility))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVerticalScrollBarVisibility(*(void**)(&element), static_cast(verticalScrollBarVisibility))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsHorizontalRailEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalRailEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalRailEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsHorizontalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsHorizontalRailEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsHorizontalRailEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsHorizontalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isHorizontalRailEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsHorizontalRailEnabled(*(void**)(&element), isHorizontalRailEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsHorizontalRailEnabled(*(void**)(&element), isHorizontalRailEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsVerticalRailEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVerticalRailEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVerticalRailEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsVerticalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsVerticalRailEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsVerticalRailEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsVerticalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isVerticalRailEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsVerticalRailEnabled(*(void**)(&element), isVerticalRailEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsVerticalRailEnabled(*(void**)(&element), isVerticalRailEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsHorizontalScrollChainingEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHorizontalScrollChainingEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHorizontalScrollChainingEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsHorizontalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsHorizontalScrollChainingEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsHorizontalScrollChainingEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsHorizontalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isHorizontalScrollChainingEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsHorizontalScrollChainingEnabled(*(void**)(&element), isHorizontalScrollChainingEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsHorizontalScrollChainingEnabled(*(void**)(&element), isHorizontalScrollChainingEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsVerticalScrollChainingEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVerticalScrollChainingEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVerticalScrollChainingEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsVerticalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsVerticalScrollChainingEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsVerticalScrollChainingEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsVerticalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isVerticalScrollChainingEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsVerticalScrollChainingEnabled(*(void**)(&element), isVerticalScrollChainingEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsVerticalScrollChainingEnabled(*(void**)(&element), isVerticalScrollChainingEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsZoomChainingEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomChainingEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomChainingEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsZoomChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsZoomChainingEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsZoomChainingEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsZoomChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isZoomChainingEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsZoomChainingEnabled(*(void**)(&element), isZoomChainingEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsZoomChainingEnabled(*(void**)(&element), isZoomChainingEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsScrollInertiaEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsScrollInertiaEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsScrollInertiaEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsScrollInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsScrollInertiaEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsScrollInertiaEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsScrollInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isScrollInertiaEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsScrollInertiaEnabled(*(void**)(&element), isScrollInertiaEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsScrollInertiaEnabled(*(void**)(&element), isScrollInertiaEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsZoomInertiaEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomInertiaEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomInertiaEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsZoomInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsZoomInertiaEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsZoomInertiaEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsZoomInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isZoomInertiaEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsZoomInertiaEnabled(*(void**)(&element), isZoomInertiaEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsZoomInertiaEnabled(*(void**)(&element), isZoomInertiaEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::HorizontalScrollModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalScrollModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetHorizontalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollMode result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHorizontalScrollMode(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHorizontalScrollMode(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetHorizontalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollMode const& horizontalScrollMode) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetHorizontalScrollMode(*(void**)(&element), static_cast(horizontalScrollMode))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetHorizontalScrollMode(*(void**)(&element), static_cast(horizontalScrollMode))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::VerticalScrollModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalScrollModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalScrollModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetVerticalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollMode result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetVerticalScrollMode(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetVerticalScrollMode(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetVerticalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollMode const& verticalScrollMode) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVerticalScrollMode(*(void**)(&element), static_cast(verticalScrollMode))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVerticalScrollMode(*(void**)(&element), static_cast(verticalScrollMode))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::ZoomModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetZoomMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::ZoomMode result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetZoomMode(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetZoomMode(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetZoomMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ZoomMode const& zoomMode) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetZoomMode(*(void**)(&element), static_cast(zoomMode))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetZoomMode(*(void**)(&element), static_cast(zoomMode))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::CanContentRenderOutsideBoundsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBoundsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanContentRenderOutsideBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetCanContentRenderOutsideBounds(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCanContentRenderOutsideBounds(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCanContentRenderOutsideBounds(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetCanContentRenderOutsideBounds(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool canContentRenderOutsideBounds) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetCanContentRenderOutsideBounds(*(void**)(&element), canContentRenderOutsideBounds)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetCanContentRenderOutsideBounds(*(void**)(&element), canContentRenderOutsideBounds)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::IsDeferredScrollingEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDeferredScrollingEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDeferredScrollingEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetIsDeferredScrollingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsDeferredScrollingEnabled(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsDeferredScrollingEnabled(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetIsDeferredScrollingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isDeferredScrollingEnabled) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIsDeferredScrollingEnabled(*(void**)(&element), isDeferredScrollingEnabled)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIsDeferredScrollingEnabled(*(void**)(&element), isDeferredScrollingEnabled)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::BringIntoViewOnFocusChangeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BringIntoViewOnFocusChangeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BringIntoViewOnFocusChangeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::GetBringIntoViewOnFocusChange(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBringIntoViewOnFocusChange(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBringIntoViewOnFocusChange(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerStatics::SetBringIntoViewOnFocusChange(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool bringIntoViewOnFocusChange) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetBringIntoViewOnFocusChange(*(void**)(&element), bringIntoViewOnFocusChange)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetBringIntoViewOnFocusChange(*(void**)(&element), bringIntoViewOnFocusChange)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerView::HorizontalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerView::VerticalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerView::ZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerViewChangedEventArgs::IsIntermediate() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsIntermediate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsIntermediate(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerViewChangingEventArgs::NextView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NextView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NextView(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollViewerView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerViewChangingEventArgs::FinalView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FinalView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FinalView(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollViewerView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollViewerViewChangingEventArgs::IsInertial() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingAnchorRequestedEventArgs::AnchorCandidates() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorCandidates(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorCandidates(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingAnchorRequestedEventArgs::AnchorElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnchorElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnchorElement(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingAnchorRequestedEventArgs::AnchorElement(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnchorElement(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnchorElement(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::SnapPointsMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SnapPointsMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SnapPointsMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::SnapPointsMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SnapPointsMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SnapPointsMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::RequestEventArgs() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestEventArgs(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestEventArgs(&value)); + } + return winrt::Microsoft::UI::Xaml::BringIntoViewRequestedEventArgs{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::TargetHorizontalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetHorizontalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetHorizontalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::TargetVerticalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetVerticalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetVerticalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::CorrelationId() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingBringingIntoViewEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollAnimationStartingEventArgs::Animation() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Animation(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Animation(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionAnimation{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollAnimationStartingEventArgs::Animation(winrt::Microsoft::UI::Composition::CompositionAnimation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Animation(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Animation(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollAnimationStartingEventArgs::StartPosition() const + { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPosition(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPosition(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollAnimationStartingEventArgs::EndPosition() const + { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPosition(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPosition(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollAnimationStartingEventArgs::CorrelationId() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollCompletedEventArgs::CorrelationId() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollOptions::AnimationMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnimationMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnimationMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollOptions::AnimationMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnimationMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnimationMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollOptions::SnapPointsMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SnapPointsMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SnapPointsMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollOptions::SnapPointsMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SnapPointsMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SnapPointsMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollOptionsFactory::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(static_cast(animationMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(static_cast(animationMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingScrollOptionsFactory::CreateInstance2(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& snapPointsMode, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance2(static_cast(animationMode), static_cast(snapPointsMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance2(static_cast(animationMode), static_cast(snapPointsMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollingScrollOptions{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomAnimationStartingEventArgs::CenterPoint() const + { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomAnimationStartingEventArgs::StartZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomAnimationStartingEventArgs::EndZoomFactor() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndZoomFactor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndZoomFactor(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomAnimationStartingEventArgs::Animation() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Animation(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Animation(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionAnimation{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomAnimationStartingEventArgs::Animation(winrt::Microsoft::UI::Composition::CompositionAnimation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Animation(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Animation(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomAnimationStartingEventArgs::CorrelationId() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomCompletedEventArgs::CorrelationId() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomOptions::AnimationMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnimationMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnimationMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomOptions::AnimationMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnimationMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnimationMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomOptions::SnapPointsMode() const + { + winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SnapPointsMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SnapPointsMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomOptions::SnapPointsMode(winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SnapPointsMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SnapPointsMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomOptionsFactory::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(static_cast(animationMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(static_cast(animationMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IScrollingZoomOptionsFactory::CreateInstance2(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& snapPointsMode, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance2(static_cast(animationMode), static_cast(snapPointsMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance2(static_cast(animationMode), static_cast(snapPointsMode), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ScrollingZoomOptions{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISectionsInViewChangedEventArgs::AddedSections() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddedSections(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddedSections(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISectionsInViewChangedEventArgs::RemovedSections() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RemovedSections(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RemovedSections(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectionChangedEventArgs::AddedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectionChangedEventArgs::RemovedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RemovedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RemovedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectionChangedEventArgsFactory::CreateInstanceWithRemovedItemsAndAddedItems(param::vector const& removedItems, param::vector const& addedItems, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithRemovedItemsAndAddedItems(*(void**)(&removedItems), *(void**)(&addedItems), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithRemovedItemsAndAddedItems(*(void**)(&removedItems), *(void**)(&addedItems), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventArgs{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBar::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBar::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBar::SelectedItem(winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBar::SelectionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBar::SelectionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBar::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SelectorBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItem::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItem::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItem::Icon() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Icon(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItem::Icon(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SelectorBarItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItemStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarItemStatics::IconProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarStatics::ItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISelectorBarStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ZoomedInView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomedInView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomedInView(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ISemanticZoomInformation{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ZoomedInView(winrt::Microsoft::UI::Xaml::Controls::ISemanticZoomInformation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomedInView(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomedInView(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ZoomedOutView() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomedOutView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomedOutView(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ISemanticZoomInformation{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ZoomedOutView(winrt::Microsoft::UI::Xaml::Controls::ISemanticZoomInformation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ZoomedOutView(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ZoomedOutView(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::IsZoomedInViewActive() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomedInViewActive(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomedInViewActive(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::IsZoomedInViewActive(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomedInViewActive(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomedInViewActive(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::CanChangeViews() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanChangeViews(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanChangeViews(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::CanChangeViews(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanChangeViews(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanChangeViews(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ViewChangeStarted(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ViewChangeStarted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ViewChangeStarted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ViewChangeStarted(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ViewChangeStarted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ViewChangeStarted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ViewChangeStarted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ViewChangeStarted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ViewChangeCompleted(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ViewChangeCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ViewChangeCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ViewChangeCompleted(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomViewChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ViewChangeCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ViewChangeCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ViewChangeCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ViewChangeCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::ToggleActiveView() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ToggleActiveView()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ToggleActiveView()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::IsZoomOutButtonEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomOutButtonEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomOutButtonEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoom::IsZoomOutButtonEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomOutButtonEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomOutButtonEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::SemanticZoomOwner() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SemanticZoomOwner(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SemanticZoomOwner(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SemanticZoom{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::SemanticZoomOwner(winrt::Microsoft::UI::Xaml::Controls::SemanticZoom const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SemanticZoomOwner(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SemanticZoomOwner(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::IsActiveView() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActiveView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActiveView(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::IsActiveView(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsActiveView(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsActiveView(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::IsZoomedInView() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomedInView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomedInView(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::IsZoomedInView(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsZoomedInView(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsZoomedInView(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::InitializeViewChange() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InitializeViewChange()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InitializeViewChange()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::CompleteViewChange() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CompleteViewChange()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CompleteViewChange()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::MakeVisible(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& item) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&item))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&item))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::StartViewChangeFrom(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& source, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& destination) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartViewChangeFrom(*(void**)(&source), *(void**)(&destination))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartViewChangeFrom(*(void**)(&source), *(void**)(&destination))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::StartViewChangeTo(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& source, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& destination) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartViewChangeTo(*(void**)(&source), *(void**)(&destination))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartViewChangeTo(*(void**)(&source), *(void**)(&destination))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::CompleteViewChangeFrom(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& source, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& destination) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CompleteViewChangeFrom(*(void**)(&source), *(void**)(&destination))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CompleteViewChangeFrom(*(void**)(&source), *(void**)(&destination))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomInformation::CompleteViewChangeTo(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& source, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& destination) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CompleteViewChangeTo(*(void**)(&source), *(void**)(&destination))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CompleteViewChangeTo(*(void**)(&source), *(void**)(&destination))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomLocation::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomLocation::Item(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Item(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Item(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomLocation::Bounds() const + { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomLocation::Bounds(winrt::Windows::Foundation::Rect const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Bounds(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Bounds(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomStatics::ZoomedInViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomedInViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomedInViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomStatics::ZoomedOutViewProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ZoomedOutViewProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ZoomedOutViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomStatics::IsZoomedInViewActiveProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomedInViewActiveProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomedInViewActiveProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomStatics::CanChangeViewsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanChangeViewsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanChangeViewsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomStatics::IsZoomOutButtonEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsZoomOutButtonEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsZoomOutButtonEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomViewChangedEventArgs::IsSourceZoomedInView() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSourceZoomedInView(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSourceZoomedInView(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomViewChangedEventArgs::IsSourceZoomedInView(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSourceZoomedInView(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSourceZoomedInView(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomViewChangedEventArgs::SourceItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceItem(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomViewChangedEventArgs::SourceItem(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SourceItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SourceItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomViewChangedEventArgs::DestinationItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DestinationItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DestinationItem(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISemanticZoomViewChangedEventArgs::DestinationItem(winrt::Microsoft::UI::Xaml::Controls::SemanticZoomLocation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DestinationItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DestinationItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::IntermediateValue() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IntermediateValue(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IntermediateValue(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::IntermediateValue(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IntermediateValue(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IntermediateValue(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::StepFrequency() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StepFrequency(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StepFrequency(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::StepFrequency(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StepFrequency(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StepFrequency(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::SnapsTo() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::SliderSnapsTo value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SnapsTo(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SnapsTo(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::SnapsTo(winrt::Microsoft::UI::Xaml::Controls::Primitives::SliderSnapsTo const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SnapsTo(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SnapsTo(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::TickFrequency() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TickFrequency(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TickFrequency(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::TickFrequency(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TickFrequency(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TickFrequency(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::TickPlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::TickPlacement value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TickPlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TickPlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::TickPlacement(winrt::Microsoft::UI::Xaml::Controls::Primitives::TickPlacement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TickPlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TickPlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::IsDirectionReversed() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDirectionReversed(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDirectionReversed(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::IsDirectionReversed(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDirectionReversed(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDirectionReversed(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::IsThumbToolTipEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsThumbToolTipEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsThumbToolTipEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::IsThumbToolTipEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsThumbToolTipEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsThumbToolTipEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::ThumbToolTipValueConverter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ThumbToolTipValueConverter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ThumbToolTipValueConverter(&value)); + } + return winrt::Microsoft::UI::Xaml::Data::IValueConverter{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::ThumbToolTipValueConverter(winrt::Microsoft::UI::Xaml::Data::IValueConverter const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ThumbToolTipValueConverter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ThumbToolTipValueConverter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISlider::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Slider{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::IntermediateValueProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IntermediateValueProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IntermediateValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::StepFrequencyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StepFrequencyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StepFrequencyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::SnapsToProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SnapsToProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SnapsToProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::TickFrequencyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TickFrequencyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TickFrequencyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::TickPlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TickPlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TickPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::IsDirectionReversedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDirectionReversedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDirectionReversedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::IsThumbToolTipEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsThumbToolTipEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsThumbToolTipEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::ThumbToolTipValueConverterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ThumbToolTipValueConverterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ThumbToolTipValueConverterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISliderStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Flyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Flyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Flyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Flyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Flyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Flyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Command() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Command(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::CommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::CommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Click(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Click(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Click(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButton::Click(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SplitButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButtonStatics::FlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButtonStatics::CommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitButtonStatics::CommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::Pane() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::Pane(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Pane(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Pane(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::IsPaneOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::IsPaneOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPaneOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPaneOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::OpenPaneLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::OpenPaneLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenPaneLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenPaneLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::CompactPaneLength() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::CompactPaneLength(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CompactPaneLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CompactPaneLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PanePlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::SplitViewPanePlacement value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanePlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanePlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PanePlacement(winrt::Microsoft::UI::Xaml::Controls::SplitViewPanePlacement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PanePlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PanePlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::DisplayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::SplitViewDisplayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::DisplayMode(winrt::Microsoft::UI::Xaml::Controls::SplitViewDisplayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DisplayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DisplayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::SplitViewTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneBackground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneBackground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneBackground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneBackground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PaneBackground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PaneBackground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneClosing(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneClosing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneClosing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneClosing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneClosing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneClosing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneClosing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneClosing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneClosed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneClosed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneClosed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneClosed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneClosed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneClosed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneClosed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneClosed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneOpening(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneOpening(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneOpened(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneOpened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneOpened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneOpened(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneOpened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitView::PaneOpened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneOpened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneOpened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SplitView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewPaneClosingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewPaneClosingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::PaneProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::IsPaneOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::OpenPaneLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenPaneLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenPaneLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::CompactPaneLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompactPaneLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompactPaneLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::PanePlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanePlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanePlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::DisplayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DisplayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::PaneBackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaneBackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaneBackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISplitViewStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayout::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayout::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayout::Spacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Spacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Spacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayout::Spacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Spacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Spacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StackLayout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayoutStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackLayoutStatics::SpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::AreScrollSnapPointsRegular() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegular(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegular(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::AreScrollSnapPointsRegular(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreScrollSnapPointsRegular(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreScrollSnapPointsRegular(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::BackgroundSizing() const + { + winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::BackgroundSizing(winrt::Microsoft::UI::Xaml::Controls::BackgroundSizing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BackgroundSizing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::BorderBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::BorderBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::BorderThickness() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::BorderThickness(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BorderThickness(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::CornerRadius() const + { + winrt::Microsoft::UI::Xaml::CornerRadius value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadius(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::CornerRadius(winrt::Microsoft::UI::Xaml::CornerRadius const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CornerRadius(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::Spacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Spacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Spacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanel::Spacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Spacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Spacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StackPanel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::AreScrollSnapPointsRegularProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegularProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegularProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::BackgroundSizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundSizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::BorderBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::BorderThicknessProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BorderThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::CornerRadiusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CornerRadiusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStackPanelStatics::SpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStyleSelector::SelectStyle(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectStyle(*(void**)(&item), *(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectStyle(*(void**)(&item), *(void**)(&container), &result)); + } + return winrt::Microsoft::UI::Xaml::Style{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStyleSelectorFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IStyleSelectorOverrides::SelectStyleCore(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectStyleCore(*(void**)(&item), *(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectStyleCore(*(void**)(&item), *(void**)(&container), &result)); + } + return winrt::Microsoft::UI::Xaml::Style{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainBackgroundPanelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwapChainBackgroundPanel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanel::CompositionScaleX() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositionScaleX(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositionScaleX(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanel::CompositionScaleY() const + { + float value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositionScaleY(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositionScaleY(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanel::CompositionScaleChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CompositionScaleChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CompositionScaleChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanel::CompositionScaleChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CompositionScaleChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanel::CompositionScaleChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CompositionScaleChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CompositionScaleChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanel::CreateCoreIndependentInputSource(winrt::Microsoft::UI::Input::InputPointerSourceDeviceKinds const& deviceKinds) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateCoreIndependentInputSource(static_cast(deviceKinds), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateCoreIndependentInputSource(static_cast(deviceKinds), &result)); + } + return winrt::Microsoft::UI::Input::InputPointerSource{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwapChainPanel{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanelStatics::CompositionScaleXProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositionScaleXProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositionScaleXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwapChainPanelStatics::CompositionScaleYProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositionScaleYProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositionScaleYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::LeftItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftItems(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeItems{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::LeftItems(winrt::Microsoft::UI::Xaml::Controls::SwipeItems const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftItems(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftItems(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::RightItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightItems(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeItems{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::RightItems(winrt::Microsoft::UI::Xaml::Controls::SwipeItems const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightItems(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightItems(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::TopItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopItems(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeItems{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::TopItems(winrt::Microsoft::UI::Xaml::Controls::SwipeItems const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopItems(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopItems(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::BottomItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomItems(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeItems{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::BottomItems(winrt::Microsoft::UI::Xaml::Controls::SwipeItems const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BottomItems(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BottomItems(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControl::Close() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Close()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Close()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControlStatics::LeftItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControlStatics::RightItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControlStatics::TopItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeControlStatics::BottomItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BottomItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BottomItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Background() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Background(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Command() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Command(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::CommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::CommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::BehaviorOnInvoked() const + { + winrt::Microsoft::UI::Xaml::Controls::SwipeBehaviorOnInvoked value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BehaviorOnInvoked(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BehaviorOnInvoked(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::BehaviorOnInvoked(winrt::Microsoft::UI::Xaml::Controls::SwipeBehaviorOnInvoked const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BehaviorOnInvoked(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BehaviorOnInvoked(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Invoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Invoked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Invoked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Invoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Invoked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItem::Invoked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Invoked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Invoked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemInvokedEventArgs::SwipeControl() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SwipeControl(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SwipeControl(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::BackgroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::CommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::CommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemStatics::BehaviorOnInvokedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BehaviorOnInvokedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BehaviorOnInvokedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItems::Mode() const + { + winrt::Microsoft::UI::Xaml::Controls::SwipeMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItems::Mode(winrt::Microsoft::UI::Xaml::Controls::SwipeMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SwipeItems{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISwipeItemsStatics::ModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIcon::Symbol() const + { + winrt::Microsoft::UI::Xaml::Controls::Symbol value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Symbol(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Symbol(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIcon::Symbol(winrt::Microsoft::UI::Xaml::Controls::Symbol const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Symbol(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Symbol(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIconFactory::CreateInstanceWithSymbol(winrt::Microsoft::UI::Xaml::Controls::Symbol const& symbol) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithSymbol(static_cast(symbol), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithSymbol(static_cast(symbol), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SymbolIcon{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIconSource::Symbol() const + { + winrt::Microsoft::UI::Xaml::Controls::Symbol value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Symbol(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Symbol(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIconSource::Symbol(winrt::Microsoft::UI::Xaml::Controls::Symbol const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Symbol(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Symbol(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIconSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::SymbolIconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIconSourceStatics::SymbolProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SymbolProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SymbolProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ISymbolIconStatics::SymbolProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SymbolProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SymbolProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabWidthMode() const + { + winrt::Microsoft::UI::Xaml::Controls::TabViewWidthMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabWidthMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabWidthMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabWidthMode(winrt::Microsoft::UI::Xaml::Controls::TabViewWidthMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabWidthMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabWidthMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::CloseButtonOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::TabViewCloseButtonOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::CloseButtonOverlayMode(winrt::Microsoft::UI::Xaml::Controls::TabViewCloseButtonOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripHeader(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripHeader(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabStripHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabStripHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripHeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripHeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripHeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripHeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabStripHeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabStripHeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripFooter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripFooter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripFooter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripFooter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabStripFooter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabStripFooter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripFooterTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripFooterTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripFooterTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripFooterTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabStripFooterTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabStripFooterTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::IsAddTabButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAddTabButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAddTabButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::IsAddTabButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAddTabButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAddTabButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddTabButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddTabButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AddTabButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AddTabButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddTabButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddTabButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AddTabButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AddTabButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabCloseRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabCloseRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabCloseRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabCloseRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabCloseRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabCloseRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabCloseRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabCloseRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDroppedOutside(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabDroppedOutside(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabDroppedOutside(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDroppedOutside(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabDroppedOutside(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDroppedOutside(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabDroppedOutside(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabDroppedOutside(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AddTabButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AddTabButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, AddTabButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AddTabButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AddTabButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_AddTabButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabItemsChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabItemsChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabItemsChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemsChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabItemsChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabItemsChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabItemTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabItemTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabItemTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::CanDragTabs() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragTabs(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragTabs(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::CanDragTabs(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanDragTabs(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanDragTabs(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::CanReorderTabs() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanReorderTabs(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanReorderTabs(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::CanReorderTabs(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanReorderTabs(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanReorderTabs(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AllowDropTabs() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowDropTabs(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowDropTabs(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::AllowDropTabs(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowDropTabs(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowDropTabs(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectedIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectedIndex(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedIndex(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::ContainerFromItem(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::ContainerFromIndex(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromIndex(index, &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectionChanged(winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDragStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabDragStarting(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabDragStarting(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDragStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabDragStarting(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDragStarting(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabDragStarting(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabDragStarting(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDragCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabDragCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabDragCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDragCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabDragCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabDragCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabDragCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabDragCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripDragOver(winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabStripDragOver(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabStripDragOver(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripDragOver(auto_revoke_t, winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabStripDragOver(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripDragOver(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabStripDragOver(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabStripDragOver(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripDrop(winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabStripDrop(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabStripDrop(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripDrop(auto_revoke_t, winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabStripDrop(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView::TabStripDrop(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabStripDrop(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabStripDrop(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::CanTearOutTabs() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanTearOutTabs(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanTearOutTabs(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::CanTearOutTabs(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanTearOutTabs(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanTearOutTabs(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::TabTearOutWindowRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabTearOutWindowRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabTearOutWindowRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::TabTearOutWindowRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabTearOutWindowRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::TabTearOutWindowRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabTearOutWindowRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabTearOutWindowRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::TabTearOutRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TabTearOutRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TabTearOutRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::TabTearOutRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TabTearOutRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::TabTearOutRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TabTearOutRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TabTearOutRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::ExternalTornOutTabsDropping(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ExternalTornOutTabsDropping(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ExternalTornOutTabsDropping(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::ExternalTornOutTabsDropping(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ExternalTornOutTabsDropping(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::ExternalTornOutTabsDropping(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ExternalTornOutTabsDropping(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ExternalTornOutTabsDropping(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::ExternalTornOutTabsDropped(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ExternalTornOutTabsDropped(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ExternalTornOutTabsDropped(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::ExternalTornOutTabsDropped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ExternalTornOutTabsDropped(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabView2::ExternalTornOutTabsDropped(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ExternalTornOutTabsDropped(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ExternalTornOutTabsDropped(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppedEventArgs::Items() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppedEventArgs::Tabs() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppedEventArgs::DropIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppingEventArgs::Items() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppingEventArgs::Tabs() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppingEventArgs::DropIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppingEventArgs::AllowDrop() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowDrop(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowDrop(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewExternalTornOutTabsDroppingEventArgs::AllowDrop(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowDrop(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowDrop(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::IsClosable() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClosable(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClosable(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::IsClosable(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsClosable(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsClosable(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::TabViewTemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabViewTemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabViewTemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::CloseRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CloseRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CloseRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::CloseRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CloseRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItem::CloseRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CloseRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CloseRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemStatics::IsClosableProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClosableProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClosableProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemStatics::TabViewTemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabViewTemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabViewTemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettings::IconElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettings::IconElement(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettings2::TabGeometry() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabGeometry(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabGeometry(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Geometry{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettings2::TabGeometry(winrt::Microsoft::UI::Xaml::Media::Geometry const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabGeometry(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabGeometry(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettingsStatics::IconElementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewItemTemplateSettingsStatics2::TabGeometryProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabGeometryProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabGeometryProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabWidthModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabWidthModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabWidthModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabStripHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabStripHeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripHeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripHeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabStripFooterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripFooterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripFooterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabStripFooterTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabStripFooterTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabStripFooterTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::IsAddTabButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAddTabButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAddTabButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::AddTabButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddTabButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddTabButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::AddTabButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddTabButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddTabButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::TabItemTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabItemTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabItemTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::CloseButtonOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::CanDragTabsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragTabsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragTabsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::CanReorderTabsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanReorderTabsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanReorderTabsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::AllowDropTabsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowDropTabsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowDropTabsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::SelectedIndexProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewStatics2::CanTearOutTabsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanTearOutTabsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanTearOutTabsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabCloseRequestedEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabCloseRequestedEventArgs::Tab() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragCompletedEventArgs::DropResult() const + { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragCompletedEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragCompletedEventArgs::Tab() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragStartingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragStartingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragStartingEventArgs::Data() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragStartingEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDragStartingEventArgs::Tab() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDroppedOutsideEventArgs::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabDroppedOutsideEventArgs::Tab() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tab(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TabViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutRequestedEventArgs::Items() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutRequestedEventArgs::Tabs() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutRequestedEventArgs::NewWindowId() const + { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewWindowId(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewWindowId(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutWindowRequestedEventArgs::Items() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutWindowRequestedEventArgs::Tabs() const + { + uint32_t value_impl_size{}; + void** value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tabs(&value_impl_size, &value)); + } + return com_array{ value, value_impl_size, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutWindowRequestedEventArgs::NewWindowId() const + { + winrt::Microsoft::UI::WindowId value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewWindowId(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewWindowId(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITabViewTabTearOutWindowRequestedEventArgs::NewWindowId(winrt::Microsoft::UI::WindowId const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NewWindowId(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NewWindowId(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Title() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Title(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Subtitle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Subtitle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Subtitle(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Subtitle(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Subtitle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Subtitle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::IsOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::IsOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Target() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + return winrt::Microsoft::UI::Xaml::FrameworkElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Target(winrt::Microsoft::UI::Xaml::FrameworkElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::TailVisibility() const + { + winrt::Microsoft::UI::Xaml::Controls::TeachingTipTailVisibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TailVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TailVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::TailVisibility(winrt::Microsoft::UI::Xaml::Controls::TeachingTipTailVisibility const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TailVisibility(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TailVisibility(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonContent(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonContent(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActionButtonContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActionButtonContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActionButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActionButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActionButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActionButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ActionButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ActionButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonContent(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonContent(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonCommand() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommand(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommand(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonCommand(winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonCommand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonCommand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonCommandParameter() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameter(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonCommandParameter(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CloseButtonCommandParameter(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CloseButtonCommandParameter(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::PlacementMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::PlacementMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlacementMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlacementMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ShouldConstrainToRootBounds() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ShouldConstrainToRootBounds(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::IsLightDismissEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::IsLightDismissEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsLightDismissEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsLightDismissEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::PreferredPlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::TeachingTipPlacementMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredPlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredPlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::PreferredPlacement(winrt::Microsoft::UI::Xaml::Controls::TeachingTipPlacementMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreferredPlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreferredPlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::HeroContentPlacement() const + { + winrt::Microsoft::UI::Xaml::Controls::TeachingTipHeroContentPlacementMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeroContentPlacement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeroContentPlacement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::HeroContentPlacement(winrt::Microsoft::UI::Xaml::Controls::TeachingTipHeroContentPlacementMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeroContentPlacement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeroContentPlacement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::HeroContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeroContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeroContent(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::HeroContent(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeroContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeroContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TeachingTipTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ActionButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ActionButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ActionButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::ActionButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ActionButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ActionButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonClick(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CloseButtonClick(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CloseButtonClick(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonClick(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CloseButtonClick(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::CloseButtonClick(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CloseButtonClick(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CloseButtonClick(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Closing(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Closing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closing(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Closing(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closing(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Closed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Closed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTip::Closed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipClosedEventArgs::Reason() const + { + winrt::Microsoft::UI::Xaml::Controls::TeachingTipCloseReason value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipClosingEventArgs::Reason() const + { + winrt::Microsoft::UI::Xaml::Controls::TeachingTipCloseReason value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipClosingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipClosingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipClosingEventArgs::GetDeferral() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Windows::Foundation::Deferral{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TeachingTip{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::IsOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::TargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::TailVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TailVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TailVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::TitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::SubtitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SubtitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SubtitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::ActionButtonContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::ActionButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::ActionButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::ActionButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActionButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActionButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::CloseButtonContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::CloseButtonStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::CloseButtonCommandProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::CloseButtonCommandParameterProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameterProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CloseButtonCommandParameterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::PlacementMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::ShouldConstrainToRootBoundsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::IsLightDismissEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLightDismissEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::PreferredPlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreferredPlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreferredPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::HeroContentPlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeroContentPlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeroContentPlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::HeroContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeroContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeroContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipStatics::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettings::TopRightHighlightMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopRightHighlightMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopRightHighlightMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettings::TopRightHighlightMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopRightHighlightMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopRightHighlightMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettings::TopLeftHighlightMargin() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopLeftHighlightMargin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopLeftHighlightMargin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettings::TopLeftHighlightMargin(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TopLeftHighlightMargin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TopLeftHighlightMargin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettings::IconElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettings::IconElement(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TeachingTipTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettingsStatics::TopRightHighlightMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopRightHighlightMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopRightHighlightMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettingsStatics::TopLeftHighlightMarginProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TopLeftHighlightMarginProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TopLeftHighlightMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITeachingTipTemplateSettingsStatics::IconElementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontFamily() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontFamily(winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontWeight() const + { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontWeight(winrt::Windows::UI::Text::FontWeight const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontStyle() const + { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontStyle(winrt::Windows::UI::Text::FontStyle const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontStretch() const + { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::FontStretch(winrt::Windows::UI::Text::FontStretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::CharacterSpacing() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::CharacterSpacing(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Foreground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Foreground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextWrapping() const + { + winrt::Microsoft::UI::Xaml::TextWrapping value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextWrapping(winrt::Microsoft::UI::Xaml::TextWrapping const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextTrimming() const + { + winrt::Microsoft::UI::Xaml::TextTrimming value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextTrimming(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextTrimming(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextTrimming(winrt::Microsoft::UI::Xaml::TextTrimming const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextTrimming(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextTrimming(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Inlines() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Inlines(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Inlines(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::InlineCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Padding() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Padding(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Padding(winrt::Microsoft::UI::Xaml::Thickness const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Padding(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::LineHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::LineHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::LineStackingStrategy() const + { + winrt::Microsoft::UI::Xaml::LineStackingStrategy value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategy(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategy(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::LineStackingStrategy(winrt::Microsoft::UI::Xaml::LineStackingStrategy const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextSelectionEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextSelectionEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextSelectionEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextSelectionEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectedText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::ContentStart() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::ContentEnd() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionStart() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionEnd() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionEnd(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::BaselineOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaselineOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaselineOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionHighlightColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionHighlightColor(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::MaxLines() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLines(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::MaxLines(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLines(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextLineBounds() const + { + winrt::Microsoft::UI::Xaml::TextLineBounds value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextLineBounds(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextLineBounds(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextLineBounds(winrt::Microsoft::UI::Xaml::TextLineBounds const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextLineBounds(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextLineBounds(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::OpticalMarginAlignment() const + { + winrt::Microsoft::UI::Xaml::OpticalMarginAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::OpticalMarginAlignment(winrt::Microsoft::UI::Xaml::OpticalMarginAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpticalMarginAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpticalMarginAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsColorFontEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsColorFontEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextReadingOrder() const + { + winrt::Microsoft::UI::Xaml::TextReadingOrder value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextReadingOrder(winrt::Microsoft::UI::Xaml::TextReadingOrder const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextScaleFactorEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextScaleFactorEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextDecorations() const + { + winrt::Windows::UI::Text::TextDecorations value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDecorations(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextDecorations(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextDecorations(winrt::Windows::UI::Text::TextDecorations const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextDecorations(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextDecorations(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextTrimmed() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextTrimmed(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextTrimmed(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::HorizontalTextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::HorizontalTextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::TextHighlighters() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextHighlighters(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextHighlighters(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionFlyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionChanged(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::ContextMenuOpening(winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::ContextMenuOpening(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + return impl::make_event_revoker(this, ContextMenuOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::ContextMenuOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextTrimmedChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsTextTrimmedChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_IsTextTrimmedChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextTrimmedChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, IsTextTrimmedChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::IsTextTrimmedChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsTextTrimmedChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_IsTextTrimmedChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::Select(winrt::Microsoft::UI::Xaml::Documents::TextPointer const& start, winrt::Microsoft::UI::Xaml::Documents::TextPointer const& end) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Select(*(void**)(&start), *(void**)(&end))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Select(*(void**)(&start), *(void**)(&end))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::GetAlphaMask() const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlphaMask(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlphaMask(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlock::CopySelectionToClipboard() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CopySelectionToClipboard()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CopySelectionToClipboard()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::FontSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::FontFamilyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::FontWeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::FontStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::FontStretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::CharacterSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::ForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextWrappingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextTrimmingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextTrimmingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextTrimmingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::PaddingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PaddingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::LineHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::LineStackingStrategyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::IsTextSelectionEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextSelectionEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::SelectedTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::SelectionHighlightColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::MaxLinesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLinesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextLineBoundsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextLineBoundsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextLineBoundsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::OpticalMarginAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpticalMarginAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::IsColorFontEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextReadingOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::IsTextScaleFactorEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::TextDecorationsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDecorationsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextDecorationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::IsTextTrimmedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextTrimmedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextTrimmedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::HorizontalTextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBlockStatics::SelectionFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Text() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Text(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectedText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectedText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionLength(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionStart() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionStart(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionStart(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionStart(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::MaxLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::MaxLength(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxLength(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxLength(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsReadOnly() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsReadOnly(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsReadOnly(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsReadOnly(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::AcceptsReturn() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptsReturn(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptsReturn(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::AcceptsReturn(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AcceptsReturn(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AcceptsReturn(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextWrapping() const + { + winrt::Microsoft::UI::Xaml::TextWrapping value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrapping(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextWrapping(winrt::Microsoft::UI::Xaml::TextWrapping const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextWrapping(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsSpellCheckEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsSpellCheckEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSpellCheckEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSpellCheckEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsTextPredictionEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsTextPredictionEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextPredictionEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextPredictionEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::InputScope() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InputScope(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InputScope(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::InputScope{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::InputScope(winrt::Microsoft::UI::Xaml::Input::InputScope const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_InputScope(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_InputScope(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PlaceholderText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PlaceholderText(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderText(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionHighlightColor() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColor(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionHighlightColor(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColor(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PreventKeyboardDisplayOnProgrammaticFocus() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocus(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PreventKeyboardDisplayOnProgrammaticFocus(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PreventKeyboardDisplayOnProgrammaticFocus(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsColorFontEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::IsColorFontEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionHighlightColorWhenNotFocused() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocused(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocused(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionHighlightColorWhenNotFocused(winrt::Microsoft::UI::Xaml::Media::SolidColorBrush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionHighlightColorWhenNotFocused(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionHighlightColorWhenNotFocused(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::HorizontalTextAlignment() const + { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::HorizontalTextAlignment(winrt::Microsoft::UI::Xaml::TextAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CharacterCasing() const + { + winrt::Microsoft::UI::Xaml::Controls::CharacterCasing value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterCasing(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterCasing(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CharacterCasing(winrt::Microsoft::UI::Xaml::Controls::CharacterCasing const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterCasing(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterCasing(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PlaceholderForeground() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderForeground(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderForeground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PlaceholderForeground(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlaceholderForeground(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlaceholderForeground(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CanPasteClipboardContent() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContent(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CanUndo() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanUndo(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanUndo(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CanRedo() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanRedo(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanRedo(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionFlyout(winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionFlyout(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::ProofingMenuFlyout() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyout(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Description() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Description(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextChanged(winrt::Microsoft::UI::Xaml::Controls::TextChangedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::TextChangedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionChanged(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionChanged(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::ContextMenuOpening(winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextMenuOpening(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::ContextMenuOpening(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::ContextMenuOpeningEventHandler const& handler) const + { + return impl::make_event_revoker(this, ContextMenuOpening(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::ContextMenuOpening(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ContextMenuOpening(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Paste(winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Paste(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Paste(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Paste(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventHandler const& handler) const + { + return impl::make_event_revoker(this, Paste(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Paste(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Paste(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Paste(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionStarted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextCompositionStarted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextCompositionStarted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionStarted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextCompositionStarted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionStarted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextCompositionStarted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextCompositionStarted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextCompositionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextCompositionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextCompositionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextCompositionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextCompositionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionEnded(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextCompositionEnded(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextCompositionEnded(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionEnded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextCompositionEnded(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextCompositionEnded(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextCompositionEnded(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextCompositionEnded(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CopyingToClipboard(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CopyingToClipboard(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CopyingToClipboard(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CopyingToClipboard(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CopyingToClipboard(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CopyingToClipboard(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CopyingToClipboard(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CopyingToClipboard(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CuttingToClipboard(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CuttingToClipboard(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CuttingToClipboard(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CuttingToClipboard(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CuttingToClipboard(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CuttingToClipboard(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CuttingToClipboard(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CuttingToClipboard(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::BeforeTextChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BeforeTextChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BeforeTextChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::BeforeTextChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, BeforeTextChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::BeforeTextChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_BeforeTextChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_BeforeTextChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectionChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Select(int32_t start, int32_t length) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Select(start, length)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Select(start, length)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::GetRectFromCharacterIndex(int32_t charIndex, bool trailingEdge) const + { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRectFromCharacterIndex(charIndex, trailingEdge, put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRectFromCharacterIndex(charIndex, trailingEdge, put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::GetLinguisticAlternativesAsync() const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLinguisticAlternativesAsync(&operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLinguisticAlternativesAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Undo() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Undo()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Undo()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::Redo() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Redo()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Redo()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::PasteFromClipboard() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PasteFromClipboard()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->PasteFromClipboard()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CopySelectionToClipboard() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CopySelectionToClipboard()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CopySelectionToClipboard()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CutSelectionToClipboard() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CutSelectionToClipboard()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CutSelectionToClipboard()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::ClearUndoRedoHistory() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearUndoRedoHistory()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ClearUndoRedoHistory()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextReadingOrder() const + { + winrt::Microsoft::UI::Xaml::TextReadingOrder value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrder(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextReadingOrder(winrt::Microsoft::UI::Xaml::TextReadingOrder const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextReadingOrder(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::DesiredCandidateWindowAlignment() const + { + winrt::Microsoft::UI::Xaml::Controls::CandidateWindowAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::DesiredCandidateWindowAlignment(winrt::Microsoft::UI::Xaml::Controls::CandidateWindowAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredCandidateWindowAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DesiredCandidateWindowAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CandidateWindowBoundsChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CandidateWindowBoundsChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CandidateWindowBoundsChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CandidateWindowBoundsChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CandidateWindowBoundsChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::CandidateWindowBoundsChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CandidateWindowBoundsChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CandidateWindowBoundsChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextChanging(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TextChanging(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TextChanging(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextChanging(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TextChanging(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBox::TextChanging(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TextChanging(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TextChanging(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxBeforeTextChangingEventArgs::NewText() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewText(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewText(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxBeforeTextChangingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxBeforeTextChangingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TextBox{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxSelectionChangingEventArgs::SelectionStart() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionStart(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxSelectionChangingEventArgs::SelectionLength() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionLength(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionLength(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxSelectionChangingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxSelectionChangingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::TextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::MaxLengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxLengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::IsReadOnlyProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnlyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::AcceptsReturnProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptsReturnProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptsReturnProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::TextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::TextWrappingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextWrappingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::IsSpellCheckEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSpellCheckEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::IsTextPredictionEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextPredictionEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::InputScopeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InputScopeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InputScopeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::PlaceholderTextProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderTextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::SelectionHighlightColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::PreventKeyboardDisplayOnProgrammaticFocusProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreventKeyboardDisplayOnProgrammaticFocusProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::IsColorFontEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::SelectionHighlightColorWhenNotFocusedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocusedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionHighlightColorWhenNotFocusedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::HorizontalTextAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::CharacterCasingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterCasingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterCasingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::PlaceholderForegroundProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlaceholderForegroundProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlaceholderForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::CanPasteClipboardContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanPasteClipboardContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::CanUndoProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanUndoProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanUndoProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::CanRedoProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanRedoProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanRedoProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::SelectionFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::ProofingMenuFlyoutProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyoutProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProofingMenuFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::DescriptionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::DesiredCandidateWindowAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredCandidateWindowAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxStatics::TextReadingOrderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextReadingOrderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextBoxTextChangingEventArgs::IsContentChanging() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContentChanging(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContentChanging(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCommandBarFlyoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TextCommandBarFlyout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCompositionChangedEventArgs::StartIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCompositionChangedEventArgs::Length() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCompositionEndedEventArgs::StartIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCompositionEndedEventArgs::Length() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCompositionStartedEventArgs::StartIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextCompositionStartedEventArgs::Length() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextControlCopyingToClipboardEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextControlCopyingToClipboardEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextControlCuttingToClipboardEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextControlCuttingToClipboardEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextControlPasteEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITextControlPasteEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickedEventArgs::OldTime() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldTime(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldTime(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickedEventArgs::NewTime() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewTime(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewTime(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::ClockIdentifier() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClockIdentifier(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClockIdentifier(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::ClockIdentifier(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClockIdentifier(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClockIdentifier(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::MinuteIncrement() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinuteIncrement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinuteIncrement(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::MinuteIncrement(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinuteIncrement(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinuteIncrement(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::Time() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Time(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Time(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::Time(winrt::Windows::Foundation::TimeSpan const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Time(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Time(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::LightDismissOverlayMode() const + { + winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::LightDismissOverlayMode(winrt::Microsoft::UI::Xaml::Controls::LightDismissOverlayMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::SelectedTime() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedTime(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedTime(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::SelectedTime(winrt::Windows::Foundation::IReference const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedTime(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedTime(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::TimeChanged(winrt::Windows::Foundation::EventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TimeChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TimeChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::TimeChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const + { + return impl::make_event_revoker(this, TimeChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::TimeChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TimeChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TimeChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::SelectedTimeChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectedTimeChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectedTimeChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::SelectedTimeChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectedTimeChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePicker::SelectedTimeChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectedTimeChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectedTimeChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TimePicker{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::ClockIdentifier() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClockIdentifier(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClockIdentifier(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::ClockIdentifier(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClockIdentifier(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClockIdentifier(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::Time() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Time(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Time(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::Time(winrt::Windows::Foundation::TimeSpan const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Time(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Time(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::MinuteIncrement() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinuteIncrement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinuteIncrement(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::MinuteIncrement(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinuteIncrement(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinuteIncrement(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::TimePicked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TimePicked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TimePicked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::TimePicked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, TimePicked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::TimePicked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TimePicked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TimePicked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyout::ShowAtAsync(winrt::Microsoft::UI::Xaml::FrameworkElement const& target) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ShowAtAsync(*(void**)(&target), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyoutPresenter::IsDefaultShadowEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyoutPresenter::IsDefaultShadowEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDefaultShadowEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyoutPresenterStatics::IsDefaultShadowEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDefaultShadowEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyoutStatics::ClockIdentifierProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClockIdentifierProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClockIdentifierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyoutStatics::TimeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TimeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerFlyoutStatics::MinuteIncrementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinuteIncrementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinuteIncrementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerSelectedValueChangedEventArgs::OldTime() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldTime(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldTime(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerSelectedValueChangedEventArgs::NewTime() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewTime(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewTime(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::ClockIdentifierProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClockIdentifierProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClockIdentifierProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::MinuteIncrementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinuteIncrementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinuteIncrementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::TimeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TimeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::LightDismissOverlayModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerStatics::SelectedTimeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedTimeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerValueChangedEventArgs::OldTime() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldTime(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldTime(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITimePickerValueChangedEventArgs::NewTime() const + { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewTime(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewTime(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::Title() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::Title(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::Subtitle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Subtitle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Subtitle(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::Subtitle(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Subtitle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Subtitle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IconSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IconSource(winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::LeftHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeader(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::LeftHeader(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LeftHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LeftHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::RightHeader() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightHeader(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightHeader(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::RightHeader(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RightHeader(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RightHeader(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IsBackButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IsBackButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsBackButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsBackButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IsBackButtonEnabled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackButtonEnabled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackButtonEnabled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IsBackButtonEnabled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsBackButtonEnabled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsBackButtonEnabled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IsPaneToggleButtonVisible() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisible(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisible(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::IsPaneToggleButtonVisible(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsPaneToggleButtonVisible(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsPaneToggleButtonVisible(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TitleBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::BackRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BackRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BackRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::BackRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, BackRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::BackRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_BackRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_BackRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::PaneToggleRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PaneToggleRequested(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PaneToggleRequested(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::PaneToggleRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, PaneToggleRequested(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBar::PaneToggleRequested(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PaneToggleRequested(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_PaneToggleRequested(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarAutomationPeerFactory::CreateInstance(winrt::Microsoft::UI::Xaml::Controls::TitleBar const& owner, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&owner), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&owner), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TitleBarAutomationPeer{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TitleBar{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::TitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::SubtitleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SubtitleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SubtitleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::IconSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::LeftHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LeftHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LeftHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::RightHeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightHeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightHeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::IsBackButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::IsBackButtonEnabledProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBackButtonEnabledProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBackButtonEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::IsPaneToggleButtonVisibleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisibleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPaneToggleButtonVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarStatics::TemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarTemplateSettings::IconElement() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElement(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarTemplateSettings::IconElement(winrt::Microsoft::UI::Xaml::Controls::IconElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconElement(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TitleBarTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITitleBarTemplateSettingsStatics::IconElementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleMenuFlyoutItem::IsChecked() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleMenuFlyoutItem::IsChecked(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsChecked(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsChecked(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleMenuFlyoutItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ToggleMenuFlyoutItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleMenuFlyoutItemStatics::IsCheckedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButton::IsChecked() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsChecked(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButton::IsChecked(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsChecked(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsChecked(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButton::IsCheckedChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsCheckedChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_IsCheckedChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButton::IsCheckedChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, IsCheckedChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButton::IsCheckedChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsCheckedChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_IsCheckedChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ToggleSplitButton{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSplitButtonStatics::IsCheckedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::IsOn() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOn(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOn(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::IsOn(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOn(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOn(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::Header() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Header(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::Header(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Header(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::HeaderTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::HeaderTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HeaderTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OnContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OnContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OnContent(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OnContent(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OnContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OnContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OnContentTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OnContentTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OnContentTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OnContentTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OnContentTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OnContentTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OffContent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffContent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffContent(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OffContent(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OffContent(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OffContent(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OffContentTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffContentTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffContentTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::OffContentTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OffContentTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OffContentTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ToggleSwitchTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::Toggled(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Toggled(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Toggled(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::Toggled(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Toggled(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitch::Toggled(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Toggled(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Toggled(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchOverrides::OnToggled() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnToggled()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnToggled()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchOverrides::OnOnContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnOnContentChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnOnContentChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchOverrides::OnOffContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnOffContentChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnOffContentChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchOverrides::OnHeaderChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnHeaderChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnHeaderChanged(*(void**)(&oldContent), *(void**)(&newContent))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::IsOnProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOnProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOnProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::HeaderProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::HeaderTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeaderTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::OnContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OnContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OnContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::OnContentTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OnContentTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OnContentTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::OffContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToggleSwitchStatics::OffContentTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffContentTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffContentTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::HorizontalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::HorizontalOffset(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::IsOpen() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpen(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::IsOpen(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsOpen(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Placement() const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::PlacementMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Placement(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Placement(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Placement(winrt::Microsoft::UI::Xaml::Controls::Primitives::PlacementMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::PlacementTarget() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementTarget(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::PlacementTarget(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlacementTarget(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlacementTarget(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::PlacementRect() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementRect(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementRect(&value)); + } + return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::PlacementRect(winrt::Windows::Foundation::IReference const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PlacementRect(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PlacementRect(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::VerticalOffset() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::VerticalOffset(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::TemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::ToolTipTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Closed(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Closed(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Closed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Closed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Opened(winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Opened(auto_revoke_t, winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Opened(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTip::Opened(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ToolTip{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::PlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::GetPlacement(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::Primitives::PlacementMode result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPlacement(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPlacement(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::SetPlacement(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::Primitives::PlacementMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPlacement(*(void**)(&element), static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPlacement(*(void**)(&element), static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::PlacementTargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::GetPlacementTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPlacementTarget(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPlacementTarget(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::SetPlacementTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPlacementTarget(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPlacementTarget(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::ToolTipProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToolTipProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToolTipProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::GetToolTip(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetToolTip(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetToolTip(*(void**)(&element), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipServiceStatics::SetToolTip(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetToolTip(*(void**)(&element), *(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetToolTip(*(void**)(&element), *(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipStatics::HorizontalOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipStatics::IsOpenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipStatics::PlacementProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipStatics::PlacementTargetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipStatics::PlacementRectProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PlacementRectProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PlacementRectProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IToolTipStatics::VerticalOffsetProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::RootNodes() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RootNodes(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RootNodes(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::SelectionMode() const + { + winrt::Microsoft::UI::Xaml::Controls::TreeViewSelectionMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionMode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::SelectionMode(winrt::Microsoft::UI::Xaml::Controls::TreeViewSelectionMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectionMode(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::SelectedNodes() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedNodes(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedNodes(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Expand(winrt::Microsoft::UI::Xaml::Controls::TreeViewNode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Expand(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Expand(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Collapse(winrt::Microsoft::UI::Xaml::Controls::TreeViewNode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Collapse(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Collapse(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::SelectAll() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectAll()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectAll()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::ItemInvoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ItemInvoked(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ItemInvoked(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::ItemInvoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ItemInvoked(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::ItemInvoked(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ItemInvoked(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ItemInvoked(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Expanding(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Expanding(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Expanding(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Expanding(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Expanding(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Expanding(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Expanding(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Expanding(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Collapsed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_Collapsed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_Collapsed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Collapsed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, Collapsed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView::Collapsed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Collapsed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Collapsed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::NodeFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NodeFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->NodeFromContainer(*(void**)(&container), &result)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewNode{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ContainerFromNode(winrt::Microsoft::UI::Xaml::Controls::TreeViewNode const& node) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromNode(*(void**)(&node), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromNode(*(void**)(&node), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemFromContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ItemFromContainer(*(void**)(&container), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ItemFromContainer(*(void**)(&container), &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ContainerFromItem(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ContainerFromItem(*(void**)(&item), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::CanDragItems() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragItems(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::CanDragItems(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanDragItems(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanDragItems(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::CanReorderItems() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanReorderItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanReorderItems(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::CanReorderItems(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanReorderItems(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanReorderItems(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemTemplate() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemTemplate(winrt::Microsoft::UI::Xaml::DataTemplate const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemTemplateSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemTemplateSelector(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemTemplateSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemTemplateSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemContainerStyle() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyle(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyle(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemContainerStyle(winrt::Microsoft::UI::Xaml::Style const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainerStyle(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainerStyle(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemContainerStyleSelector() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelector(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelector(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::StyleSelector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemContainerStyleSelector(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainerStyleSelector(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainerStyleSelector(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemContainerTransitions() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerTransitions(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerTransitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemContainerTransitions(winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemContainerTransitions(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemContainerTransitions(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::DragItemsStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DragItemsStarting(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DragItemsStarting(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::DragItemsStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DragItemsStarting(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::DragItemsStarting(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragItemsStarting(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DragItemsStarting(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::DragItemsCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DragItemsCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DragItemsCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::DragItemsCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, DragItemsCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::DragItemsCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragItemsCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_DragItemsCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::SelectedNode() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedNode(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedNode(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewNode{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::SelectedNode(winrt::Microsoft::UI::Xaml::Controls::TreeViewNode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedNode(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedNode(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::SelectedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView2::SelectedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView3::SelectionChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView3::SelectionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, SelectionChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeView3::SelectionChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewCollapsedEventArgs::Node() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Node(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Node(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewNode{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewCollapsedEventArgs2::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsCompletedEventArgs::DropResult() const + { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsCompletedEventArgs::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsCompletedEventArgs2::NewParentItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewParentItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewParentItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsStartingEventArgs::Cancel() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsStartingEventArgs::Cancel(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsStartingEventArgs::Data() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewDragItemsStartingEventArgs::Items() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Items(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewExpandingEventArgs::Node() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Node(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Node(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewNode{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewExpandingEventArgs2::Item() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Item(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::GlyphOpacity() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphOpacity(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphOpacity(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::GlyphOpacity(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlyphOpacity(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlyphOpacity(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::GlyphBrush() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphBrush(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::GlyphBrush(winrt::Microsoft::UI::Xaml::Media::Brush const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlyphBrush(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlyphBrush(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::ExpandedGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::ExpandedGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExpandedGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExpandedGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::CollapsedGlyph() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollapsedGlyph(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollapsedGlyph(&value)); + } + return hstring{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::CollapsedGlyph(param::hstring const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CollapsedGlyph(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CollapsedGlyph(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::GlyphSize() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphSize(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphSize(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::GlyphSize(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlyphSize(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlyphSize(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::IsExpanded() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::IsExpanded(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem::TreeViewItemTemplateSettings() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TreeViewItemTemplateSettings(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TreeViewItemTemplateSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem2::HasUnrealizedChildren() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildren(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildren(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem2::HasUnrealizedChildren(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HasUnrealizedChildren(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HasUnrealizedChildren(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem2::ItemsSource() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItem2::ItemsSource(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsSource(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewItem{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemInvokedEventArgs::InvokedItem() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InvokedItem(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InvokedItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemInvokedEventArgs::Handled(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemInvokedEventArgs::Handled() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::GlyphOpacityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphOpacityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::GlyphBrushProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphBrushProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::ExpandedGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::CollapsedGlyphProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollapsedGlyphProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollapsedGlyphProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::GlyphSizeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlyphSizeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlyphSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::IsExpandedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics::TreeViewItemTemplateSettingsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TreeViewItemTemplateSettingsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TreeViewItemTemplateSettingsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics2::HasUnrealizedChildrenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildrenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildrenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemStatics2::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettings::ExpandedGlyphVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedGlyphVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedGlyphVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettings::CollapsedGlyphVisibility() const + { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollapsedGlyphVisibility(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollapsedGlyphVisibility(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettings::Indentation() const + { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Indentation(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Indentation(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettings::DragItemsCount() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettingsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewItemTemplateSettings{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettingsStatics::ExpandedGlyphVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpandedGlyphVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpandedGlyphVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettingsStatics::CollapsedGlyphVisibilityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollapsedGlyphVisibilityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollapsedGlyphVisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettingsStatics::IndentationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IndentationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IndentationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewItemTemplateSettingsStatics::DragItemsCountProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragItemsCountProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragItemsCountProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewListFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewList{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::Content(winrt::Windows::Foundation::IInspectable const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::Parent() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewNode{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::IsExpanded() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpanded(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::IsExpanded(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsExpanded(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::HasChildren() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasChildren(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasChildren(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::Depth() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Depth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Depth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::HasUnrealizedChildren() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildren(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasUnrealizedChildren(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::HasUnrealizedChildren(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HasUnrealizedChildren(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HasUnrealizedChildren(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNode::Children() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNodeFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TreeViewNode{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNodeStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNodeStatics::DepthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DepthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DepthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNodeStatics::IsExpandedProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExpandedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewNodeStatics::HasChildrenProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasChildrenProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasChildrenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewSelectionChangedEventArgs::AddedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AddedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AddedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewSelectionChangedEventArgs::RemovedItems() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RemovedItems(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RemovedItems(&value)); + } + return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics::SelectedItemProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics::SelectionModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SelectionModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::CanDragItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::CanReorderItemsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanReorderItemsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanReorderItemsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::ItemTemplateProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::ItemTemplateSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemTemplateSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemTemplateSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::ItemContainerStyleProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyleProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::ItemContainerStyleSelectorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelectorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerStyleSelectorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::ItemContainerTransitionsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerTransitionsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerTransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITreeViewStatics2::ItemsSourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane1() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane1(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane1(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane1(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Pane1(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Pane1(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane2() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane2(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane2(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane2(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Pane2(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Pane2(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane1Length() const + { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane1Length(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane1Length(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane1Length(winrt::Microsoft::UI::Xaml::GridLength const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Pane1Length(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Pane1Length(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane2Length() const + { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane2Length(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane2Length(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Pane2Length(winrt::Microsoft::UI::Xaml::GridLength const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Pane2Length(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Pane2Length(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::PanePriority() const + { + winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewPriority value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanePriority(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanePriority(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::PanePriority(winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewPriority const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PanePriority(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PanePriority(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::Mode() const + { + winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewMode value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::WideModeConfiguration() const + { + winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewWideModeConfiguration value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WideModeConfiguration(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WideModeConfiguration(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::WideModeConfiguration(winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewWideModeConfiguration const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_WideModeConfiguration(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_WideModeConfiguration(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::TallModeConfiguration() const + { + winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewTallModeConfiguration value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TallModeConfiguration(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TallModeConfiguration(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::TallModeConfiguration(winrt::Microsoft::UI::Xaml::Controls::TwoPaneViewTallModeConfiguration const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TallModeConfiguration(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TallModeConfiguration(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::MinWideModeWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWideModeWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWideModeWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::MinWideModeWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinWideModeWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinWideModeWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::MinTallModeHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinTallModeHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinTallModeHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::MinTallModeHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinTallModeHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinTallModeHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::ModeChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ModeChanged(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ModeChanged(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::ModeChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, ModeChanged(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneView::ModeChanged(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ModeChanged(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_ModeChanged(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::TwoPaneView{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::Pane1Property() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane1Property(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane1Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::Pane2Property() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane2Property(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane2Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::Pane1LengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane1LengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane1LengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::Pane2LengthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pane2LengthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pane2LengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::PanePriorityProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PanePriorityProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PanePriorityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::ModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::WideModeConfigurationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WideModeConfigurationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WideModeConfigurationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::TallModeConfigurationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TallModeConfigurationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TallModeConfigurationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::MinWideModeWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWideModeWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWideModeWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_ITwoPaneViewStatics::MinTallModeHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinTallModeHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinTallModeHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUIElementCollection::Move(uint32_t oldIndex, uint32_t newIndex) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Move(oldIndex, newIndex)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Move(oldIndex, newIndex)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinItemWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinItemWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinItemWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinItemWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinItemWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinItemWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinItemHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinItemHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinItemHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinItemHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinItemHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinItemHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinRowSpacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinRowSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinRowSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinRowSpacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinRowSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinRowSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinColumnSpacing() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinColumnSpacing(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinColumnSpacing(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MinColumnSpacing(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinColumnSpacing(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinColumnSpacing(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::ItemsJustification() const + { + winrt::Microsoft::UI::Xaml::Controls::UniformGridLayoutItemsJustification value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsJustification(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsJustification(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::ItemsJustification(winrt::Microsoft::UI::Xaml::Controls::UniformGridLayoutItemsJustification const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsJustification(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsJustification(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::ItemsStretch() const + { + winrt::Microsoft::UI::Xaml::Controls::UniformGridLayoutItemsStretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsStretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsStretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::ItemsStretch(winrt::Microsoft::UI::Xaml::Controls::UniformGridLayoutItemsStretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsStretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsStretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MaximumRowsOrColumns() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayout::MaximumRowsOrColumns(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::UniformGridLayout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::MinItemWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinItemWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinItemWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::MinItemHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinItemHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinItemHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::MinRowSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinRowSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinRowSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::MinColumnSpacingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinColumnSpacingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinColumnSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::ItemsJustificationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsJustificationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsJustificationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::ItemsStretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsStretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUniformGridLayoutStatics::MaximumRowsOrColumnsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUserControl::Content() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUserControl::Content(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IUserControlFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::UserControl{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IUserControlStatics::ContentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::ItemHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::ItemHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::ItemWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::ItemWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::HorizontalChildrenAlignment() const + { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::HorizontalChildrenAlignment(winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalChildrenAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalChildrenAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::VerticalChildrenAlignment() const + { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::VerticalChildrenAlignment(winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalChildrenAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalChildrenAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::MaximumRowsOrColumns() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGrid::MaximumRowsOrColumns(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::ItemHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::ItemWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::HorizontalChildrenAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::VerticalChildrenAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::MaximumRowsOrColumnsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::RowSpanProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RowSpanProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RowSpanProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::GetRowSpan(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRowSpan(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRowSpan(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::SetRowSpan(winrt::Microsoft::UI::Xaml::UIElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetRowSpan(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetRowSpan(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::ColumnSpanProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColumnSpanProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColumnSpanProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::GetColumnSpan(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetColumnSpan(*(void**)(&element), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetColumnSpan(*(void**)(&element), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVariableSizedWrapGridStatics::SetColumnSpan(winrt::Microsoft::UI::Xaml::UIElement const& element, int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetColumnSpan(*(void**)(&element), value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetColumnSpan(*(void**)(&element), value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewbox::Child() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewbox::Child(winrt::Microsoft::UI::Xaml::UIElement const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewbox::Stretch() const + { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewbox::Stretch(winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewbox::StretchDirection() const + { + winrt::Microsoft::UI::Xaml::Controls::StretchDirection value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchDirection(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchDirection(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewbox::StretchDirection(winrt::Microsoft::UI::Xaml::Controls::StretchDirection const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StretchDirection(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StretchDirection(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewboxStatics::StretchProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IViewboxStatics::StretchDirectionProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchDirectionProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::ItemCount() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemCount(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemCount(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::GetItemAt(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemAt(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemAt(index, &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::RealizationRect() const + { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RealizationRect(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RealizationRect(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::GetOrCreateElementAt(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOrCreateElementAt(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetOrCreateElementAt(index, &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::GetOrCreateElementAt(int32_t index, winrt::Microsoft::UI::Xaml::Controls::ElementRealizationOptions const& options) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOrCreateElementAt2(index, static_cast(options), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetOrCreateElementAt2(index, static_cast(options), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::RecycleElement(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RecycleElement(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RecycleElement(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::RecommendedAnchorIndex() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RecommendedAnchorIndex(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RecommendedAnchorIndex(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::LayoutOrigin() const + { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutOrigin(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutOrigin(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext::LayoutOrigin(winrt::Windows::Foundation::Point const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LayoutOrigin(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LayoutOrigin(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContext2::VisibleRect() const + { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VisibleRect(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VisibleRect(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::ItemCountCore() const + { + int32_t result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ItemCountCore(&result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ItemCountCore(&result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::GetItemAtCore(int32_t index) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetItemAtCore(index, &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetItemAtCore(index, &result)); + } + return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::RealizationRectCore() const + { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RealizationRectCore(put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RealizationRectCore(put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::GetOrCreateElementAtCore(int32_t index, winrt::Microsoft::UI::Xaml::Controls::ElementRealizationOptions const& options) const + { + void* result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOrCreateElementAtCore(index, static_cast(options), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetOrCreateElementAtCore(index, static_cast(options), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{ result, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::RecycleElementCore(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RecycleElementCore(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RecycleElementCore(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::RecommendedAnchorIndexCore() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RecommendedAnchorIndexCore(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RecommendedAnchorIndexCore(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::LayoutOriginCore() const + { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutOriginCore(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutOriginCore(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides::LayoutOriginCore(winrt::Windows::Foundation::Point const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LayoutOriginCore(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LayoutOriginCore(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutContextOverrides2::VisibleRectCore() const + { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->VisibleRectCore(put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->VisibleRectCore(put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayout{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutOverrides::InitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InitializeForContextCore(*(void**)(&context))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InitializeForContextCore(*(void**)(&context))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutOverrides::UninitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UninitializeForContextCore(*(void**)(&context))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->UninitializeForContextCore(*(void**)(&context))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutOverrides::MeasureOverride(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) const + { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MeasureOverride(*(void**)(&context), impl::bind_in(availableSize), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->MeasureOverride(*(void**)(&context), impl::bind_in(availableSize), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutOverrides::ArrangeOverride(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) const + { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ArrangeOverride(*(void**)(&context), impl::bind_in(finalSize), put_abi(result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ArrangeOverride(*(void**)(&context), impl::bind_in(finalSize), put_abi(result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingLayoutOverrides::OnItemsChangedCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::IInspectable const& source, winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventArgs const& args) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemsChangedCore(*(void**)(&context), *(void**)(&source), *(void**)(&args))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemsChangedCore(*(void**)(&context), *(void**)(&source), *(void**)(&args))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanel::ItemContainerGenerator() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemContainerGenerator(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemContainerGenerator(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::ItemContainerGenerator{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanelOverrides::OnItemsChanged(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs const& args) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnItemsChanged(*(void**)(&sender), *(void**)(&args))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnItemsChanged(*(void**)(&sender), *(void**)(&args))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanelOverrides::OnClearChildren() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnClearChildren()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnClearChildren()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanelOverrides::BringIndexIntoView(int32_t index) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->BringIndexIntoView(index)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->BringIndexIntoView(index)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanelProtected::AddInternalChild(winrt::Microsoft::UI::Xaml::UIElement const& child) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddInternalChild(*(void**)(&child))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->AddInternalChild(*(void**)(&child))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanelProtected::InsertInternalChild(int32_t index, winrt::Microsoft::UI::Xaml::UIElement const& child) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertInternalChild(index, *(void**)(&child))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertInternalChild(index, *(void**)(&child))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingPanelProtected::RemoveInternalChildRange(int32_t index, int32_t range) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveInternalChildRange(index, range)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveInternalChildRange(index, range)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::AreScrollSnapPointsRegular() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegular(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegular(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::AreScrollSnapPointsRegular(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreScrollSnapPointsRegular(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AreScrollSnapPointsRegular(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::CleanUpVirtualizedItemEvent(winrt::Microsoft::UI::Xaml::Controls::CleanUpVirtualizedItemEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CleanUpVirtualizedItemEvent(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CleanUpVirtualizedItemEvent(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::CleanUpVirtualizedItemEvent(auto_revoke_t, winrt::Microsoft::UI::Xaml::Controls::CleanUpVirtualizedItemEventHandler const& handler) const + { + return impl::make_event_revoker(this, CleanUpVirtualizedItemEvent(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanel::CleanUpVirtualizedItemEvent(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CleanUpVirtualizedItemEvent(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CleanUpVirtualizedItemEvent(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelOverrides::OnCleanUpVirtualizedItem(winrt::Microsoft::UI::Xaml::Controls::CleanUpVirtualizedItemEventArgs const& e) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnCleanUpVirtualizedItem(*(void**)(&e))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnCleanUpVirtualizedItem(*(void**)(&e))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::AreScrollSnapPointsRegularProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegularProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AreScrollSnapPointsRegularProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::VirtualizationModeProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VirtualizationModeProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VirtualizationModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::GetVirtualizationMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) const + { + winrt::Microsoft::UI::Xaml::Controls::VirtualizationMode result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetVirtualizationMode(*(void**)(&element), reinterpret_cast(&result))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetVirtualizationMode(*(void**)(&element), reinterpret_cast(&result))); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::SetVirtualizationMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::VirtualizationMode const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVirtualizationMode(*(void**)(&element), static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetVirtualizationMode(*(void**)(&element), static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::IsVirtualizingProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsVirtualizingProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsVirtualizingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IVirtualizingStackPanelStatics::GetIsVirtualizing(winrt::Microsoft::UI::Xaml::DependencyObject const& o) const + { + bool result{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsVirtualizing(*(void**)(&o), &result)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsVirtualizing(*(void**)(&o), &result)); + } + return result; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreWebView2() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoreWebView2(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoreWebView2(&value)); + } + return winrt::Microsoft::Web::WebView2::Core::CoreWebView2{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::EnsureCoreWebView2Async() const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnsureCoreWebView2Async(&operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->EnsureCoreWebView2Async(&operation)); + } + return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::ExecuteScriptAsync(param::hstring const& javascriptCode) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ExecuteScriptAsync(*(void**)(&javascriptCode), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ExecuteScriptAsync(*(void**)(&javascriptCode), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::Source() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::Source(winrt::Windows::Foundation::Uri const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CanGoForward() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoForward(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoForward(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CanGoForward(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanGoForward(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanGoForward(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CanGoBack() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoBack(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoBack(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CanGoBack(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanGoBack(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanGoBack(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::DefaultBackgroundColor() const + { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultBackgroundColor(put_abi(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultBackgroundColor(put_abi(value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::DefaultBackgroundColor(winrt::Windows::UI::Color const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultBackgroundColor(impl::bind_in(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultBackgroundColor(impl::bind_in(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::Reload() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Reload()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Reload()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::GoForward() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoForward()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GoForward()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::GoBack() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoBack()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GoBack()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigateToString(param::hstring const& htmlContent) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateToString(*(void**)(&htmlContent))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateToString(*(void**)(&htmlContent))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::Close() const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Close()); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Close()); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NavigationCompleted(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NavigationCompleted(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, NavigationCompleted(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigationCompleted(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NavigationCompleted(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_NavigationCompleted(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::WebMessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_WebMessageReceived(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_WebMessageReceived(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::WebMessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, WebMessageReceived(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::WebMessageReceived(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_WebMessageReceived(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_WebMessageReceived(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NavigationStarting(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NavigationStarting(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, NavigationStarting(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::NavigationStarting(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NavigationStarting(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_NavigationStarting(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreProcessFailed(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CoreProcessFailed(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CoreProcessFailed(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreProcessFailed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CoreProcessFailed(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreProcessFailed(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CoreProcessFailed(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CoreProcessFailed(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreWebView2Initialized(winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + winrt::event_token token{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CoreWebView2Initialized(*(void**)(&handler), put_abi(token))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CoreWebView2Initialized(*(void**)(&handler), put_abi(token))); + } + return token; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreWebView2Initialized(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const + { + return impl::make_event_revoker(this, CoreWebView2Initialized(handler)); + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2::CoreWebView2Initialized(winrt::event_token const& token) const noexcept + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CoreWebView2Initialized(impl::bind_in(token)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CoreWebView2Initialized(impl::bind_in(token)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView22::EnsureCoreWebView2Async(winrt::Microsoft::Web::WebView2::Core::CoreWebView2Environment const& environment) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnsureCoreWebView2WithEnvironmentAsync(*(void**)(&environment), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->EnsureCoreWebView2WithEnvironmentAsync(*(void**)(&environment), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView22::EnsureCoreWebView2Async(winrt::Microsoft::Web::WebView2::Core::CoreWebView2Environment const& environment, winrt::Microsoft::Web::WebView2::Core::CoreWebView2ControllerOptions const& controllerOptions) const + { + void* operation{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnsureCoreWebView2WithEnvironmentAndOptionsAsync(*(void**)(&environment), *(void**)(&controllerOptions), &operation)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->EnsureCoreWebView2WithEnvironmentAndOptionsAsync(*(void**)(&environment), *(void**)(&controllerOptions), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Controls::WebView2{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2Statics::SourceProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2Statics::CanGoForwardProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoForwardProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoForwardProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2Statics::CanGoBackProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanGoBackProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanGoBackProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWebView2Statics::DefaultBackgroundColorProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultBackgroundColorProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultBackgroundColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::ItemWidth() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidth(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::ItemWidth(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemWidth(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::ItemHeight() const + { + double value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeight(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::ItemHeight(double value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemHeight(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::Orientation() const + { + winrt::Microsoft::UI::Xaml::Controls::Orientation value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::Orientation(winrt::Microsoft::UI::Xaml::Controls::Orientation const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::HorizontalChildrenAlignment() const + { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::HorizontalChildrenAlignment(winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalChildrenAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalChildrenAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::VerticalChildrenAlignment() const + { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignment(reinterpret_cast(&value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignment(reinterpret_cast(&value))); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::VerticalChildrenAlignment(winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalChildrenAlignment(static_cast(value))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalChildrenAlignment(static_cast(value))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::MaximumRowsOrColumns() const + { + int32_t value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumns(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGrid::MaximumRowsOrColumns(int32_t value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaximumRowsOrColumns(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGridStatics::ItemWidthProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGridStatics::ItemHeightProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGridStatics::OrientationProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGridStatics::HorizontalChildrenAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalChildrenAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGridStatics::VerticalChildrenAlignmentProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignmentProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalChildrenAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IWrapGridStatics::MaximumRowsOrColumnsProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaximumRowsOrColumnsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template auto consume_Microsoft_UI_Xaml_Controls_IXamlControlsResources::UseCompactResources() const + { + bool value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseCompactResources(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseCompactResources(&value)); + } + return value; + } + template auto consume_Microsoft_UI_Xaml_Controls_IXamlControlsResources::UseCompactResources(bool value) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UseCompactResources(value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UseCompactResources(value)); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IXamlControlsResourcesStatics::EnsureRevealLights(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->EnsureRevealLights(*(void**)(&element))); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->EnsureRevealLights(*(void**)(&element))); + } + } + template auto consume_Microsoft_UI_Xaml_Controls_IXamlControlsResourcesStatics::UseCompactResourcesProperty() const + { + void* value{}; + if constexpr (!std::is_same_v) + { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseCompactResourcesProperty(&value)); + } + else + { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseCompactResourcesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; + } + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* item, void** result) noexcept final try + { + clear_abi(result); + *result = detach_from((*this)(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* key, void** operation) noexcept final try + { + clear_abi(operation); + *operation = detach_from>((*this)(*reinterpret_cast(&key))); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template struct delegate final : implements_delegate + { + delegate(H&& handler) : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try + { + (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Anchor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Anchor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Anchor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Anchor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AnchorCandidates(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AnchorCandidates()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FallbackIconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FallbackIconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FallbackIconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackIconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeft(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeft()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MirroredWhenRightToLeft(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MirroredWhenRightToLeft(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FallbackIconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FallbackIconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FallbackIconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackIconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeft(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeft()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MirroredWhenRightToLeft(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MirroredWhenRightToLeft(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FallbackIconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FallbackIconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_StateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetState(void* object, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetState(*reinterpret_cast(&object), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetState(void* object, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetState(*reinterpret_cast(&object))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FallbackIconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FallbackIconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall get_RootVisual(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RootVisual()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Size(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Duration(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Duration()); + return 0; + } + catch (...) { return to_hresult(); } + }; + template + struct produce : produce_base + { + int32_t __stdcall CreateAnimations() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CreateAnimations(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall DestroyAnimations() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DestroyAnimations(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Diagnostics(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Diagnostics()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Duration(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Duration()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FallbackContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FallbackContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FallbackContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoPlay(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoPlay()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AutoPlay(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AutoPlay(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAnimatedVisualLoaded(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAnimatedVisualLoaded()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPlaying(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlaying()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaybackRate(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaybackRate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaybackRate(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaybackRate(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProgressObject(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProgressObject()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Stretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Pause() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Pause(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PlayAsync(double fromProgress, double toProgress, bool looped, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from(this->shim().PlayAsync(fromProgress, toProgress, looped)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Resume() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Resume(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetProgress(double progress) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetProgress(progress); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Stop() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AnimationOptimization(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnimationOptimization()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AnimationOptimization(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AnimationOptimization(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AutoPlayProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoPlayProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DiagnosticsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DiagnosticsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DurationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DurationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FallbackContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FallbackContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAnimatedVisualLoadedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAnimatedVisualLoadedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPlayingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlayingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaybackRateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaybackRateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AnimationOptimizationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnimationOptimizationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall TryCreateAnimatedVisual(void* compositor, void** diagnostics, void** result) noexcept final try + { + if (diagnostics) *diagnostics = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_diagnostics; + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryCreateAnimatedVisual(*reinterpret_cast(&compositor), winrt_impl_diagnostics)); + if (diagnostics) *diagnostics = detach_abi(winrt_impl_diagnostics); + return 0; + } + catch (...) { return to_hresult(); } + }; + template + struct produce : produce_base + { + int32_t __stdcall get_Markers(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Markers()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetColorProperty(void* propertyName, struct struct_Windows_UI_Color value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetColorProperty(*reinterpret_cast(&propertyName), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template + struct produce : produce_base + { + int32_t __stdcall TryCreateAnimatedVisual(void* compositor, void** diagnostics, bool createAnimations, void** result) noexcept final try + { + if (diagnostics) *diagnostics = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_diagnostics; + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryCreateAnimatedVisual(*reinterpret_cast(&compositor), winrt_impl_diagnostics, createAnimations)); + if (diagnostics) *diagnostics = detach_abi(winrt_impl_diagnostics); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ScrollController(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollController()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Labels(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Labels()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Labels(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Labels(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LabelTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LabelTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LabelTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DetailLabelTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DetailLabelTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DetailLabelTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DetailLabelTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SmallChange(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallChange()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SmallChange(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SmallChange(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Scrolling(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Scrolling(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Scrolling(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Scrolling(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DetailLabelRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DetailLabelRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DetailLabelRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DetailLabelRequested(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollOffset()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollOffset()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* content, double scrollOffset, void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&content), scrollOffset)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ScrollOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollingEventKind(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollingEventKind()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LabelsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LabelTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DetailLabelTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DetailLabelTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SmallChangeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallChangeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSticky(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSticky()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSticky(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSticky(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClosedDisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClosedDisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ClosedDisplayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedDisplayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Opening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opening(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Opening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Opening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Opened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Label(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Label()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Label(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Label(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Icon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Icon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Icon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Icon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LabelPosition(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LabelPosition(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LabelPosition(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_KeyboardAcceleratorTextOverride(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyboardAcceleratorTextOverride()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_KeyboardAcceleratorTextOverride(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().KeyboardAcceleratorTextOverride(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LabelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LabelPositionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelPositionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_KeyboardAcceleratorTextOverrideProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyboardAcceleratorTextOverrideProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsCompactProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompactProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsInOverflowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInOverflowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DynamicOverflowOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DynamicOverflowOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsCompactProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompactProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsInOverflowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInOverflowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DynamicOverflowOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DynamicOverflowOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnClosed(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnClosed(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnOpened(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnOpened(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnClosing(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnClosing(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnOpening(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnOpening(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsCompactProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompactProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsInOverflowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInOverflowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DynamicOverflowOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DynamicOverflowOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsStickyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStickyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClosedDisplayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClosedDisplayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Label(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Label()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Label(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Label(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Icon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Icon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Icon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Icon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LabelPosition(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LabelPosition(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LabelPosition(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_KeyboardAcceleratorTextOverride(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyboardAcceleratorTextOverride()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_KeyboardAcceleratorTextOverride(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().KeyboardAcceleratorTextOverride(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LabelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LabelPositionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LabelPositionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_KeyboardAcceleratorTextOverrideProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyboardAcceleratorTextOverrideProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsCompactProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompactProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsInOverflowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInOverflowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DynamicOverflowOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DynamicOverflowOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MaxSuggestionListHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxSuggestionListHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxSuggestionListHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxSuggestionListHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSuggestionListOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSuggestionListOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSuggestionListOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSuggestionListOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextMemberPath(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextMemberPath()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextMemberPath(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextMemberPath(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UpdateTextOnSelect(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UpdateTextOnSelect()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UpdateTextOnSelect(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UpdateTextOnSelect(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoMaximizeSuggestionArea(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoMaximizeSuggestionArea()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AutoMaximizeSuggestionArea(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AutoMaximizeSuggestionArea(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextBoxStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextBoxStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextBoxStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextBoxStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_QueryIcon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().QueryIcon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_QueryIcon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().QueryIcon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SuggestionChosen(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SuggestionChosen(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SuggestionChosen(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SuggestionChosen(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_QuerySubmitted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().QuerySubmitted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_QuerySubmitted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().QuerySubmitted(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_QueryText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().QueryText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ChosenSuggestion(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChosenSuggestion()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MaxSuggestionListHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxSuggestionListHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSuggestionListOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSuggestionListOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextMemberPathProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextMemberPathProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UpdateTextOnSelectProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UpdateTextOnSelectProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoMaximizeSuggestionAreaProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoMaximizeSuggestionAreaProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextBoxStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextBoxStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_QueryIconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().QueryIconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Reason(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Reason()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Reason(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Reason(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CheckCurrent(bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CheckCurrent()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ReasonProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReasonProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UriSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UriSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UriSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UriSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowAsMonochrome(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowAsMonochrome()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShowAsMonochrome(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAsMonochrome(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UriSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UriSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UriSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UriSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowAsMonochrome(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowAsMonochrome()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShowAsMonochrome(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAsMonochrome(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UriSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UriSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowAsMonochromeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowAsMonochromeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UriSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UriSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowAsMonochromeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowAsMonochromeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Background(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Background()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Background(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Background(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundSizing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundSizing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Child(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Child()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Child(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Child(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ChildTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChildTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ChildTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ChildTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundTransition(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundTransition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundTransition(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundTransition(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ChildTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChildTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ItemClicked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemClicked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemClicked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemClicked(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Index(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Index()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Flyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Flyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Flyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Flyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Date(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Date()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Date(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Date(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsCalendarOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCalendarOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsCalendarOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsCalendarOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DateFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DateFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DateFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarViewStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarViewStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarViewStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarViewStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinDate(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinDate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxDate(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxDate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTodayHighlighted(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTodayHighlighted()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTodayHighlighted(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTodayHighlighted(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisplayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstDayOfWeek(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstDayOfWeek()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstDayOfWeek(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstDayOfWeek(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayOfWeekFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayOfWeekFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayOfWeekFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayOfWeekFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarIdentifier(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifier()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarIdentifier(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarIdentifier(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOutOfScopeEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOutOfScopeEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOutOfScopeEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOutOfScopeEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroupLabelVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroupLabelVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsGroupLabelVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsGroupLabelVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CalendarViewDayItemChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CalendarViewDayItemChanging(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CalendarViewDayItemChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarViewDayItemChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DateChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DateChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DateChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DateChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Opened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall SetDisplayDate(int64_t date) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetDisplayDate(*reinterpret_cast(&date)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetYearDecadeDisplayDimensions(columns, rows); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NewDate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().NewDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OldDate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().OldDate()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsCalendarOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCalendarOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DateFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarViewStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarViewStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinDateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinDateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxDateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxDateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTodayHighlightedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTodayHighlightedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstDayOfWeekProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstDayOfWeekProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayOfWeekFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayOfWeekFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarIdentifierProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifierProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOutOfScopeEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOutOfScopeEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroupLabelVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroupLabelVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CalendarIdentifier(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifier()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarIdentifier(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarIdentifier(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayOfWeekFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayOfWeekFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayOfWeekFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayOfWeekFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroupLabelVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroupLabelVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsGroupLabelVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsGroupLabelVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisplayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstDayOfWeek(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstDayOfWeek()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstDayOfWeek(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstDayOfWeek(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOutOfScopeEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOutOfScopeEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOutOfScopeEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOutOfScopeEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTodayHighlighted(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTodayHighlighted()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTodayHighlighted(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTodayHighlighted(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxDate(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxDate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinDate(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinDate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NumberOfWeeksInView(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NumberOfWeeksInView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NumberOfWeeksInView(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NumberOfWeeksInView(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDates(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedDates()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FocusBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FocusBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FocusBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FocusBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedHoverBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedHoverBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedHoverBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedHoverBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPressedBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPressedBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedPressedBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPressedBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDisabledBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedDisabledBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedDisabledBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDisabledBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HoverBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HoverBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HoverBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HoverBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PressedBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PressedBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PressedBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PressedBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodaySelectedInnerBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodaySelectedInnerBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodaySelectedInnerBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodaySelectedInnerBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BlackoutStrikethroughBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlackoutStrikethroughBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BlackoutStrikethroughBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BlackoutStrikethroughBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemBorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemBorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemBorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemBorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BlackoutBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlackoutBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BlackoutBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BlackoutBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopeBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopeBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OutOfScopeBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OutOfScopeBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemHoverBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemHoverBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemHoverBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemHoverBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemPressedBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemPressedBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemPressedBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemPressedBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemDisabledBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemDisabledBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemDisabledBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemDisabledBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayBlackoutBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayBlackoutBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayBlackoutBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayBlackoutBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayHoverBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayHoverBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayHoverBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayHoverBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayPressedBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayPressedBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayPressedBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayPressedBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayDisabledBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayDisabledBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayDisabledBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayDisabledBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PressedForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PressedForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PressedForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PressedForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BlackoutForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlackoutForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BlackoutForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BlackoutForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayBlackoutForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayBlackoutForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayBlackoutForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayBlackoutForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedHoverForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedHoverForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedHoverForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedHoverForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPressedForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPressedForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedPressedForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPressedForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDisabledForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedDisabledForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedDisabledForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDisabledForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopeForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopeForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OutOfScopeForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OutOfScopeForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopeHoverForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopeHoverForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OutOfScopeHoverForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OutOfScopeHoverForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopePressedForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopePressedForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OutOfScopePressedForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OutOfScopePressedForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisabledForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisabledForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisabledForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayItemFontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayItemFontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayItemFontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayItemFontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayItemFontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayItemFontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayItemFontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayItemFontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayFontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayFontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TodayFontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TodayFontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfMonthLabelFontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfMonthLabelFontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfMonthLabelFontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfMonthLabelFontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfMonthLabelFontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfMonthLabelFontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfMonthLabelFontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfMonthLabelFontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthYearItemFontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthYearItemFontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthYearItemFontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthYearItemFontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthYearItemFontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthYearItemFontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthYearItemFontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthYearItemFontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfYearDecadeLabelFontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfYearDecadeLabelFontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfYearDecadeLabelFontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfYearDecadeLabelFontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfYearDecadeLabelFontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfYearDecadeLabelFontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfYearDecadeLabelFontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfYearDecadeLabelFontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayItemMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayItemMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthYearItemMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthYearItemMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfMonthLabelMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfMonthLabelMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FirstOfYearDecadeLabelMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FirstOfYearDecadeLabelMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalDayItemAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalDayItemAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalDayItemAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalDayItemAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalDayItemAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalDayItemAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalDayItemAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalDayItemAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalFirstOfMonthLabelAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalFirstOfMonthLabelAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalFirstOfMonthLabelAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalFirstOfMonthLabelAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalFirstOfMonthLabelAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalFirstOfMonthLabelAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalFirstOfMonthLabelAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalFirstOfMonthLabelAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemBorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemBorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemBorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemBorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarViewDayItemStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarViewDayItemStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarViewDayItemStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarViewDayItemStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemCornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemCornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarItemCornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarItemCornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CalendarViewDayItemChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CalendarViewDayItemChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CalendarViewDayItemChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarViewDayItemChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectedDatesChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectedDatesChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectedDatesChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDatesChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall SetDisplayDate(int64_t date) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetDisplayDate(*reinterpret_cast(&date)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetYearDecadeDisplayDimensions(int32_t columns, int32_t rows) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetYearDecadeDisplayDimensions(columns, rows); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsBlackout(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBlackout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsBlackout(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsBlackout(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Date(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Date()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetDensityColors(void* colors) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetDensityColors(*reinterpret_cast const*>(&colors)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InRecycleQueue(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InRecycleQueue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Phase(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Phase()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RegisterUpdateCallback(void* callback) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterUpdateCallback(*reinterpret_cast const*>(&callback)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RegisterUpdateCallbackWithPhase(uint32_t callbackPhase, void* callback) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterUpdateCallback(callbackPhase, *reinterpret_cast const*>(&callback)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsBlackoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBlackoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AddedDates(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AddedDates()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RemovedDates(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().RemovedDates()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CalendarIdentifierProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifierProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayOfWeekFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayOfWeekFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroupLabelVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroupLabelVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstDayOfWeekProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstDayOfWeekProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOutOfScopeEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOutOfScopeEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTodayHighlightedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTodayHighlightedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxDateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxDateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinDateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinDateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NumberOfWeeksInViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NumberOfWeeksInViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDatesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedDatesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FocusBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FocusBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedHoverBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedHoverBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPressedBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPressedBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDisabledBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedDisabledBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HoverBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HoverBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PressedBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PressedBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodaySelectedInnerBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodaySelectedInnerBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BlackoutStrikethroughBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlackoutStrikethroughBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemBorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemBorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BlackoutBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlackoutBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopeBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopeBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemHoverBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemHoverBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemPressedBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemPressedBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemDisabledBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemDisabledBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayBlackoutBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayBlackoutBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayHoverBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayHoverBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayPressedBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayPressedBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayDisabledBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayDisabledBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PressedForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PressedForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BlackoutForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BlackoutForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayBlackoutForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayBlackoutForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedHoverForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedHoverForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPressedForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPressedForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDisabledForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedDisabledForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopeForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopeForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopeHoverForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopeHoverForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OutOfScopePressedForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OutOfScopePressedForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisabledForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemFontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemFontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TodayFontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TodayFontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelFontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelFontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemFontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemFontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelFontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelFontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayItemMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayItemMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthYearItemMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthYearItemMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfMonthLabelMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfMonthLabelMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstOfYearDecadeLabelMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstOfYearDecadeLabelMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalDayItemAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalDayItemAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalDayItemAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalDayItemAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalFirstOfMonthLabelAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalFirstOfMonthLabelAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalFirstOfMonthLabelAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalFirstOfMonthLabelAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemBorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemBorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarViewDayItemStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarViewDayItemStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarItemCornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarItemCornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Bounds(winrt::Windows::Foundation::Rect* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bounds()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LeftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetLeft(void* element, double* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLeft(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetLeft(void* element, double length) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetLeft(*reinterpret_cast(&element), length); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetTop(void* element, double* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetTop(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetTop(void* element, double length) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetTop(*reinterpret_cast(&element), length); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetZIndex(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetZIndex(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetZIndex(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetZIndex(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupHeaderContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupHeaderContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupHeaderContainer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupHeaderContainer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Group(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Group()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsContainerPrepared(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsContainerPrepared()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsContainerPrepared(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsContainerPrepared(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Value(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UIElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UIElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldColor(struct struct_Windows_UI_Color* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewColor(struct struct_Windows_UI_Color* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewColor()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Color(struct struct_Windows_UI_Color* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Color(struct struct_Windows_UI_Color value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Color(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreviousColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().PreviousColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreviousColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreviousColor(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAlphaEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlphaEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsAlphaEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsAlphaEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorSpectrumVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorSpectrumVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorSpectrumVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorSpectrumVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorPreviewVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorPreviewVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorPreviewVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorPreviewVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorSliderVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorSliderVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorSliderVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorSliderVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAlphaSliderVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlphaSliderVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsAlphaSliderVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsAlphaSliderVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsMoreButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMoreButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsMoreButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsMoreButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorChannelTextInputVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorChannelTextInputVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorChannelTextInputVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorChannelTextInputVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAlphaTextInputVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlphaTextInputVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsAlphaTextInputVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsAlphaTextInputVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHexInputVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHexInputVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsHexInputVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsHexInputVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinHue(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinHue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinHue(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinHue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxHue(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxHue(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxHue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinSaturation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinSaturation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinSaturation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinSaturation(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxSaturation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxSaturation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxSaturation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxSaturation(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinValue(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinValue(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinValue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxValue(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxValue(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxValue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColorSpectrumShape(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColorSpectrumShape()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ColorSpectrumShape(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ColorSpectrumShape(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColorSpectrumComponents(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColorSpectrumComponents()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ColorSpectrumComponents(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ColorSpectrumComponents(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ColorChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ColorChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ColorChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ColorChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreviousColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreviousColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAlphaEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlphaEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorSpectrumVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorSpectrumVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorPreviewVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorPreviewVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorSliderVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorSliderVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAlphaSliderVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlphaSliderVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsMoreButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMoreButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorChannelTextInputVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorChannelTextInputVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAlphaTextInputVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAlphaTextInputVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHexInputVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHexInputVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinHueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinHueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxHueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinSaturationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinSaturationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxSaturationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxSaturationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColorSpectrumShapeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColorSpectrumShapeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColorSpectrumComponentsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColorSpectrumComponentsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Width(struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Width()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Width(struct struct_Microsoft_UI_Xaml_GridLength value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Width(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActualWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualWidth()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_WidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDropDownOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDropDownOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDropDownOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDropDownOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsEditable(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEditable()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsEditable(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsEditable(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSelectionBoxHighlighted(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelectionBoxHighlighted()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxDropDownHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxDropDownHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxDropDownHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxDropDownHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionBoxItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionBoxItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionBoxItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionBoxItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextSearchEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextSearchEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextSearchEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextSearchEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionChangedTrigger(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionChangedTrigger()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionChangedTrigger(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChangedTrigger(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextBoxStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextBoxStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextBoxStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextBoxStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_DropDownClosed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DropDownClosed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DropDownClosed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DropDownClosed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DropDownOpened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DropDownOpened(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DropDownOpened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DropDownOpened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextSubmitted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextSubmitted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextSubmitted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextSubmitted(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnDropDownClosed(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDropDownClosed(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnDropDownOpened(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDropDownOpened(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsEditableProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEditableProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDropDownOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDropDownOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxDropDownHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxDropDownHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextSearchEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextSearchEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionChangedTriggerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionChangedTriggerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextBoxStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextBoxStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PrimaryCommands(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().PrimaryCommands()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryCommands(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SecondaryCommands()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandBarOverflowPresenterStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandBarOverflowPresenterStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CommandBarOverflowPresenterStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CommandBarOverflowPresenterStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandBarTemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandBarTemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultLabelPosition(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultLabelPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DefaultLabelPosition(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultLabelPosition(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowButtonVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowButtonVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OverflowButtonVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OverflowButtonVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDynamicOverflowEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDynamicOverflowEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDynamicOverflowEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDynamicOverflowEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_DynamicOverflowItemsChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DynamicOverflowItemsChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DynamicOverflowItemsChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DynamicOverflowItemsChanging(*reinterpret_cast(&token)); + return 0; + } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall get_IsCompact(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompact()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsCompact(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsCompact(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsInOverflow(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInOverflow()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DynamicOverflowOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DynamicOverflowOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DynamicOverflowOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DynamicOverflowOrder(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PrimaryCommands(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().PrimaryCommands()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryCommands(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SecondaryCommands()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AlwaysExpanded(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlwaysExpanded()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AlwaysExpanded(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AlwaysExpanded(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PrimaryCommandsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryCommandsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryCommandsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryCommandsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandBarOverflowPresenterStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandBarOverflowPresenterStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultLabelPositionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultLabelPositionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowButtonVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowButtonVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDynamicOverflowEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDynamicOverflowEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InRecycleQueue(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InRecycleQueue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Phase(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Phase()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RegisterUpdateCallback(void* callback) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterUpdateCallback(*reinterpret_cast const*>(&callback)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RegisterUpdateCallbackWithPhase(uint32_t callbackPhase, void* callback) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterUpdateCallback(callbackPhase, *reinterpret_cast const*>(&callback)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateRoot(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateRoot()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnContentChanged(void* oldContent, void* newContent) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContentChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnContentTemplateChanged(void* oldContentTemplate, void* newContentTemplate) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContentTemplateChanged(*reinterpret_cast(&oldContentTemplate), *reinterpret_cast(&newContentTemplate)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnContentTemplateSelectorChanged(void* oldContentTemplateSelector, void* newContentTemplateSelector) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContentTemplateSelectorChanged(*reinterpret_cast(&oldContentTemplateSelector), *reinterpret_cast(&newContentTemplateSelector)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Title(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Title(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TitleTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TitleTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TitleTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FullSizeDesired(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FullSizeDesired()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FullSizeDesired(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FullSizeDesired(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PrimaryButtonText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrimaryButtonText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SecondaryButtonText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SecondaryButtonText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PrimaryButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrimaryButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SecondaryButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SecondaryButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PrimaryButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrimaryButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SecondaryButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SecondaryButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPrimaryButtonEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPrimaryButtonEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPrimaryButtonEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPrimaryButtonEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSecondaryButtonEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSecondaryButtonEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSecondaryButtonEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSecondaryButtonEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PrimaryButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrimaryButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SecondaryButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SecondaryButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultButton(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultButton()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DefaultButton(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultButton(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Closing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Opened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PrimaryButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PrimaryButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PrimaryButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PrimaryButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SecondaryButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SecondaryButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SecondaryButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SecondaryButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CloseButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CloseButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CloseButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Hide() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Hide(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ShowAsync(void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>(this->shim().ShowAsync()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ShowAsyncWithPlacement(int32_t placement, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>(this->shim().ShowAsync(*reinterpret_cast(&placement))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall Complete() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetDeferral(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetDeferral()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Result(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Result()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall Complete() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Result(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Result()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetDeferral(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetDeferral()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TitleTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FullSizeDesiredProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FullSizeDesiredProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPrimaryButtonEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPrimaryButtonEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSecondaryButtonEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSecondaryButtonEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PrimaryButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultButtonProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultButtonProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CharacterSpacing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpticalMarginAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpticalMarginAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OpticalMarginAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OpticalMarginAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextLineBounds(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextLineBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextLineBounds(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextLineBounds(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundTransition(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundTransition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundTransition(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundTransition(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrapping(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrapping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextWrapping(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextWrapping(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLines(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLines()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLines(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLines(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineStackingStrategy(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineStackingStrategy()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineStackingStrategy(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineStackingStrategy(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Background(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Background()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Background(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Background(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundSizing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundSizing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalContentAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalContentAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalContentAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalContentAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalContentAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalContentAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalContentAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalContentAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnContentTemplateChanged(void* oldContentTemplate, void* newContentTemplate) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContentTemplateChanged(*reinterpret_cast(&oldContentTemplate), *reinterpret_cast(&newContentTemplate)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnContentTemplateSelectorChanged(void* oldContentTemplateSelector, void* newContentTemplateSelector) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContentTemplateSelectorChanged(*reinterpret_cast(&oldContentTemplateSelector), *reinterpret_cast(&newContentTemplateSelector)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpticalMarginAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpticalMarginAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextLineBoundsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextLineBoundsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrappingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrappingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLinesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLinesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineStackingStrategyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineStackingStrategyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalContentAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalContentAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalContentAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalContentAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CursorLeft(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CursorLeft()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CursorTop(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CursorTop()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsFocusEngagementEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFocusEngagementEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFocusEngagementEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFocusEngagementEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFocusEngaged(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFocusEngaged()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFocusEngaged(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFocusEngaged(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RequiresPointer(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequiresPointer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_RequiresPointer(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RequiresPointer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CharacterSpacing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabNavigation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabNavigation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabNavigation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabNavigation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Template(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Template()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Template(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Template(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalContentAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalContentAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalContentAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalContentAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalContentAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalContentAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalContentAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalContentAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Background(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Background()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Background(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Background(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundSizing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundSizing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultStyleResourceUri(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultStyleResourceUri()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DefaultStyleResourceUri(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultStyleResourceUri(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ElementSoundMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ElementSoundMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ElementSoundMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ElementSoundMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_FocusEngaged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().FocusEngaged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_FocusEngaged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().FocusEngaged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_FocusDisengaged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().FocusDisengaged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_FocusDisengaged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().FocusDisengaged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_IsEnabledChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().IsEnabledChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_IsEnabledChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().IsEnabledChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall RemoveFocusEngagement() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveFocusEngagement(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ApplyTemplate(bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ApplyTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnPointerEntered(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerEntered(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerPressed(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerPressed(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerMoved(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerMoved(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerReleased(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerReleased(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerExited(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerExited(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerCaptureLost(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerCaptureLost(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerCanceled(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerCanceled(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPointerWheelChanged(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPointerWheelChanged(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnTapped(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnTapped(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnDoubleTapped(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDoubleTapped(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnHolding(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnHolding(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnRightTapped(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnRightTapped(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnManipulationStarting(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnManipulationStarting(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnManipulationInertiaStarting(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnManipulationInertiaStarting(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnManipulationStarted(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnManipulationStarted(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnManipulationDelta(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnManipulationDelta(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnManipulationCompleted(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnManipulationCompleted(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnKeyUp(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnKeyUp(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnKeyDown(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnKeyDown(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPreviewKeyDown(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPreviewKeyDown(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnPreviewKeyUp(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnPreviewKeyUp(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnGotFocus(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnGotFocus(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnLostFocus(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnLostFocus(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnCharacterReceived(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnCharacterReceived(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnDragEnter(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDragEnter(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnDragLeave(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDragLeave(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnDragOver(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDragOver(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnDrop(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnDrop(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DefaultStyleKey(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultStyleKey()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DefaultStyleKey(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultStyleKey(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetTemplateChild(void* childName, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetTemplateChild(*reinterpret_cast(&childName))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsFocusEngagementEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFocusEngagementEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFocusEngagedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFocusEngagedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RequiresPointerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequiresPointerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabNavigationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabNavigationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalContentAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalContentAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalContentAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalContentAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultStyleKeyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultStyleKeyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultStyleResourceUriProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultStyleResourceUriProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ElementSoundModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ElementSoundModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTemplateFocusTargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTemplateFocusTargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsTemplateFocusTarget(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsTemplateFocusTarget(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsTemplateFocusTarget(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsTemplateFocusTarget(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTemplateKeyTipTargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTemplateKeyTipTargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsTemplateKeyTipTarget(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsTemplateKeyTipTarget(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsTemplateKeyTipTarget(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsTemplateKeyTipTarget(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TargetType(struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetType()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TargetType(struct struct_Windows_UI_Xaml_Interop_TypeName value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TargetType(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Exception(winrt::hresult* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Exception()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall SelectTemplate(void* item, void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectTemplate(*reinterpret_cast(&item), *reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectTemplateForItem(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectTemplate(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall SelectTemplateCore(void* item, void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectTemplateCore(*reinterpret_cast(&item), *reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectTemplateForItemCore(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectTemplateCore(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewDate()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarIdentifier(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifier()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarIdentifier(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarIdentifier(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Date(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Date()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Date(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Date(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_YearVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().YearVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_YearFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().YearFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinYear(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinYear()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinYear(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinYear(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxYear(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxYear()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxYear(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxYear(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedDate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDate(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_DateChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DateChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DateChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DateChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectedDateChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectedDateChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectedDateChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedDateChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CalendarIdentifier(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifier()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CalendarIdentifier(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CalendarIdentifier(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Date(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Date()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Date(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Date(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_YearVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().YearVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinYear(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinYear()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinYear(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinYear(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxYear(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxYear()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxYear(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxYear(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DayFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DayFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MonthFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MonthFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearFormat(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_YearFormat(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().YearFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_DatePicked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DatePicked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DatePicked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DatePicked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ShowAtAsync(void* target, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>>(this->shim().ShowAtAsync(*reinterpret_cast(&target))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PrimaryText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PrimaryText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrimaryText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SecondaryText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SecondaryText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PrimaryTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PrimaryTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SecondaryTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SecondaryTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDefaultShadowEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDefaultShadowEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CalendarIdentifierProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifierProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinYearProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinYearProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxYearProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxYearProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldDate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().OldDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewDate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().NewDate()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CalendarIdentifierProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CalendarIdentifierProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DayFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DayFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MonthFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MonthFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_YearFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().YearFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinYearProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinYearProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxYearProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxYearProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedDateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedDateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldDate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewDate(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewDate()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DropResult(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropResult()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Data(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Data()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall add_AnimatedVisualInvalidated(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AnimatedVisualInvalidated(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_AnimatedVisualInvalidated(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().AnimatedVisualInvalidated(*reinterpret_cast(&token)); + return 0; + } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Action(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Action()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpanded(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpanded()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsExpanded(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsExpanded(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandDirection(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandDirection()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ExpandDirection(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ExpandDirection(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Expanding(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Expanding(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Expanding(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Expanding(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Collapsed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Collapsed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Collapsed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Collapsed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpandedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpandedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandDirectionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandDirectionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NegativeContentHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NegativeContentHeight()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UseTouchAnimationsForAllNavigation(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UseTouchAnimationsForAllNavigation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UseTouchAnimationsForAllNavigation(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UseTouchAnimationsForAllNavigation(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UseTouchAnimationsForAllNavigationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UseTouchAnimationsForAllNavigationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FlyoutPresenterStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FlyoutPresenterStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FlyoutPresenterStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FlyoutPresenterStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDefaultShadowEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDefaultShadowEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FlyoutPresenterStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FlyoutPresenterStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Glyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Glyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Glyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Glyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeft(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeft()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MirroredWhenRightToLeft(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MirroredWhenRightToLeft(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Glyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Glyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Glyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Glyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeft(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeft()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MirroredWhenRightToLeft(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MirroredWhenRightToLeft(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MirroredWhenRightToLeftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MirroredWhenRightToLeftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CacheSize(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CacheSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CacheSize(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CacheSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoBack(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoBack()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoForward(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoForward()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CurrentSourcePageType(struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentSourcePageType()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SourcePageType(struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourcePageType()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SourcePageType(struct struct_Windows_UI_Xaml_Interop_TypeName value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SourcePageType(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackStackDepth(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackStackDepth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackStack(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().BackStack()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForwardStack(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().ForwardStack()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsNavigationStackEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsNavigationStackEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsNavigationStackEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsNavigationStackEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Navigated(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Navigated(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Navigated(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Navigated(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Navigating(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Navigating(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Navigating(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Navigating(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_NavigationFailed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().NavigationFailed(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_NavigationFailed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigationFailed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_NavigationStopped(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().NavigationStopped(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_NavigationStopped(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigationStopped(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GoBack() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GoBack(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GoBackWithTransitionInfo(void* transitionInfoOverride) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GoBack(*reinterpret_cast(&transitionInfoOverride)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GoForward() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GoForward(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Navigate(struct struct_Windows_UI_Xaml_Interop_TypeName sourcePageType, void* parameter, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Navigate(*reinterpret_cast(&sourcePageType), *reinterpret_cast(¶meter))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall NavigateWithTransitionInfo(struct struct_Windows_UI_Xaml_Interop_TypeName sourcePageType, void* parameter, void* infoOverride, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Navigate(*reinterpret_cast(&sourcePageType), *reinterpret_cast(¶meter), *reinterpret_cast(&infoOverride))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall NavigateToType(struct struct_Windows_UI_Xaml_Interop_TypeName sourcePageType, void* parameter, void* navigationOptions, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().NavigateToType(*reinterpret_cast(&sourcePageType), *reinterpret_cast(¶meter), *reinterpret_cast(&navigationOptions))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetNavigationState(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetNavigationState()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetNavigationState(void* navigationState) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetNavigationState(*reinterpret_cast(&navigationState)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetNavigationStateWithNavigationControl(void* navigationState, bool suppressNavigate) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetNavigationState(*reinterpret_cast(&navigationState), suppressNavigate); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CacheSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CacheSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoBackProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoBackProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoForwardProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoForwardProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CurrentSourcePageTypeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentSourcePageTypeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SourcePageTypeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourcePageTypeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackStackDepthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackStackDepthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackStackProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackStackProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForwardStackProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForwardStackProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsNavigationStackEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsNavigationStackEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_RowDefinitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowDefinitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColumnDefinitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnDefinitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundSizing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundSizing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RowSpacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_RowSpacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RowSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColumnSpacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ColumnSpacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ColumnSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BackgroundSizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RowSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColumnSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetRow(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRow(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetRow(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetRow(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColumnProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetColumn(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetColumn(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetColumn(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetColumn(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RowSpanProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowSpanProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetRowSpan(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRowSpan(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetRowSpan(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetRowSpan(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColumnSpanProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnSpanProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetColumnSpan(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetColumnSpan(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetColumnSpan(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetColumnSpan(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Panel(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Panel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Panel(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Panel(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContainerStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContainerStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContainerStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContainerStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderContainerStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderContainerStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderContainerStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderContainerStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContainerStyleSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContainerStyleSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContainerStyleSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContainerStyleSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HidesIfEmpty(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HidesIfEmpty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HidesIfEmpty(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HidesIfEmpty(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall SelectGroupStyle(void* group, uint32_t level, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectGroupStyle(*reinterpret_cast(&group), level)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall SelectGroupStyleCore(void* group, uint32_t level, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectGroupStyleCore(*reinterpret_cast(&group), level)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NewValue(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewValue()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultSectionIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultSectionIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DefaultSectionIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultSectionIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Sections(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Sections()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SectionsInView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SectionsInView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SectionHeaders(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SectionHeaders()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SectionHeaderClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SectionHeaderClick(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SectionHeaderClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SectionHeaderClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SectionsInViewChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SectionsInViewChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SectionsInViewChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SectionsInViewChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ScrollToSection(void* section) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollToSection(*reinterpret_cast(§ion)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHeaderInteractive(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHeaderInteractive()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsHeaderInteractive(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsHeaderInteractive(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Section(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Section()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHeaderInteractiveProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHeaderInteractiveProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultSectionIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultSectionIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SemanticZoomOwnerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SemanticZoomOwnerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsActiveViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActiveViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomedInViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomedInViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NavigateUri(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NavigateUri()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NavigateUri(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigateUri(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NavigateUriProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NavigateUriProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CreateIconElement(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CreateIconElement()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall CreateIconElementCore(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CreateIconElementCore()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIconElementPropertyCore(void* iconSourceProperty, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIconElementPropertyCore(*reinterpret_cast(&iconSourceProperty))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Stretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NineGrid(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NineGrid()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NineGrid(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NineGrid(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ImageFailed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ImageFailed(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ImageFailed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ImageFailed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ImageOpened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ImageOpened(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ImageOpened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ImageOpened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetAsCastingSource(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAsCastingSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlphaMask(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlphaMask()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ImageSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ImageSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ImageSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ImageSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ImageSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ImageSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NineGridProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NineGridProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Value(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Value(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Value(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InfoBadgeCornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InfoBadgeCornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InfoBadgeCornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InfoBadgeCornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconElement(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconElement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InfoBadgeCornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InfoBadgeCornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconElementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Title(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Title(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Message(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Message()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Message(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Message(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Severity(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Severity()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Severity(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Severity(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsIconVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIconVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsIconVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsIconVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsClosable(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClosable()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsClosable(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsClosable(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButton(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButton()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ActionButton(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ActionButton(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CloseButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CloseButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CloseButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Reason(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Reason()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Reason(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Reason()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MessageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MessageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SeverityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SeverityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsIconVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIconVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsClosableProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClosableProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconElement(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconElement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconElementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall GetInsertionIndexes(winrt::Windows::Foundation::Point position, int32_t* first, int32_t* second) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GetInsertionIndexes(*reinterpret_cast(&position), *first, *second); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ClickedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClickedItem()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Operation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Operation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Triggers(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Triggers()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OldBounds(winrt::Windows::Foundation::Rect* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewBounds(winrt::Windows::Foundation::Rect* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasStarted(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasStarted()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Start(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Start()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Transition(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Transition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Element(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Element()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Transition(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Transition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Element(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Element()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Complete() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall ShouldAnimate(void* transition, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ShouldAnimate(*reinterpret_cast(&transition))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall QueueTransition(void* transition) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().QueueTransition(*reinterpret_cast(&transition)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TransitionCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TransitionCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TransitionCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TransitionCompleted(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall ShouldAnimateCore(void* transition, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ShouldAnimateCore(*reinterpret_cast(&transition))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall StartTransitions(void* transitions) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StartTransitions(*reinterpret_cast const*>(&transitions)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Child(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Child()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Child(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Child(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSelected(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelected()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSelected(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSelected(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall add_ItemsChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemsChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemsChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ItemFromContainer(void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ItemFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromItem(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromItem(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IndexFromContainer(void* container, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IndexFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromIndex(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromIndex(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetItemContainerGeneratorForPanel(void* panel, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemContainerGeneratorForPanel(*reinterpret_cast(&panel))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall StartAt(struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition position, int32_t direction, bool allowStartAtRealizedItem) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StartAt(*reinterpret_cast(&position), *reinterpret_cast(&direction), allowStartAtRealizedItem); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Stop() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GenerateNext(bool* isNewlyRealized, void** returnValue) noexcept final try + { + clear_abi(returnValue); + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().GenerateNext(*isNewlyRealized)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PrepareItemContainer(void* container) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrepareItemContainer(*reinterpret_cast(&container)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RemoveAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Remove(struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition position, int32_t count) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Remove(*reinterpret_cast(&position), count); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GeneratorPositionFromIndex(int32_t itemIndex, struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GeneratorPositionFromIndex(itemIndex)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IndexFromGeneratorPosition(struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition position, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IndexFromGeneratorPosition(*reinterpret_cast(&position))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Recycle(struct struct_Microsoft_UI_Xaml_Controls_Primitives_GeneratorPosition position, int32_t count) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Recycle(*reinterpret_cast(&position), count); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall ItemFromContainer(void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ItemFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromItem(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromItem(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IndexFromContainer(void* container, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IndexFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromIndex(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromIndex(index)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ChildProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChildProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSelectedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelectedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsPanel(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsPanel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsPanel(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsPanel(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMemberPath(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMemberPath()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisplayMemberPath(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayMemberPath(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsPanelRoot(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsPanelRoot()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainerStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainerStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyleSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyleSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainerStyleSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainerStyleSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerGenerator(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerGenerator()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainerTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainerTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().GroupStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupStyleSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupStyleSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupStyleSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupStyleSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGrouping(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGrouping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GroupHeaderContainerFromItemContainer(void* itemContainer, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GroupHeaderContainerFromItemContainer(*reinterpret_cast(&itemContainer))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall IsItemItsOwnContainerOverride(void* item, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsItemItsOwnContainerOverride(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetContainerForItemOverride(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetContainerForItemOverride()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ClearContainerForItemOverride(void* element, void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ClearContainerForItemOverride(*reinterpret_cast(&element), *reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PrepareContainerForItemOverride(void* element, void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PrepareContainerForItemOverride(*reinterpret_cast(&element), *reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnItemsChanged(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemsChanged(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnItemContainerStyleChanged(void* oldItemContainerStyle, void* newItemContainerStyle) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemContainerStyleChanged(*reinterpret_cast(&oldItemContainerStyle), *reinterpret_cast(&newItemContainerStyle)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnItemContainerStyleSelectorChanged(void* oldItemContainerStyleSelector, void* newItemContainerStyleSelector) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemContainerStyleSelectorChanged(*reinterpret_cast(&oldItemContainerStyleSelector), *reinterpret_cast(&newItemContainerStyleSelector)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnItemTemplateChanged(void* oldItemTemplate, void* newItemTemplate) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemTemplateChanged(*reinterpret_cast(&oldItemTemplate), *reinterpret_cast(&newItemTemplate)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnItemTemplateSelectorChanged(void* oldItemTemplateSelector, void* newItemTemplateSelector) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemTemplateSelectorChanged(*reinterpret_cast(&oldItemTemplateSelector), *reinterpret_cast(&newItemTemplateSelector)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnGroupStyleSelectorChanged(void* oldGroupStyleSelector, void* newGroupStyleSelector) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnGroupStyleSelectorChanged(*reinterpret_cast(&oldGroupStyleSelector), *reinterpret_cast(&newGroupStyleSelector)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMemberPathProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMemberPathProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyleSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyleSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupStyleSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupStyleSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroupingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroupingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetItemsOwner(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemsOwner(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ItemsControlFromItemContainer(void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ItemsControlFromItemContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AddedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AddedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RemovedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().RemovedItems()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Footer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Footer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Footer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Footer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FooterTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FooterTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FooterTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FooterTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsSourceView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Layout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Layout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Layout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Layout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalCacheLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalCacheLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalCacheLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalCacheLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalCacheLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalCacheLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalCacheLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalCacheLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Background(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Background()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Background(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Background(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetElementIndex(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetElementIndex(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall TryGetElement(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryGetElement(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetOrCreateElement(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetOrCreateElement(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ElementPrepared(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ElementPrepared(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ElementPrepared(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ElementPrepared(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ElementClearing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ElementClearing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ElementClearing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ElementClearing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ElementIndexChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ElementIndexChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ElementIndexChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ElementIndexChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemTransitionProvider(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTransitionProvider()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTransitionProvider(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTransitionProvider(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Element(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Element()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Element(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Element()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OldIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewIndex()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Element(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Element()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Index(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Index()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ScrollViewer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollViewer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ScrollViewer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollViewer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CurrentAnchor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentAnchor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalAnchorRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAnchorRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalAnchorRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAnchorRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalAnchorRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAnchorRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalAnchorRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAnchorRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LayoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalCacheLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalCacheLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalCacheLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalCacheLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemTransitionProviderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTransitionProviderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Count(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Count()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAt(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAt(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasKeyIndexMapping(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasKeyIndexMapping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall KeyFromIndex(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().KeyFromIndex(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IndexFromKey(void* key, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IndexFromKey(*reinterpret_cast(&key))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IndexOf(void* item, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IndexOf(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* source, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&source), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupPadding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupPadding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupPadding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupPadding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstCacheIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstCacheIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstVisibleIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstVisibleIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LastVisibleIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LastVisibleIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LastCacheIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LastCacheIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollingDirection(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollingDirection()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupHeaderPlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupHeaderPlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupHeaderPlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupHeaderPlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsUpdatingScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsUpdatingScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsUpdatingScrollMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsUpdatingScrollMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CacheLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CacheLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CacheLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CacheLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AreStickyGroupHeadersEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreStickyGroupHeadersEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AreStickyGroupHeadersEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AreStickyGroupHeadersEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupPaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupPaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupHeaderPlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupHeaderPlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CacheLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CacheLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AreStickyGroupHeadersEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreStickyGroupHeadersEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollController(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollController()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollController(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollController(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Layout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Layout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Layout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Layout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsItemInvokedEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsItemInvokedEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsItemInvokedEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsItemInvokedEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTransitionProvider(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTransitionProvider()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTransitionProvider(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTransitionProvider(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CurrentItemIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentItemIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall TryGetItemIndex(double horizontalViewportRatio, double verticalViewportRatio, int32_t* index, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryGetItemIndex(horizontalViewportRatio, verticalViewportRatio, *index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall StartBringItemIntoView(int32_t index, void* options) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StartBringItemIntoView(index, *reinterpret_cast(&options)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Select(int32_t itemIndex) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Select(itemIndex); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Deselect(int32_t itemIndex) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Deselect(itemIndex); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IsSelected(int32_t itemIndex, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsSelected(itemIndex)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall DeselectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DeselectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall InvertSelection() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InvertSelection(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ItemInvoked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemInvoked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemInvoked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemInvoked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InvokedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InvokedItem()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsItemInvokedEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsItemInvokedEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LayoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTransitionProviderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTransitionProviderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CurrentItemIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentItemIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollControllerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollControllerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupPadding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupPadding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupPadding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupPadding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumns(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumns()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaximumRowsOrColumns(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstCacheIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstCacheIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FirstVisibleIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstVisibleIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LastVisibleIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LastVisibleIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LastCacheIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LastCacheIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollingDirection(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollingDirection()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupHeaderPlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupHeaderPlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupHeaderPlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupHeaderPlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CacheLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CacheLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CacheLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CacheLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AreStickyGroupHeadersEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreStickyGroupHeadersEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AreStickyGroupHeadersEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AreStickyGroupHeadersEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupPaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupPaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumnsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumnsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupHeaderPlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupHeaderPlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CacheLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CacheLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AreStickyGroupHeadersEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreStickyGroupHeadersEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall KeyFromIndex(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().KeyFromIndex(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IndexFromKey(void* key, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IndexFromKey(*reinterpret_cast(&key))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall InitializeForContext(void* context) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InitializeForContext(*reinterpret_cast(&context)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall UninitializeForContext(void* context) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UninitializeForContext(*reinterpret_cast(&context)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Measure(void* context, winrt::Windows::Foundation::Size availableSize, winrt::Windows::Foundation::Size* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Measure(*reinterpret_cast(&context), *reinterpret_cast(&availableSize))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Arrange(void* context, winrt::Windows::Foundation::Size finalSize, winrt::Windows::Foundation::Size* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Arrange(*reinterpret_cast(&context), *reinterpret_cast(&finalSize))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_MeasureInvalidated(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().MeasureInvalidated(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_MeasureInvalidated(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().MeasureInvalidated(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ArrangeInvalidated(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ArrangeInvalidated(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ArrangeInvalidated(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ArrangeInvalidated(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IndexBasedLayoutOrientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IndexBasedLayoutOrientation()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LayoutState(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayoutState()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LayoutState(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutState(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall get_LayoutStateCore(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayoutStateCore()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LayoutStateCore(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutStateCore(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall CreateDefaultItemTransitionProvider(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CreateDefaultItemTransitionProvider()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall InvalidateMeasure() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateMeasure(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall InvalidateArrange() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateArrange(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall SetIndexBasedLayoutOrientation(int32_t orientation) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIndexBasedLayoutOrientation(*reinterpret_cast(&orientation)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall add_ItemsInfoRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemsInfoRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemsInfoRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsInfoRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ItemsUnlocked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemsUnlocked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemsUnlocked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsUnlocked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_ItemsJustification(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsJustification()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsJustification(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsJustification(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsStretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsStretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsStretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsStretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinItemSpacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinItemSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinItemSpacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinItemSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineSpacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineSpacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActualLineHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualLineHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RequestedRangeStartIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestedRangeStartIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RequestedRangeLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestedRangeLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall InvalidateItemsInfo() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateItemsInfo(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall LockItemToLine(int32_t itemIndex, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().LockItemToLine(itemIndex)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsRangeStartIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsRangeStartIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsRangeStartIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsRangeStartIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsRangeRequestedLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsRangeRequestedLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetDesiredAspectRatios(uint32_t __valuesSize, double* values) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetDesiredAspectRatios(array_view(reinterpret_cast(values), reinterpret_cast(values) + __valuesSize)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetMinWidths(uint32_t __valuesSize, double* values) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetMinWidths(array_view(reinterpret_cast(values), reinterpret_cast(values) + __valuesSize)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetMaxWidths(uint32_t __valuesSize, double* values) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetMaxWidths(array_view(reinterpret_cast(values), reinterpret_cast(values) + __valuesSize)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsJustificationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsJustificationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsStretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsStretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinItemSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinItemSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActualLineHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualLineHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SingleSelectionFollowsFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SingleSelectionFollowsFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SingleSelectionFollowsFocus(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SingleSelectionFollowsFocus(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollIntoView(void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollIntoView(*reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectionModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SingleSelectionFollowsFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SingleSelectionFollowsFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMemberPath(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMemberPath()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisplayMemberPath(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayMemberPath(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedValue(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedValue(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedValue(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedValuePath(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedValuePath()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedValuePath(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedValuePath(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ItemsPicked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemsPicked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemsPicked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsPicked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ShowAtAsync(void* target, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>>(this->shim().ShowAtAsync(*reinterpret_cast(&target))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMemberPathProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMemberPathProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedValuePathProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedValuePathProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSwipeEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSwipeEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSwipeEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSwipeEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanDragItems(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDragItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanDragItems(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanDragItems(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanReorderItems(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanReorderItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanReorderItems(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanReorderItems(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsItemClickEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsItemClickEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsItemClickEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsItemClickEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DataFetchSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DataFetchSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DataFetchSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DataFetchSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IncrementalLoadingThreshold(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IncrementalLoadingThreshold()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IncrementalLoadingThreshold(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IncrementalLoadingThreshold(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IncrementalLoadingTrigger(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IncrementalLoadingTrigger()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IncrementalLoadingTrigger(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IncrementalLoadingTrigger(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowsScrollingPlaceholders(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowsScrollingPlaceholders()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShowsScrollingPlaceholders(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowsScrollingPlaceholders(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ReorderMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReorderMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ReorderMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ReorderMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedRanges(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedRanges()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsMultiSelectCheckBoxEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMultiSelectCheckBoxEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsMultiSelectCheckBoxEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsMultiSelectCheckBoxEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SingleSelectionFollowsFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SingleSelectionFollowsFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SingleSelectionFollowsFocus(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SingleSelectionFollowsFocus(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ItemClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemClick(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragItemsStarting(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragItemsStarting(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DragItemsStarting(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DragItemsStarting(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragItemsCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragItemsCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DragItemsCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DragItemsCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContainerContentChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContainerContentChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ContainerContentChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ContainerContentChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ChoosingItemContainer(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ChoosingItemContainer(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ChoosingItemContainer(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ChoosingItemContainer(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ChoosingGroupHeaderContainer(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ChoosingGroupHeaderContainer(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ChoosingGroupHeaderContainer(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ChoosingGroupHeaderContainer(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ScrollIntoView(void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollIntoView(*reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall LoadMoreItemsAsync(void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>(this->shim().LoadMoreItemsAsync()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollIntoViewWithAlignment(void* item, int32_t alignment) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollIntoView(*reinterpret_cast(&item), *reinterpret_cast(&alignment)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetDesiredContainerUpdateDuration(int64_t duration) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetDesiredContainerUpdateDuration(*reinterpret_cast(&duration)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectRange(void* itemIndexRange) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectRange(*reinterpret_cast(&itemIndexRange)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall DeselectRange(void* itemIndexRange) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DeselectRange(*reinterpret_cast(&itemIndexRange)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall IsDragSource(bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsDragSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall TryStartConnectedAnimationAsync(void* animation, void* item, void* elementName, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>(this->shim().TryStartConnectedAnimationAsync(*reinterpret_cast(&animation), *reinterpret_cast(&item), *reinterpret_cast(&elementName))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PrepareConnectedAnimation(void* key, void* item, void* elementName, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().PrepareConnectedAnimation(*reinterpret_cast(&key), *reinterpret_cast(&item), *reinterpret_cast(&elementName))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Footer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Footer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Footer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Footer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FooterTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FooterTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FooterTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FooterTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectionModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSwipeEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSwipeEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanDragItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDragItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanReorderItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanReorderItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsItemClickEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsItemClickEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DataFetchSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DataFetchSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IncrementalLoadingThresholdProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IncrementalLoadingThresholdProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IncrementalLoadingTriggerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IncrementalLoadingTriggerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowsScrollingPlaceholdersProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowsScrollingPlaceholdersProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ReorderModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReorderModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsMultiSelectCheckBoxEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMultiSelectCheckBoxEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SingleSelectionFollowsFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SingleSelectionFollowsFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SemanticZoomOwnerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SemanticZoomOwnerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsActiveViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActiveViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomedInViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomedInViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall GetRelativeScrollPosition(void* listViewBase, void* itemToKeyHandler, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRelativeScrollPosition(*reinterpret_cast(&listViewBase), *reinterpret_cast(&itemToKeyHandler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetRelativeScrollPositionAsync(void* listViewBase, void* relativeScrollPosition, void* keyToItemHandler, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from(this->shim().SetRelativeScrollPositionAsync(*reinterpret_cast(&listViewBase), *reinterpret_cast(&relativeScrollPosition), *reinterpret_cast(&keyToItemHandler))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MapServiceToken(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MapServiceToken()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MapServiceToken(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MapServiceToken(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Center(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Center()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Center(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Center(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Layers(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Layers()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Layers(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Layers(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomLevel(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomLevel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomLevel(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomLevel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InteractiveControlsVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InteractiveControlsVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InteractiveControlsVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InteractiveControlsVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_MapElementClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().MapElementClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_MapElementClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().MapElementClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_MapServiceErrorOccurred(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().MapServiceErrorOccurred(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_MapServiceErrorOccurred(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().MapServiceErrorOccurred(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DiagnosticMessage(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DiagnosticMessage()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LayersProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayersProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MapServiceTokenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MapServiceTokenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CenterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomLevelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomLevelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InteractiveControlsVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InteractiveControlsVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Location(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Location()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Element(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Element()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MapElements(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().MapElements()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MapElements(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MapElements(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_MapElementClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().MapElementClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_MapElementClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().MapElementClick(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MapElementsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MapElementsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Location(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Location()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Location(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Location(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LocationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LocationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TransportControls(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TransportControls()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TransportControls(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TransportControls(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AreTransportControlsEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreTransportControlsEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AreTransportControlsEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AreTransportControlsEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PosterSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PosterSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PosterSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PosterSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Stretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoPlay(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoPlay()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AutoPlay(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AutoPlay(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFullWindow(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFullWindow()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFullWindow(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFullWindow(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MediaPlayer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MediaPlayer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetMediaPlayer(void* mediaPlayer) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetMediaPlayer(*reinterpret_cast(&mediaPlayer)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AreTransportControlsEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreTransportControlsEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PosterSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PosterSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoPlayProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoPlayProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFullWindowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFullWindowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MediaPlayerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MediaPlayerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MediaPlayer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MediaPlayer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MediaPlayer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MediaPlayer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Stretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFullWindow(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFullWindow()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFullWindow(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFullWindow(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MediaPlayerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MediaPlayerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFullWindowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFullWindowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsZoomButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastForwardButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastForwardButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFastForwardButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFastForwardButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastForwardEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastForwardEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFastForwardEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFastForwardEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastRewindButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastRewindButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFastRewindButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFastRewindButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastRewindEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastRewindEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsFastRewindEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsFastRewindEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsStopButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStopButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsStopButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsStopButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsStopEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStopEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsStopEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsStopEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVolumeButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVolumeButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsVolumeButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsVolumeButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVolumeEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVolumeEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsVolumeEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsVolumeEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPlaybackRateButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlaybackRateButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPlaybackRateButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPlaybackRateButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPlaybackRateEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlaybackRateEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPlaybackRateEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPlaybackRateEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSeekBarVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSeekBarVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSeekBarVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSeekBarVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSeekEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSeekEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSeekEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSeekEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsCompact(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompact()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsCompact(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsCompact(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipForwardButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipForwardButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSkipForwardButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSkipForwardButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipForwardEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipForwardEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSkipForwardEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSkipForwardEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipBackwardButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipBackwardButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSkipBackwardButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSkipBackwardButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipBackwardEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipBackwardEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSkipBackwardEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSkipBackwardEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsNextTrackButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsNextTrackButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsNextTrackButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsNextTrackButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPreviousTrackButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPreviousTrackButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPreviousTrackButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPreviousTrackButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FastPlayFallbackBehaviour(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FastPlayFallbackBehaviour()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FastPlayFallbackBehaviour(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FastPlayFallbackBehaviour(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowAndHideAutomatically(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowAndHideAutomatically()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShowAndHideAutomatically(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAndHideAutomatically(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsRepeatEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRepeatEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsRepeatEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsRepeatEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsRepeatButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRepeatButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsRepeatButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsRepeatButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ThumbnailRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ThumbnailRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ThumbnailRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ThumbnailRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Show() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Show(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Hide() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Hide(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DropoutOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropoutOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetDropoutOrder(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>(this->shim().GetDropoutOrder(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetDropoutOrder(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetDropoutOrder(*reinterpret_cast(&element), *reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsZoomButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastForwardButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastForwardButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastForwardEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastForwardEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastRewindButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastRewindButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsFastRewindEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFastRewindEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsStopButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStopButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsStopEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStopEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVolumeButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVolumeButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVolumeEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVolumeEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPlaybackRateButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlaybackRateButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPlaybackRateEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlaybackRateEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSeekBarVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSeekBarVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSeekEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSeekEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsCompactProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCompactProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipForwardButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipForwardButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipForwardEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipForwardEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipBackwardButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipBackwardButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSkipBackwardEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSkipBackwardEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsNextTrackButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsNextTrackButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPreviousTrackButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPreviousTrackButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FastPlayFallbackBehaviourProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FastPlayFallbackBehaviourProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowAndHideAutomaticallyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowAndHideAutomaticallyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsRepeatEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRepeatEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsRepeatButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRepeatButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Title(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Title(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuFlyoutPresenterStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuFlyoutPresenterStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuFlyoutPresenterStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuFlyoutPresenterStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ShowAt(void* targetElement, winrt::Windows::Foundation::Point point) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowAt(*reinterpret_cast(&targetElement), *reinterpret_cast(&point)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Command(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Command()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Command(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Command(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Icon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Icon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Icon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Icon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_KeyboardAcceleratorTextOverride(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyboardAcceleratorTextOverride()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_KeyboardAcceleratorTextOverride(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().KeyboardAcceleratorTextOverride(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Click(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Click(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Click(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Click(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_KeyboardAcceleratorTextOverrideProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyboardAcceleratorTextOverrideProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDefaultShadowEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDefaultShadowEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDefaultShadowEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SystemBackdrop()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SystemBackdropProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SystemBackdropProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MenuFlyoutPresenterStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuFlyoutPresenterStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Icon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Icon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Icon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Icon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall Navigate(struct struct_Windows_UI_Xaml_Interop_TypeName sourcePageType, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Navigate(*reinterpret_cast(&sourcePageType))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsPaneOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPaneOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPaneOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactModeThresholdWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactModeThresholdWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CompactModeThresholdWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CompactModeThresholdWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandedModeThresholdWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedModeThresholdWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ExpandedModeThresholdWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ExpandedModeThresholdWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterMenuItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().FooterMenuItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterMenuItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterMenuItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FooterMenuItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FooterMenuItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneFooter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneFooter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneFooter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneFooter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSettingsVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSettingsVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSettingsVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSettingsVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneToggleButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneToggleButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPaneToggleButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPaneToggleButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlwaysShowHeader(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlwaysShowHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AlwaysShowHeader(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AlwaysShowHeader(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactPaneLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactPaneLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CompactPaneLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CompactPaneLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpenPaneLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OpenPaneLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OpenPaneLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneToggleButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneToggleButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneToggleButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneToggleButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().MenuItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SettingsItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SettingsItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoSuggestBox(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoSuggestBox()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AutoSuggestBox(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AutoSuggestBox(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuItemTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuItemTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemContainerStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemContainerStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuItemContainerStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuItemContainerStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemContainerStyleSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemContainerStyleSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuItemContainerStyleSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuItemContainerStyleSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MenuItemFromContainer(void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MenuItemFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromMenuItem(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromMenuItem(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ItemInvoked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemInvoked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemInvoked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemInvoked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DisplayModeChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DisplayModeChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DisplayModeChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayModeChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_IsTitleBarAutoPaddingEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTitleBarAutoPaddingEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTitleBarAutoPaddingEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTitleBarAutoPaddingEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsBackButtonVisible(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsBackButtonVisible(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsBackButtonVisible(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsBackEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsBackEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsBackEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneTitle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneTitle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneTitle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneTitle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_BackRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().BackRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_BackRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().BackRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneClosed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneClosed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneClosed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneClosed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneClosing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneClosing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneClosing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneClosing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneOpened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneOpened(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneOpened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneOpened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneOpening(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_PaneDisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneDisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneDisplayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneDisplayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneCustomContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneCustomContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneCustomContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneCustomContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentOverlay(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentOverlay()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentOverlay(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentOverlay(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPaneVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPaneVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFollowsFocus(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFollowsFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFollowsFocus(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFollowsFocus(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShoulderNavigationEnabled(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShoulderNavigationEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShoulderNavigationEnabled(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShoulderNavigationEnabled(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowLabelMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowLabelMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OverflowLabelMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OverflowLabelMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Expanding(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Expanding(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Expanding(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Expanding(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Collapsed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Collapsed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Collapsed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Collapsed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Expand(void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Expand(*reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Collapse(void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Collapse(*reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Icon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Icon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Icon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Icon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactPaneLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactPaneLength()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectsOnInvoked(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectsOnInvoked()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectsOnInvoked(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectsOnInvoked(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpanded(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpanded()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsExpanded(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsExpanded(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasUnrealizedChildren(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasUnrealizedChildren()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HasUnrealizedChildren(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HasUnrealizedChildren(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsChildSelected(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsChildSelected()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsChildSelected(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsChildSelected(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().MenuItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MenuItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MenuItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InfoBadge(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InfoBadge()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InfoBadge(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InfoBadge(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsSelected(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelected()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSelected(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSelected(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsSelectedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSelectedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CollapsedItemContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CollapsedItemContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CollapsedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CollapsedItem()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ExpandingItemContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandingItemContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandingItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandingItem()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InvokedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InvokedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSettingsInvoked(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSettingsInvoked()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InvokedItemContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InvokedItemContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RecommendedNavigationTransitionInfo(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RecommendedNavigationTransitionInfo()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactPaneLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactPaneLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectsOnInvokedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectsOnInvokedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpandedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpandedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasUnrealizedChildrenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasUnrealizedChildrenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsChildSelectedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsChildSelectedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InfoBadgeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InfoBadgeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSettingsSelected(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSettingsSelected()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectedItemContainer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemContainer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RecommendedNavigationTransitionInfo(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RecommendedNavigationTransitionInfo()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsPaneOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactModeThresholdWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactModeThresholdWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandedModeThresholdWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedModeThresholdWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterMenuItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterMenuItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FooterMenuItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FooterMenuItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneFooterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneFooterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSettingsVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSettingsVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneToggleButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneToggleButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlwaysShowHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlwaysShowHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactPaneLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactPaneLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpenPaneLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneToggleButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneToggleButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SettingsItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SettingsItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AutoSuggestBoxProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoSuggestBoxProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemContainerStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemContainerStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MenuItemContainerStyleSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MenuItemContainerStyleSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTitleBarAutoPaddingEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTitleBarAutoPaddingEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsBackButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsBackEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneTitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneTitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneDisplayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneDisplayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneCustomContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneCustomContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentOverlayProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentOverlayProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFollowsFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFollowsFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShoulderNavigationEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShoulderNavigationEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowLabelModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowLabelModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TopPadding(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopPadding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowButtonVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowButtonVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneToggleButtonVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneToggleButtonVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackButtonVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackButtonVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopPaneVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopPaneVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftPaneVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftPaneVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SingleSelectionFollowsFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SingleSelectionFollowsFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneToggleButtonWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneToggleButtonWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SmallerPaneToggleButtonWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallerPaneToggleButtonWidth()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OpenPaneLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLength()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TopPaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopPaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowButtonVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowButtonVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneToggleButtonVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneToggleButtonVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackButtonVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackButtonVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopPaneVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopPaneVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftPaneVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftPaneVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SingleSelectionFollowsFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SingleSelectionFollowsFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneToggleButtonWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneToggleButtonWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SmallerPaneToggleButtonWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallerPaneToggleButtonWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OpenPaneLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Children(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Children()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall get_ChildrenCore(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().ChildrenCore()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall InitializeForContextCore(void* context) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InitializeForContextCore(*reinterpret_cast(&context)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall UninitializeForContextCore(void* context) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UninitializeForContextCore(*reinterpret_cast(&context)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MeasureOverride(void* context, winrt::Windows::Foundation::Size availableSize, winrt::Windows::Foundation::Size* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MeasureOverride(*reinterpret_cast(&context), *reinterpret_cast(&availableSize))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ArrangeOverride(void* context, winrt::Windows::Foundation::Size finalSize, winrt::Windows::Foundation::Size* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ArrangeOverride(*reinterpret_cast(&context), *reinterpret_cast(&finalSize))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Minimum(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Minimum()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Minimum(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Minimum(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Maximum(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Maximum()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Maximum(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Maximum(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Value(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Value(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Value(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SmallChange(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallChange()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SmallChange(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SmallChange(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LargeChange(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LargeChange()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LargeChange(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LargeChange(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFlyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFlyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextReadingOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextReadingOrder(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ValidationMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ValidationMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ValidationMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ValidationMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SpinButtonPlacementMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpinButtonPlacementMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SpinButtonPlacementMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SpinButtonPlacementMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsWrapEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsWrapEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsWrapEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsWrapEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AcceptsExpression(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AcceptsExpression()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AcceptsExpression(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AcceptsExpression(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NumberFormatter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NumberFormatter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NumberFormatter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NumberFormatter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ValueChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ValueChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ValueChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ValueChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_MinimumProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinimumProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SmallChangeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SmallChangeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LargeChangeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LargeChangeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ValidationModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ValidationModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SpinButtonPlacementModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpinButtonPlacementModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsWrapEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsWrapEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AcceptsExpressionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AcceptsExpressionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NumberFormatterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NumberFormatterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldValue(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewValue(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewValue()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Frame(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Frame()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NavigationCacheMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NavigationCacheMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NavigationCacheMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigationCacheMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopAppBar(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopAppBar()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TopAppBar(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TopAppBar(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BottomAppBar(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomAppBar()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BottomAppBar(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BottomAppBar(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnNavigatedFrom(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnNavigatedFrom(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnNavigatedTo(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnNavigatedTo(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnNavigatingFrom(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnNavigatingFrom(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FrameProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FrameProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopAppBarProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopAppBarProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BottomAppBarProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomAppBarProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Children(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Children()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Background(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Background()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Background(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Background(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsItemsHost(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsItemsHost()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ChildrenTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChildrenTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ChildrenTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ChildrenTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundTransition(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundTransition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundTransition(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundTransition(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsItemsHostProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsItemsHostProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ChildrenTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChildrenTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Child(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Child()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Child(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Child(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalShift(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalShift()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalShift(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalShift(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSourceEndOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSourceEndOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalSourceEndOffset(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalSourceEndOffset(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSourceOffsetKind(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSourceOffsetKind()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalSourceOffsetKind(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalSourceOffsetKind(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSourceStartOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSourceStartOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalSourceStartOffset(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalSourceStartOffset(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHorizontalShiftClamped(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalShiftClamped()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsHorizontalShiftClamped(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsHorizontalShiftClamped(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVerticalShiftClamped(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVerticalShiftClamped()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsVerticalShiftClamped(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsVerticalShiftClamped(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxHorizontalShiftRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHorizontalShiftRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxHorizontalShiftRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxHorizontalShiftRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxVerticalShiftRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxVerticalShiftRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxVerticalShiftRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxVerticalShiftRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalShift(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalShift()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalShift(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalShift(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSourceEndOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSourceEndOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalSourceEndOffset(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalSourceEndOffset(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSourceOffsetKind(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSourceOffsetKind()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalSourceOffsetKind(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalSourceOffsetKind(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSourceStartOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSourceStartOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalSourceStartOffset(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalSourceStartOffset(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RefreshAutomaticHorizontalOffsets() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RefreshAutomaticHorizontalOffsets(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RefreshAutomaticVerticalOffsets() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RefreshAutomaticVerticalOffsets(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ChildProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ChildProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSourceEndOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSourceEndOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSourceOffsetKindProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSourceOffsetKindProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSourceStartOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSourceStartOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxHorizontalShiftRatioProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHorizontalShiftRatioProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalShiftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalShiftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHorizontalShiftClampedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalShiftClampedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVerticalShiftClampedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVerticalShiftClampedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSourceEndOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSourceEndOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSourceOffsetKindProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSourceOffsetKindProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSourceStartOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSourceStartOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxVerticalShiftRatioProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxVerticalShiftRatioProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalShiftProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalShiftProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Password(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Password()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Password(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Password(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PasswordChar(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PasswordChar()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PasswordChar(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PasswordChar(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPasswordRevealButtonEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPasswordRevealButtonEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPasswordRevealButtonEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPasswordRevealButtonEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLength(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PasswordRevealMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PasswordRevealMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PasswordRevealMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PasswordRevealMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextReadingOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextReadingOrder(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InputScope(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InputScope()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InputScope(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InputScope(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanPasteClipboardContent(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanPasteClipboardContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFlyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFlyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_PasswordChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PasswordChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PasswordChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PasswordChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextMenuOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextMenuOpening(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ContextMenuOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ContextMenuOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Paste(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Paste(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Paste(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Paste(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PasswordChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PasswordChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PasswordChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PasswordChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PasteFromClipboard() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PasteFromClipboard(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsContentChanging(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsContentChanging()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PasswordProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PasswordProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PasswordCharProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PasswordCharProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPasswordRevealButtonEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPasswordRevealButtonEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PasswordRevealModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PasswordRevealModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InputScopeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InputScopeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanPasteClipboardContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanPasteClipboardContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Data(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Data()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Data(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Data(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Data(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Data()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Data(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Data(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DataProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DataProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DataProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DataProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BadgeNumber(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeNumber()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BadgeNumber(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BadgeNumber(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BadgeGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BadgeGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BadgeGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BadgeImageSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeImageSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BadgeImageSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BadgeImageSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BadgeText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BadgeText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BadgeText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroup(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroup()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsGroup(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsGroup(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Contact(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Contact()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Contact(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Contact(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayName(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayName()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisplayName(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayName(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Initials(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Initials()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Initials(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Initials(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreferSmallImage(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreferSmallImage()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreferSmallImage(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreferSmallImage(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProfilePicture(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProfilePicture()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ProfilePicture(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ProfilePicture(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BadgeNumberProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeNumberProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BadgeGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BadgeImageSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeImageSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BadgeTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BadgeTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsGroupProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGroupProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContactProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContactProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayNameProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayNameProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InitialsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InitialsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreferSmallImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreferSmallImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProfilePictureProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProfilePictureProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ActualInitials(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualInitials()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActualImageBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualImageBrush()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ConfirmationButtonsVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ConfirmationButtonsVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ConfirmationButtonsVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ConfirmationButtonsVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Confirmed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Confirmed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Confirmed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Confirmed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ShowAtAsync(void* target, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>(this->shim().ShowAtAsync(*reinterpret_cast(&target))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ConfirmationButtonsVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ConfirmationButtonsVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NumberOfPages(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NumberOfPages()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NumberOfPages(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NumberOfPages(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPageIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPageIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedPageIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPageIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxVisiblePips(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxVisiblePips()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxVisiblePips(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxVisiblePips(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreviousButtonVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreviousButtonVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreviousButtonVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreviousButtonVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NextButtonVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NextButtonVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NextButtonVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NextButtonVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreviousButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreviousButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreviousButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreviousButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NextButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NextButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NextButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NextButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPipStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPipStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedPipStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedPipStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NormalPipStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NormalPipStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NormalPipStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NormalPipStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectedIndexChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectedIndexChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectedIndexChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndexChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_WrapMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WrapMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_WrapMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().WrapMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NumberOfPagesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NumberOfPagesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPageIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPageIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxVisiblePipsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxVisiblePipsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreviousButtonVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreviousButtonVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NextButtonVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NextButtonVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreviousButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreviousButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NextButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NextButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedPipStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedPipStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NormalPipStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NormalPipStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_WrapModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WrapModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PipsPagerItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().PipsPagerItems()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Title(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Title(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TitleTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TitleTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TitleTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LeftHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LeftHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LeftHeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LeftHeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_RightHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RightHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightHeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightHeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_RightHeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RightHeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsLocked(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLocked()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsLocked(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsLocked(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderFocusVisualPlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderFocusVisualPlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderFocusVisualPlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderFocusVisualPlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHeaderItemsCarouselEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHeaderItemsCarouselEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsHeaderItemsCarouselEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsHeaderItemsCarouselEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PivotItemLoading(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PivotItemLoading(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PivotItemLoading(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PivotItemLoading(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PivotItemLoaded(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PivotItemLoaded(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PivotItemLoaded(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PivotItemLoaded(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PivotItemUnloading(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PivotItemUnloading(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PivotItemUnloading(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PivotItemUnloading(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PivotItemUnloaded(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PivotItemUnloaded(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PivotItemUnloaded(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PivotItemUnloaded(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Item(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Item(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TitleTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightHeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightHeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsLockedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLockedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderFocusVisualPlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderFocusVisualPlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHeaderItemsCarouselEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHeaderItemsCarouselEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SlideInAnimationGroupProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SlideInAnimationGroupProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetSlideInAnimationGroup(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetSlideInAnimationGroup(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetSlideInAnimationGroup(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetSlideInAnimationGroup(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsIndeterminate(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIndeterminate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsIndeterminate(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsIndeterminate(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowError(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowError()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShowError(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowError(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowPaused(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowPaused()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShowPaused(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShowPaused(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsIndeterminateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIndeterminateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowErrorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowErrorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShowPausedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShowPausedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContainerAnimationStartPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContainerAnimationStartPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContainerAnimationEndPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContainerAnimationEndPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Container2AnimationStartPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Container2AnimationStartPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Container2AnimationEndPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Container2AnimationEndPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContainerAnimationMidPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContainerAnimationMidPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IndicatorLengthDelta(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IndicatorLengthDelta()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClipRect(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClipRect()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EllipseAnimationEndPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EllipseAnimationEndPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EllipseAnimationWellPosition(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EllipseAnimationWellPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EllipseDiameter(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EllipseDiameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EllipseOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EllipseOffset()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsActive(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActive()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsActive(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsActive(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsIndeterminate(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIndeterminate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsIndeterminate(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsIndeterminate(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Value(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Value(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Value(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Minimum(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Minimum()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Minimum(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Minimum(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Maximum(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Maximum()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Maximum(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Maximum(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsActiveProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActiveProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsIndeterminateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIndeterminateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinimumProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinimumProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_EllipseDiameter(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EllipseDiameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EllipseOffset(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EllipseOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxSideLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxSideLength()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupName(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupName()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupName(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupName(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GroupNameProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupNameProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromIndex(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromIndex(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_MaxColumns(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxColumns()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxColumns(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxColumns(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxColumnsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxColumnsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsChecked(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsChecked()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsChecked(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsChecked(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupName(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupName()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GroupName(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GroupName(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsCheckedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCheckedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GroupNameProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GroupNameProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AreCheckStatesEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreCheckStatesEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAreCheckStatesEnabled(void* object, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAreCheckStatesEnabled(*reinterpret_cast(&object), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAreCheckStatesEnabled(void* object, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAreCheckStatesEnabled(*reinterpret_cast(&object))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Caption(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Caption()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Caption(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Caption(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InitialSetValue(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InitialSetValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InitialSetValue(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InitialSetValue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsClearEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClearEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsClearEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsClearEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnly()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsReadOnly(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsReadOnly(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxRating(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxRating()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxRating(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxRating(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderValue(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderValue(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderValue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemInfo(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemInfo()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemInfo(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemInfo(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Value(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Value(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Value(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ValueChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ValueChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ValueChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ValueChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CaptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CaptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InitialSetValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InitialSetValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsClearEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClearEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsReadOnlyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnlyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxRatingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxRatingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemInfoProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemInfoProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DisabledGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisabledGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisabledGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Glyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Glyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Glyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Glyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PointerOverGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverPlaceholderGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverPlaceholderGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PointerOverPlaceholderGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverPlaceholderGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UnsetGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UnsetGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UnsetGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UnsetGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DisabledGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverPlaceholderGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverPlaceholderGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UnsetGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UnsetGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DisabledImage(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledImage()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisabledImage(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisabledImage(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Image(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Image()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Image(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Image(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderImage(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderImage()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderImage(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderImage(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverImage(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverImage()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PointerOverImage(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverImage(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverPlaceholderImage(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverPlaceholderImage()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PointerOverPlaceholderImage(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PointerOverPlaceholderImage(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UnsetImage(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UnsetImage()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UnsetImage(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UnsetImage(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DisabledImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PointerOverPlaceholderImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerOverPlaceholderImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UnsetImageProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UnsetImageProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Visualizer(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Visualizer()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Visualizer(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Visualizer(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PullDirection(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PullDirection()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PullDirection(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PullDirection(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_RefreshRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RefreshRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_RefreshRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().RefreshRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall RequestRefresh() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RequestRefresh(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_VisualizerProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VisualizerProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PullDirectionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PullDirectionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InteractionRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InteractionRatio()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall GetDeferral(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetDeferral()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldState(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldState()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewState(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewState()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall RequestRefresh() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RequestRefresh(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_State(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().State()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_RefreshRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RefreshRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_RefreshRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().RefreshRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_RefreshStateChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RefreshStateChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_RefreshStateChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().RefreshStateChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InfoProviderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InfoProviderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BackgroundSizing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundSizing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundSizing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_BackgroundSizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftOfProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftOfProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetLeftOf(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLeftOf(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetLeftOf(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetLeftOf(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AboveProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AboveProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAbove(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAbove(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAbove(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAbove(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightOfProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightOfProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetRightOf(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRightOf(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetRightOf(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetRightOf(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BelowProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BelowProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetBelow(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetBelow(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetBelow(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetBelow(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignHorizontalCenterWithProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignHorizontalCenterWithProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignHorizontalCenterWith(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignHorizontalCenterWith(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignHorizontalCenterWith(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignHorizontalCenterWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignVerticalCenterWithProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignVerticalCenterWithProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignVerticalCenterWith(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignVerticalCenterWith(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignVerticalCenterWith(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignVerticalCenterWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignLeftWithProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignLeftWithProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignLeftWith(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignLeftWith(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignLeftWith(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignLeftWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignTopWithProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignTopWithProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignTopWith(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignTopWith(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignTopWith(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignTopWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignRightWithProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignRightWithProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignRightWith(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignRightWith(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignRightWith(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignRightWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignBottomWithProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignBottomWithProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignBottomWith(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignBottomWith(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignBottomWith(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignBottomWith(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignLeftWithPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignLeftWithPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignLeftWithPanel(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignLeftWithPanel(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignLeftWithPanel(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignLeftWithPanel(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignTopWithPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignTopWithPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignTopWithPanel(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignTopWithPanel(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignTopWithPanel(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignTopWithPanel(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignRightWithPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignRightWithPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignRightWithPanel(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignRightWithPanel(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignRightWithPanel(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignRightWithPanel(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignBottomWithPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignBottomWithPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignBottomWithPanel(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignBottomWithPanel(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignBottomWithPanel(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignBottomWithPanel(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignHorizontalCenterWithPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignHorizontalCenterWithPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignHorizontalCenterWithPanel(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignHorizontalCenterWithPanel(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignHorizontalCenterWithPanel(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignHorizontalCenterWithPanel(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AlignVerticalCenterWithPanelProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlignVerticalCenterWithPanelProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlignVerticalCenterWithPanel(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlignVerticalCenterWithPanel(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetAlignVerticalCenterWithPanel(void* element, bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetAlignVerticalCenterWithPanel(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnly()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsReadOnly(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsReadOnly(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AcceptsReturn(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AcceptsReturn()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AcceptsReturn(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AcceptsReturn(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrapping(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrapping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextWrapping(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextWrapping(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSpellCheckEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSpellCheckEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSpellCheckEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSpellCheckEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextPredictionEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextPredictionEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextPredictionEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextPredictionEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Document(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Document()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InputScope(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InputScope()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InputScope(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InputScope(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorFontEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorFontEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorWhenNotFocused(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorWhenNotFocused()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColorWhenNotFocused(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColorWhenNotFocused(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLength(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalTextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalTextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterCasing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterCasing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CharacterCasing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterCasing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisabledFormattingAccelerators(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledFormattingAccelerators()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisabledFormattingAccelerators(uint32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisabledFormattingAccelerators(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextDocument(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextDocument()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFlyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFlyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProofingMenuFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProofingMenuFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TextChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextMenuOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextMenuOpening(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ContextMenuOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ContextMenuOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Paste(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Paste(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Paste(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Paste(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextCompositionStarted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextCompositionStarted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextCompositionStarted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextCompositionStarted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextCompositionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextCompositionChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextCompositionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextCompositionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextCompositionEnded(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextCompositionEnded(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextCompositionEnded(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextCompositionEnded(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CopyingToClipboard(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CopyingToClipboard(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CopyingToClipboard(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CopyingToClipboard(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CuttingToClipboard(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CuttingToClipboard(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CuttingToClipboard(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CuttingToClipboard(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectionChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetLinguisticAlternativesAsync(void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>>(this->shim().GetLinguisticAlternativesAsync()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextReadingOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextReadingOrder(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClipboardCopyFormat(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClipboardCopyFormat()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ClipboardCopyFormat(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ClipboardCopyFormat(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DesiredCandidateWindowAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredCandidateWindowAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DesiredCandidateWindowAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredCandidateWindowAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CandidateWindowBoundsChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CandidateWindowBoundsChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CandidateWindowBoundsChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CandidateWindowBoundsChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextChanging(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectionStart(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsReadOnlyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnlyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AcceptsReturnProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AcceptsReturnProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrappingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrappingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSpellCheckEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSpellCheckEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextPredictionEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextPredictionEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InputScopeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InputScopeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorWhenNotFocusedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorWhenNotFocusedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterCasingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterCasingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisabledFormattingAcceleratorsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisabledFormattingAcceleratorsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProofingMenuFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProofingMenuFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DesiredCandidateWindowAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredCandidateWindowAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClipboardCopyFormatProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClipboardCopyFormatProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsContentChanging(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsContentChanging()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrapping(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrapping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextWrapping(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextWrapping(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextTrimming(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextTrimming()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextTrimming(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextTrimming(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Blocks(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Blocks()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineStackingStrategy(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineStackingStrategy()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineStackingStrategy(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineStackingStrategy(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CharacterSpacing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowContentTarget(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentTarget()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OverflowContentTarget(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OverflowContentTarget(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextSelectionEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextSelectionEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextSelectionEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextSelectionEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasOverflowContent(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasOverflowContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentStart(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentEnd(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentEnd()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionStart(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionEnd(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionEnd()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BaselineOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BaselineOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLines(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLines()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLines(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLines(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextLineBounds(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextLineBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextLineBounds(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextLineBounds(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpticalMarginAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpticalMarginAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OpticalMarginAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OpticalMarginAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorFontEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorFontEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextReadingOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextReadingOrder(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextDecorations(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextDecorations()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextDecorations(uint32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextDecorations(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextTrimmed(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextTrimmed()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalTextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalTextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextHighlighters(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().TextHighlighters()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFlyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFlyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextMenuOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextMenuOpening(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ContextMenuOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ContextMenuOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_IsTextTrimmedChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().IsTextTrimmedChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_IsTextTrimmedChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextTrimmedChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Select(void* start, void* end) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Select(*reinterpret_cast(&start), *reinterpret_cast(&end)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetPositionFromPoint(winrt::Windows::Foundation::Point point, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPositionFromPoint(*reinterpret_cast(&point))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CopySelectionToClipboard() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CopySelectionToClipboard(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextIndent(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextIndent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextIndent(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextIndent(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OverflowContentTarget(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentTarget()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OverflowContentTarget(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OverflowContentTarget(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasOverflowContent(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasOverflowContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentStart(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentEnd(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentEnd()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BaselineOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BaselineOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLines(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLines()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLines(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLines(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextTrimmed(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextTrimmed()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_IsTextTrimmedChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().IsTextTrimmedChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_IsTextTrimmedChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextTrimmedChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetPositionFromPoint(winrt::Windows::Foundation::Point point, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPositionFromPoint(*reinterpret_cast(&point))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OverflowContentTargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentTargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasOverflowContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasOverflowContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLinesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLinesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextTrimmedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextTrimmedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrappingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrappingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextTrimmingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextTrimmingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineStackingStrategyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineStackingStrategyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OverflowContentTargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OverflowContentTargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextSelectionEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextSelectionEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasOverflowContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasOverflowContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLinesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLinesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextLineBoundsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextLineBoundsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpticalMarginAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpticalMarginAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextDecorationsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextDecorationsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextTrimmedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextTrimmedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextIndentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextIndentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Height(struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Height()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Height(struct struct_Microsoft_UI_Xaml_GridLength value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Height(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActualHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualHeight()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall get_CurrentAnchor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentAnchor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RegisterAnchorCandidate(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterAnchorCandidate(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall UnregisterAnchorCandidate(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UnregisterAnchorCandidate(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CanVerticallyScroll(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanVerticallyScroll()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanVerticallyScroll(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanVerticallyScroll(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanHorizontallyScroll(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanHorizontallyScroll()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanHorizontallyScroll(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanHorizontallyScroll(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollOwner(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollOwner()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ScrollOwner(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollOwner(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanContentRenderOutsideBounds(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanContentRenderOutsideBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanContentRenderOutsideBounds(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanContentRenderOutsideBounds(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SizesContentToTemplatedParent(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SizesContentToTemplatedParent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SizesContentToTemplatedParent(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SizesContentToTemplatedParent(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall LineUp() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineUp(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall LineDown() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineDown(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall LineLeft() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineLeft(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall LineRight() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineRight(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PageUp() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PageUp(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PageDown() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PageDown(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PageLeft() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PageLeft(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PageRight() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PageRight(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MouseWheelUp() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelUp(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MouseWheelDown() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelDown(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MouseWheelLeft() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelLeft(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MouseWheelRight() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MouseWheelRight(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetHorizontalOffset(double offset) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetHorizontalOffset(offset); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetVerticalOffset(double offset) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetVerticalOffset(offset); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MakeVisible(void* visual, winrt::Windows::Foundation::Rect rectangle, winrt::Windows::Foundation::Rect* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MakeVisible(*reinterpret_cast(&visual), *reinterpret_cast(&rectangle))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CanContentRenderOutsideBoundsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanContentRenderOutsideBoundsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SizesContentToTemplatedParentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SizesContentToTemplatedParentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CurrentAnchor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentAnchor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollPresenter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollPresenter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpressionAnimationSources(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpressionAnimationSources()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollableWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollableHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_State(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().State()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalScrollBarVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollBarVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollBarVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollBarVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentOrientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentOrientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ContentOrientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ContentOrientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollChainMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollChainMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalScrollChainMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollChainMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollChainMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollChainMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollChainMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollChainMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollRailMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollRailMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalScrollRailMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollRailMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollRailMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollRailMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollRailMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollRailMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalScrollMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedHorizontalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedHorizontalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedVerticalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedVerticalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedHorizontalScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedHorizontalScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedVerticalScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedVerticalScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomChainMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomChainMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomChainMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomChainMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IgnoredInputKinds(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IgnoredInputKinds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IgnoredInputKinds(uint32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IgnoredInputKinds(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinZoomFactor(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinZoomFactor(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinZoomFactor(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxZoomFactor(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxZoomFactor(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxZoomFactor(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalAnchorRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAnchorRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalAnchorRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAnchorRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalAnchorRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAnchorRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalAnchorRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAnchorRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RegisterAnchorCandidate(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterAnchorCandidate(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall UnregisterAnchorCandidate(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UnregisterAnchorCandidate(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollTo(double horizontalOffset, double verticalOffset, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ScrollTo(horizontalOffset, verticalOffset)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollToWithOptions(double horizontalOffset, double verticalOffset, void* options, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ScrollTo(horizontalOffset, verticalOffset, *reinterpret_cast(&options))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollBy(double horizontalOffsetDelta, double verticalOffsetDelta, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ScrollBy(horizontalOffsetDelta, verticalOffsetDelta)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollByWithOptions(double horizontalOffsetDelta, double verticalOffsetDelta, void* options, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ScrollBy(horizontalOffsetDelta, verticalOffsetDelta, *reinterpret_cast(&options))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall AddScrollVelocity(winrt::Windows::Foundation::Numerics::float2 offsetsVelocity, void* inertiaDecayRate, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AddScrollVelocity(*reinterpret_cast(&offsetsVelocity), *reinterpret_cast const*>(&inertiaDecayRate))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ZoomTo(float zoomFactor, void* centerPoint, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomTo(zoomFactor, *reinterpret_cast const*>(¢erPoint))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ZoomToWithOptions(float zoomFactor, void* centerPoint, void* options, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomTo(zoomFactor, *reinterpret_cast const*>(¢erPoint), *reinterpret_cast(&options))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ZoomBy(float zoomFactorDelta, void* centerPoint, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomBy(zoomFactorDelta, *reinterpret_cast const*>(¢erPoint))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ZoomByWithOptions(float zoomFactorDelta, void* centerPoint, void* options, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ZoomBy(zoomFactorDelta, *reinterpret_cast const*>(¢erPoint), *reinterpret_cast(&options))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall AddZoomVelocity(float zoomFactorVelocity, void* centerPoint, void* inertiaDecayRate, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().AddZoomVelocity(zoomFactorVelocity, *reinterpret_cast const*>(¢erPoint), *reinterpret_cast const*>(&inertiaDecayRate))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ExtentChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ExtentChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ExtentChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ExtentChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_StateChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().StateChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ViewChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ViewChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ViewChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ViewChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ScrollAnimationStarting(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ScrollAnimationStarting(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ScrollAnimationStarting(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollAnimationStarting(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ZoomAnimationStarting(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ZoomAnimationStarting(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ZoomAnimationStarting(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomAnimationStarting(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ScrollCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ScrollCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ScrollCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ZoomCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ZoomCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ZoomCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_BringingIntoView(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().BringingIntoView(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_BringingIntoView(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().BringingIntoView(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AnchorRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AnchorRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_AnchorRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorRequested(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollPresenterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollPresenterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentOrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentOrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollChainModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollChainModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollChainModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollChainModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollRailModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollRailModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollRailModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollRailModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedHorizontalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedHorizontalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedVerticalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedVerticalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedHorizontalScrollModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedHorizontalScrollModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedVerticalScrollModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedVerticalScrollModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomChainModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomChainModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IgnoredInputKindsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IgnoredInputKindsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinZoomFactorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinZoomFactorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxZoomFactorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxZoomFactorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalAnchorRatioProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAnchorRatioProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalAnchorRatioProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAnchorRatioProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HorizontalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalScrollBarVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollBarVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollBarVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollBarVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHorizontalRailEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalRailEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsHorizontalRailEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsHorizontalRailEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVerticalRailEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVerticalRailEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsVerticalRailEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsVerticalRailEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHorizontalScrollChainingEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalScrollChainingEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsHorizontalScrollChainingEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsHorizontalScrollChainingEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVerticalScrollChainingEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVerticalScrollChainingEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsVerticalScrollChainingEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsVerticalScrollChainingEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomChainingEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomChainingEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomChainingEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomChainingEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsScrollInertiaEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsScrollInertiaEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsScrollInertiaEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsScrollInertiaEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomInertiaEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomInertiaEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomInertiaEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomInertiaEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalScrollMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalScrollMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalScrollMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalScrollMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSnapPointsAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSnapPointsAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalSnapPointsAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalSnapPointsAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSnapPointsAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSnapPointsAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalSnapPointsAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalSnapPointsAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSnapPointsType(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSnapPointsType()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalSnapPointsType(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalSnapPointsType(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSnapPointsType(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSnapPointsType()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalSnapPointsType(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalSnapPointsType(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomSnapPointsType(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomSnapPointsType()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomSnapPointsType(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomSnapPointsType(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollableWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedHorizontalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedHorizontalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollableHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedVerticalScrollBarVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedVerticalScrollBarVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinZoomFactor(float value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinZoomFactor(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxZoomFactor(float value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxZoomFactor(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomSnapPoints(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().ZoomSnapPoints()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopLeftHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopLeftHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TopLeftHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TopLeftHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LeftHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LeftHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TopHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TopHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ReduceViewportForCoreInputViewOcclusions(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReduceViewportForCoreInputViewOcclusions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ReduceViewportForCoreInputViewOcclusions(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ReduceViewportForCoreInputViewOcclusions(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalAnchorRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAnchorRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalAnchorRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAnchorRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalAnchorRatio(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAnchorRatio()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalAnchorRatio(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAnchorRatio(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanContentRenderOutsideBounds(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanContentRenderOutsideBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanContentRenderOutsideBounds(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanContentRenderOutsideBounds(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_AnchorRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AnchorRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_AnchorRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ViewChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ViewChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ViewChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ViewChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ViewChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ViewChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ViewChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ViewChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DirectManipulationStarted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DirectManipulationStarted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DirectManipulationStarted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DirectManipulationStarted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DirectManipulationCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DirectManipulationCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DirectManipulationCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DirectManipulationCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ScrollToHorizontalOffset(double offset) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollToHorizontalOffset(offset); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ScrollToVerticalOffset(double offset) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ScrollToVerticalOffset(offset); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ZoomToFactor(float factor) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomToFactor(factor); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ChangeView(void* horizontalOffset, void* verticalOffset, void* zoomFactor, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ChangeView(*reinterpret_cast const*>(&horizontalOffset), *reinterpret_cast const*>(&verticalOffset), *reinterpret_cast const*>(&zoomFactor))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ChangeViewWithOptionalAnimation(void* horizontalOffset, void* verticalOffset, void* zoomFactor, bool disableAnimation, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ChangeView(*reinterpret_cast const*>(&horizontalOffset), *reinterpret_cast const*>(&verticalOffset), *reinterpret_cast const*>(&zoomFactor), disableAnimation)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall InvalidateScrollInfo() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateScrollInfo(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDeferredScrollingEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDeferredScrollingEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDeferredScrollingEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDeferredScrollingEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BringIntoViewOnFocusChange(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BringIntoViewOnFocusChange()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BringIntoViewOnFocusChange(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BringIntoViewOnFocusChange(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HorizontalSnapPointsAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSnapPointsAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSnapPointsAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSnapPointsAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalSnapPointsTypeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalSnapPointsTypeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalSnapPointsTypeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalSnapPointsTypeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomSnapPointsTypeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomSnapPointsTypeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollableWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedHorizontalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedHorizontalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ViewportHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ViewportHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ScrollableHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScrollableHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ComputedVerticalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ComputedVerticalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExtentHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtentHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinZoomFactorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinZoomFactorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxZoomFactorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxZoomFactorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomFactorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomFactorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomSnapPointsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomSnapPointsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopLeftHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopLeftHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ReduceViewportForCoreInputViewOcclusionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ReduceViewportForCoreInputViewOcclusionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalAnchorRatioProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAnchorRatioProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalAnchorRatioProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAnchorRatioProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetHorizontalScrollBarVisibility(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHorizontalScrollBarVisibility(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetHorizontalScrollBarVisibility(void* element, int32_t horizontalScrollBarVisibility) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetHorizontalScrollBarVisibility(*reinterpret_cast(&element), *reinterpret_cast(&horizontalScrollBarVisibility)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollBarVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollBarVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetVerticalScrollBarVisibility(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetVerticalScrollBarVisibility(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetVerticalScrollBarVisibility(void* element, int32_t verticalScrollBarVisibility) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetVerticalScrollBarVisibility(*reinterpret_cast(&element), *reinterpret_cast(&verticalScrollBarVisibility)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHorizontalRailEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalRailEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsHorizontalRailEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsHorizontalRailEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsHorizontalRailEnabled(void* element, bool isHorizontalRailEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsHorizontalRailEnabled(*reinterpret_cast(&element), isHorizontalRailEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVerticalRailEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVerticalRailEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsVerticalRailEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsVerticalRailEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsVerticalRailEnabled(void* element, bool isVerticalRailEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsVerticalRailEnabled(*reinterpret_cast(&element), isVerticalRailEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsHorizontalScrollChainingEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHorizontalScrollChainingEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsHorizontalScrollChainingEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsHorizontalScrollChainingEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsHorizontalScrollChainingEnabled(void* element, bool isHorizontalScrollChainingEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsHorizontalScrollChainingEnabled(*reinterpret_cast(&element), isHorizontalScrollChainingEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVerticalScrollChainingEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVerticalScrollChainingEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsVerticalScrollChainingEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsVerticalScrollChainingEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsVerticalScrollChainingEnabled(void* element, bool isVerticalScrollChainingEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsVerticalScrollChainingEnabled(*reinterpret_cast(&element), isVerticalScrollChainingEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomChainingEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomChainingEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsZoomChainingEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsZoomChainingEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsZoomChainingEnabled(void* element, bool isZoomChainingEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsZoomChainingEnabled(*reinterpret_cast(&element), isZoomChainingEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsScrollInertiaEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsScrollInertiaEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsScrollInertiaEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsScrollInertiaEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsScrollInertiaEnabled(void* element, bool isScrollInertiaEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsScrollInertiaEnabled(*reinterpret_cast(&element), isScrollInertiaEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomInertiaEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomInertiaEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsZoomInertiaEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsZoomInertiaEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsZoomInertiaEnabled(void* element, bool isZoomInertiaEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsZoomInertiaEnabled(*reinterpret_cast(&element), isZoomInertiaEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalScrollModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalScrollModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetHorizontalScrollMode(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHorizontalScrollMode(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetHorizontalScrollMode(void* element, int32_t horizontalScrollMode) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetHorizontalScrollMode(*reinterpret_cast(&element), *reinterpret_cast(&horizontalScrollMode)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalScrollModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalScrollModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetVerticalScrollMode(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetVerticalScrollMode(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetVerticalScrollMode(void* element, int32_t verticalScrollMode) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetVerticalScrollMode(*reinterpret_cast(&element), *reinterpret_cast(&verticalScrollMode)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetZoomMode(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetZoomMode(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetZoomMode(void* element, int32_t zoomMode) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetZoomMode(*reinterpret_cast(&element), *reinterpret_cast(&zoomMode)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanContentRenderOutsideBoundsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanContentRenderOutsideBoundsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetCanContentRenderOutsideBounds(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetCanContentRenderOutsideBounds(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetCanContentRenderOutsideBounds(void* element, bool canContentRenderOutsideBounds) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetCanContentRenderOutsideBounds(*reinterpret_cast(&element), canContentRenderOutsideBounds); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDeferredScrollingEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDeferredScrollingEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsDeferredScrollingEnabled(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsDeferredScrollingEnabled(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetIsDeferredScrollingEnabled(void* element, bool isDeferredScrollingEnabled) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsDeferredScrollingEnabled(*reinterpret_cast(&element), isDeferredScrollingEnabled); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BringIntoViewOnFocusChangeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BringIntoViewOnFocusChangeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetBringIntoViewOnFocusChange(void* element, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetBringIntoViewOnFocusChange(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetBringIntoViewOnFocusChange(void* element, bool bringIntoViewOnFocusChange) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetBringIntoViewOnFocusChange(*reinterpret_cast(&element), bringIntoViewOnFocusChange); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsIntermediate(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsIntermediate()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NextView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NextView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FinalView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FinalView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsInertial(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInertial()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AnchorCandidates(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AnchorCandidates()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AnchorElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnchorElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AnchorElement(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AnchorElement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SnapPointsMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SnapPointsMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SnapPointsMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SnapPointsMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RequestEventArgs(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RequestEventArgs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TargetHorizontalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetHorizontalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TargetVerticalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetVerticalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Animation(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Animation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Animation(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Animation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StartPosition(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StartPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EndPosition(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EndPosition()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AnimationMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnimationMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AnimationMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AnimationMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SnapPointsMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SnapPointsMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SnapPointsMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SnapPointsMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(int32_t animationMode, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&animationMode), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CreateInstance2(int32_t animationMode, int32_t snapPointsMode, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&animationMode), *reinterpret_cast(&snapPointsMode), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CenterPoint(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterPoint()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StartZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StartZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_EndZoomFactor(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EndZoomFactor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Animation(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Animation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Animation(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Animation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CorrelationId(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AnimationMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnimationMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AnimationMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AnimationMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SnapPointsMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SnapPointsMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SnapPointsMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SnapPointsMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(int32_t animationMode, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&animationMode), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CreateInstance2(int32_t animationMode, int32_t snapPointsMode, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&animationMode), *reinterpret_cast(&snapPointsMode), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AddedSections(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AddedSections()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RemovedSections(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().RemovedSections()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AddedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AddedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RemovedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().RemovedItems()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstanceWithRemovedItemsAndAddedItems(void* removedItems, void* addedItems, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstanceWithRemovedItemsAndAddedItems(*reinterpret_cast const*>(&removedItems), *reinterpret_cast const*>(&addedItems), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Icon(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Icon()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Icon(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Icon(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ZoomedInView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomedInView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomedInView(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomedInView(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomedOutView(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomedOutView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ZoomedOutView(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ZoomedOutView(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomedInViewActive(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomedInViewActive()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomedInViewActive(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomedInViewActive(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanChangeViews(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanChangeViews()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanChangeViews(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanChangeViews(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ViewChangeStarted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ViewChangeStarted(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ViewChangeStarted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ViewChangeStarted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ViewChangeCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ViewChangeCompleted(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ViewChangeCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ViewChangeCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ToggleActiveView() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ToggleActiveView(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomOutButtonEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomOutButtonEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomOutButtonEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomOutButtonEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall get_SemanticZoomOwner(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SemanticZoomOwner()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SemanticZoomOwner(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SemanticZoomOwner(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsActiveView(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActiveView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsActiveView(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsActiveView(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomedInView(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomedInView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsZoomedInView(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsZoomedInView(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall InitializeViewChange() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InitializeViewChange(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CompleteViewChange() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CompleteViewChange(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MakeVisible(void* item) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MakeVisible(*reinterpret_cast(&item)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall StartViewChangeFrom(void* source, void* destination) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StartViewChangeFrom(*reinterpret_cast(&source), *reinterpret_cast(&destination)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall StartViewChangeTo(void* source, void* destination) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StartViewChangeTo(*reinterpret_cast(&source), *reinterpret_cast(&destination)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CompleteViewChangeFrom(void* source, void* destination) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CompleteViewChangeFrom(*reinterpret_cast(&source), *reinterpret_cast(&destination)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CompleteViewChangeTo(void* source, void* destination) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CompleteViewChangeTo(*reinterpret_cast(&source), *reinterpret_cast(&destination)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Item(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Item(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Bounds(winrt::Windows::Foundation::Rect* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Bounds(winrt::Windows::Foundation::Rect value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Bounds(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ZoomedInViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomedInViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ZoomedOutViewProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ZoomedOutViewProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomedInViewActiveProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomedInViewActiveProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanChangeViewsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanChangeViewsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsZoomOutButtonEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsZoomOutButtonEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsSourceZoomedInView(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSourceZoomedInView()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSourceZoomedInView(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSourceZoomedInView(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SourceItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SourceItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SourceItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DestinationItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DestinationItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DestinationItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DestinationItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IntermediateValue(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IntermediateValue()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IntermediateValue(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IntermediateValue(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StepFrequency(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StepFrequency()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_StepFrequency(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StepFrequency(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SnapsTo(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SnapsTo()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SnapsTo(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SnapsTo(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TickFrequency(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TickFrequency()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TickFrequency(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TickFrequency(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TickPlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TickPlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TickPlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TickPlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDirectionReversed(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDirectionReversed()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDirectionReversed(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDirectionReversed(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsThumbToolTipEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsThumbToolTipEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsThumbToolTipEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsThumbToolTipEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ThumbToolTipValueConverter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ThumbToolTipValueConverter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ThumbToolTipValueConverter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ThumbToolTipValueConverter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IntermediateValueProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IntermediateValueProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StepFrequencyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StepFrequencyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SnapsToProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SnapsToProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TickFrequencyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TickFrequencyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TickPlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TickPlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsDirectionReversedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDirectionReversedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsThumbToolTipEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsThumbToolTipEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ThumbToolTipValueConverterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ThumbToolTipValueConverterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Flyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Flyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Flyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Flyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Command(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Command()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Command(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Command(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Click(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Click(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Click(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Click(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Pane(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Pane(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPaneOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPaneOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpenPaneLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OpenPaneLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OpenPaneLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactPaneLength(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactPaneLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CompactPaneLength(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CompactPaneLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PanePlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PanePlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PanePlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PanePlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DisplayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DisplayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneBackground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneBackground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PaneBackground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneBackground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_PaneClosing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneClosing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneClosing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneClosing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneClosed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneClosed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneClosed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneClosed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneOpening(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneOpened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneOpened(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneOpened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneOpened(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpenPaneLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenPaneLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompactPaneLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompactPaneLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PanePlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PanePlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DisplayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DisplayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaneBackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaneBackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Spacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Spacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Spacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Spacing(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AreScrollSnapPointsRegular(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreScrollSnapPointsRegular()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AreScrollSnapPointsRegular(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AreScrollSnapPointsRegular(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BackgroundSizing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BackgroundSizing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThickness()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BorderThickness(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BorderThickness(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadius()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CornerRadius(struct struct_Microsoft_UI_Xaml_CornerRadius value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CornerRadius(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Spacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Spacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Spacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Spacing(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AreScrollSnapPointsRegularProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreScrollSnapPointsRegularProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundSizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundSizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BorderThicknessProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BorderThicknessProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CornerRadiusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CornerRadiusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall SelectStyle(void* item, void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectStyle(*reinterpret_cast(&item), *reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall SelectStyleCore(void* item, void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().SelectStyleCore(*reinterpret_cast(&item), *reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CompositionScaleX(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompositionScaleX()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompositionScaleY(float* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompositionScaleY()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CompositionScaleChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CompositionScaleChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CompositionScaleChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CompositionScaleChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall CreateCoreIndependentInputSource(uint32_t deviceKinds, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CreateCoreIndependentInputSource(*reinterpret_cast(&deviceKinds))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CompositionScaleXProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompositionScaleXProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CompositionScaleYProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CompositionScaleYProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LeftItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LeftItems(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LeftItems(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_RightItems(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RightItems(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TopItems(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TopItems(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BottomItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BottomItems(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BottomItems(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Close() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Close(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_LeftItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BottomItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BottomItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Background(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Background()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Background(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Background(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Command(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Command()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Command(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Command(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BehaviorOnInvoked(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BehaviorOnInvoked()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_BehaviorOnInvoked(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BehaviorOnInvoked(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Invoked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Invoked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Invoked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Invoked(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SwipeControl(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SwipeControl()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BackgroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BehaviorOnInvokedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BehaviorOnInvokedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Mode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Mode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Mode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Symbol(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Symbol()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Symbol(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Symbol(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstanceWithSymbol(int32_t symbol, void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstanceWithSymbol(*reinterpret_cast(&symbol))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Symbol(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Symbol()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Symbol(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Symbol(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SymbolProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SymbolProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SymbolProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SymbolProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TabWidthMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabWidthMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabWidthMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabWidthMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabStripHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabStripHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripHeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripHeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabStripHeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabStripHeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripFooter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripFooter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabStripFooter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabStripFooter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripFooterTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripFooterTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabStripFooterTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabStripFooterTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAddTabButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAddTabButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsAddTabButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsAddTabButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AddTabButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AddTabButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AddTabButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AddTabButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AddTabButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AddTabButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AddTabButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AddTabButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TabCloseRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabCloseRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabCloseRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabCloseRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabDroppedOutside(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabDroppedOutside(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabDroppedOutside(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabDroppedOutside(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AddTabButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AddTabButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_AddTabButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().AddTabButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabItemsChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabItemsChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabItemsChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabItemsChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_TabItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().TabItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItemTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabItemTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabItemTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanDragTabs(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDragTabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanDragTabs(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanDragTabs(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanReorderTabs(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanReorderTabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanReorderTabs(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanReorderTabs(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AllowDropTabs(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowDropTabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AllowDropTabs(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AllowDropTabs(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedIndex(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromItem(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromItem(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromIndex(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromIndex(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabDragStarting(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabDragStarting(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabDragStarting(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabDragStarting(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabDragCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabDragCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabDragCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabDragCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabStripDragOver(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabStripDragOver(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabStripDragOver(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabStripDragOver(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabStripDrop(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabStripDrop(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabStripDrop(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabStripDrop(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CanTearOutTabs(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanTearOutTabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanTearOutTabs(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanTearOutTabs(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TabTearOutWindowRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabTearOutWindowRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabTearOutWindowRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabTearOutWindowRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TabTearOutRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TabTearOutRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TabTearOutRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TabTearOutRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ExternalTornOutTabsDropping(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ExternalTornOutTabsDropping(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ExternalTornOutTabsDropping(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ExternalTornOutTabsDropping(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ExternalTornOutTabsDropped(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ExternalTornOutTabsDropped(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ExternalTornOutTabsDropped(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ExternalTornOutTabsDropped(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tabs(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Tabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DropIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropIndex()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tabs(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Tabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DropIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AllowDrop(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowDrop()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AllowDrop(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AllowDrop(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsClosable(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClosable()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsClosable(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsClosable(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabViewTemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabViewTemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CloseRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CloseRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CloseRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseRequested(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsClosableProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClosableProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabViewTemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabViewTemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconElement(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconElement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TabGeometry(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabGeometry()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TabGeometry(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TabGeometry(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconElementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TabGeometryProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabGeometryProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TabWidthModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabWidthModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripHeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripHeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripFooterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripFooterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabStripFooterTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabStripFooterTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsAddTabButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAddTabButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AddTabButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AddTabButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AddTabButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AddTabButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TabItemTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabItemTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanDragTabsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDragTabsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanReorderTabsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanReorderTabsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AllowDropTabsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowDropTabsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedIndexProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CanTearOutTabsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanTearOutTabsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tab(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Tab()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DropResult(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropResult()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tab(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Tab()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Data(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Data()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tab(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Tab()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tab(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Tab()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tabs(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Tabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewWindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewWindowId()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Items(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Tabs(uint32_t* __valueSize, void*** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + std::tie(*__valueSize, *value) = detach_abi(this->shim().Tabs()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewWindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewWindowId()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_NewWindowId(struct struct_Microsoft_UI_WindowId value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NewWindowId(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Title(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Title(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Subtitle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Subtitle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Subtitle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Subtitle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Target(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Target()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Target(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Target(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TailVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TailVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TailVisibility(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TailVisibility(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ActionButtonContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ActionButtonContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ActionButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ActionButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ActionButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ActionButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ActionButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ActionButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommand(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommand()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonCommand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonCommand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandParameter(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandParameter()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CloseButtonCommandParameter(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonCommandParameter(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlacementMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlacementMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShouldConstrainToRootBounds(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldConstrainToRootBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ShouldConstrainToRootBounds(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ShouldConstrainToRootBounds(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsLightDismissEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLightDismissEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsLightDismissEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsLightDismissEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreferredPlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreferredPlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreferredPlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreferredPlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeroContentPlacement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeroContentPlacement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeroContentPlacement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeroContentPlacement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeroContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeroContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeroContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeroContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ActionButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ActionButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ActionButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ActionButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CloseButtonClick(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CloseButtonClick(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CloseButtonClick(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CloseButtonClick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closing(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closing(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closing(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Reason(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Reason()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Reason(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Reason()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetDeferral(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetDeferral()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TailVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TailVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SubtitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SubtitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ActionButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActionButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CloseButtonCommandParameterProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CloseButtonCommandParameterProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ShouldConstrainToRootBoundsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldConstrainToRootBoundsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsLightDismissEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLightDismissEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreferredPlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreferredPlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeroContentPlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeroContentPlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeroContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeroContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TopRightHighlightMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopRightHighlightMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TopRightHighlightMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TopRightHighlightMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopLeftHighlightMargin(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopLeftHighlightMargin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TopLeftHighlightMargin(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TopLeftHighlightMargin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconElement(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconElement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TopRightHighlightMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopRightHighlightMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TopLeftHighlightMarginProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TopLeftHighlightMarginProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconElementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FontSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamily(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamily()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontFamily(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeight(struct struct_Windows_UI_Text_FontWeight* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontWeight(struct struct_Windows_UI_Text_FontWeight value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_FontStretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().FontStretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CharacterSpacing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Foreground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Foreground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Foreground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrapping(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrapping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextWrapping(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextWrapping(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextTrimming(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextTrimming()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextTrimming(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextTrimming(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Inlines(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Inlines()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Padding(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Padding()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Padding(struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Padding(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineStackingStrategy(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineStackingStrategy()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LineStackingStrategy(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LineStackingStrategy(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextSelectionEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextSelectionEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextSelectionEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextSelectionEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentStart(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentEnd(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentEnd()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionStart(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionEnd(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionEnd()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_BaselineOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BaselineOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLines(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLines()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLines(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLines(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextLineBounds(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextLineBounds()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextLineBounds(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextLineBounds(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpticalMarginAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpticalMarginAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OpticalMarginAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OpticalMarginAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorFontEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorFontEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextReadingOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextReadingOrder(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextDecorations(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextDecorations()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextDecorations(uint32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextDecorations(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextTrimmed(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextTrimmed()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalTextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalTextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextHighlighters(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().TextHighlighters()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFlyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFlyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextMenuOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextMenuOpening(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ContextMenuOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ContextMenuOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_IsTextTrimmedChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().IsTextTrimmedChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_IsTextTrimmedChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextTrimmedChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Select(void* start, void* end) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Select(*reinterpret_cast(&start), *reinterpret_cast(&end)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetAlphaMask(void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAlphaMask()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CopySelectionToClipboard() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CopySelectionToClipboard(); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontFamilyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontWeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_FontStretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontStretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrappingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrappingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextTrimmingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextTrimmingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PaddingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PaddingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LineStackingStrategyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineStackingStrategyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextSelectionEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextSelectionEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLinesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLinesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextLineBoundsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextLineBoundsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OpticalMarginAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpticalMarginAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextDecorationsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextDecorationsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextTrimmedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextTrimmedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Text(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Text(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionLength(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionStart(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionStart(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionStart(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaxLength(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaxLength(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnly()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsReadOnly(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsReadOnly(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AcceptsReturn(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AcceptsReturn()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AcceptsReturn(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AcceptsReturn(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrapping(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrapping()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextWrapping(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextWrapping(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSpellCheckEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSpellCheckEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsSpellCheckEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsSpellCheckEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextPredictionEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextPredictionEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsTextPredictionEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextPredictionEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InputScope(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InputScope()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_InputScope(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InputScope(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderText(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderText(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColor(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColor(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocus(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocus()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PreventKeyboardDisplayOnProgrammaticFocus(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PreventKeyboardDisplayOnProgrammaticFocus(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsColorFontEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorFontEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorWhenNotFocused(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorWhenNotFocused()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionHighlightColorWhenNotFocused(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionHighlightColorWhenNotFocused(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalTextAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalTextAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterCasing(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterCasing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CharacterCasing(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterCasing(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderForeground(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderForeground()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlaceholderForeground(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlaceholderForeground(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanPasteClipboardContent(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanPasteClipboardContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanUndo(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanUndo()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanRedo(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanRedo()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionFlyout(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionFlyout(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProofingMenuFlyout(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProofingMenuFlyout()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Description(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Description(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TextChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextMenuOpening(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextMenuOpening(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ContextMenuOpening(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ContextMenuOpening(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Paste(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Paste(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Paste(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Paste(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextCompositionStarted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextCompositionStarted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextCompositionStarted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextCompositionStarted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextCompositionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextCompositionChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextCompositionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextCompositionChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextCompositionEnded(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextCompositionEnded(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextCompositionEnded(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextCompositionEnded(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CopyingToClipboard(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CopyingToClipboard(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CopyingToClipboard(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CopyingToClipboard(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CuttingToClipboard(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CuttingToClipboard(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CuttingToClipboard(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CuttingToClipboard(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_BeforeTextChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().BeforeTextChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_BeforeTextChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().BeforeTextChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectionChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanging(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Select(int32_t start, int32_t length) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Select(start, length); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetRectFromCharacterIndex(int32_t charIndex, bool trailingEdge, winrt::Windows::Foundation::Rect* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRectFromCharacterIndex(charIndex, trailingEdge)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetLinguisticAlternativesAsync(void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>>(this->shim().GetLinguisticAlternativesAsync()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Undo() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Undo(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Redo() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Redo(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall PasteFromClipboard() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PasteFromClipboard(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CopySelectionToClipboard() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CopySelectionToClipboard(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall CutSelectionToClipboard() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CutSelectionToClipboard(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ClearUndoRedoHistory() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ClearUndoRedoHistory(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrder(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrder()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TextReadingOrder(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TextReadingOrder(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DesiredCandidateWindowAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredCandidateWindowAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DesiredCandidateWindowAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredCandidateWindowAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CandidateWindowBoundsChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CandidateWindowBoundsChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CandidateWindowBoundsChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CandidateWindowBoundsChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_TextChanging(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TextChanging(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TextChanging(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TextChanging(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NewText(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewText()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectionStart(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionStart()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionLength(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionLength()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaxLengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxLengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsReadOnlyProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnlyProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_AcceptsReturnProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AcceptsReturnProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextWrappingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextWrappingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsSpellCheckEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSpellCheckEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsTextPredictionEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextPredictionEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_InputScopeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InputScopeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderTextProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderTextProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PreventKeyboardDisplayOnProgrammaticFocusProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PreventKeyboardDisplayOnProgrammaticFocusProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsColorFontEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionHighlightColorWhenNotFocusedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionHighlightColorWhenNotFocusedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalTextAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalTextAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CharacterCasingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterCasingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlaceholderForegroundProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlaceholderForegroundProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanPasteClipboardContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanPasteClipboardContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanUndoProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanUndoProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanRedoProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanRedoProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ProofingMenuFlyoutProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ProofingMenuFlyoutProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DescriptionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DesiredCandidateWindowAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredCandidateWindowAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TextReadingOrderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextReadingOrderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsContentChanging(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsContentChanging()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_StartIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StartIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Length(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Length()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_StartIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StartIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Length(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Length()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_StartIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StartIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Length(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Length()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldTime(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldTime()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewTime(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewTime()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClockIdentifier(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClockIdentifier()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ClockIdentifier(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ClockIdentifier(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinuteIncrement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinuteIncrement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinuteIncrement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinuteIncrement(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Time(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Time()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Time(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Time(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedTime(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedTime()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedTime(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedTime(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TimeChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TimeChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TimeChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TimeChanged(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SelectedTimeChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectedTimeChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectedTimeChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedTimeChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ClockIdentifier(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClockIdentifier()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ClockIdentifier(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ClockIdentifier(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Time(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Time()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Time(int64_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Time(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinuteIncrement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinuteIncrement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinuteIncrement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinuteIncrement(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_TimePicked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TimePicked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_TimePicked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().TimePicked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ShowAtAsync(void* target, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>>(this->shim().ShowAtAsync(*reinterpret_cast(&target))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsDefaultShadowEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsDefaultShadowEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsDefaultShadowEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDefaultShadowEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ClockIdentifierProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClockIdentifierProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TimeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TimeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinuteIncrementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinuteIncrementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldTime(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().OldTime()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewTime(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().NewTime()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ClockIdentifierProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClockIdentifierProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinuteIncrementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinuteIncrementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TimeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TimeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LightDismissOverlayModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedTimeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedTimeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OldTime(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldTime()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_NewTime(int64_t* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewTime()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Title(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Title(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Subtitle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Subtitle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Subtitle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Subtitle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LeftHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LeftHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightHeader(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightHeader()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_RightHeader(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RightHeader(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsBackButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsBackButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsBackButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsBackButtonEnabled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackButtonEnabled()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsBackButtonEnabled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsBackButtonEnabled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneToggleButtonVisible(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneToggleButtonVisible()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsPaneToggleButtonVisible(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsPaneToggleButtonVisible(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_BackRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().BackRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_BackRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().BackRequested(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PaneToggleRequested(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PaneToggleRequested(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_PaneToggleRequested(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().PaneToggleRequested(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* owner, void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&owner), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_TitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SubtitleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SubtitleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LeftHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LeftHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RightHeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RightHeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsBackButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsBackButtonEnabledProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBackButtonEnabledProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsPaneToggleButtonVisibleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPaneToggleButtonVisibleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconElement(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IconElement(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IconElement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IconElementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IconElementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsChecked(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsChecked()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsChecked(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsChecked(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsCheckedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCheckedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsChecked(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsChecked()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsChecked(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsChecked(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_IsCheckedChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().IsCheckedChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_IsCheckedChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().IsCheckedChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsCheckedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCheckedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOn(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOn()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOn(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOn(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Header(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Header()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Header(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Header(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HeaderTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HeaderTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OnContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OnContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OnContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OnContentTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OnContentTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OnContentTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnContentTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OffContent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffContent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OffContent(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OffContent(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OffContentTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffContentTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_OffContentTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OffContentTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Toggled(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Toggled(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Toggled(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Toggled(*reinterpret_cast(&token)); + return 0; + } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnToggled() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnToggled(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnOnContentChanged(void* oldContent, void* newContent) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnOnContentChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnOffContentChanged(void* oldContent, void* newContent) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnOffContentChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnHeaderChanged(void* oldContent, void* newContent) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnHeaderChanged(*reinterpret_cast(&oldContent), *reinterpret_cast(&newContent)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_IsOnProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOnProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HeaderTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HeaderTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OnContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OnContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OnContentTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OnContentTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OffContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OffContentTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffContentTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalOffset(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalOffset(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOpen(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpen()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsOpen(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsOpen(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Placement(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Placement()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Placement(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Placement(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementTarget(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementTarget()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlacementTarget(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlacementTarget(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementRect(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().PlacementRect()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PlacementRect(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PlacementRect(*reinterpret_cast const*>(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalOffset(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalOffset(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Opened(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_PlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetPlacement(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPlacement(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetPlacement(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetPlacement(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementTargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementTargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetPlacementTarget(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetPlacementTarget(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetPlacementTarget(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetPlacementTarget(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ToolTipProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ToolTipProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetToolTip(void* element, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetToolTip(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetToolTip(void* element, void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetToolTip(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HorizontalOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsOpenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementTargetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementTargetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PlacementRectProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PlacementRectProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalOffsetProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffsetProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_RootNodes(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().RootNodes()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionMode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionMode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectionMode(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionMode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedNodes(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedNodes()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Expand(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Expand(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Collapse(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Collapse(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SelectAll() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectAll(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ItemInvoked(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ItemInvoked(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ItemInvoked(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemInvoked(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Expanding(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Expanding(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Expanding(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Expanding(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Collapsed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Collapsed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_Collapsed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().Collapsed(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall NodeFromContainer(void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().NodeFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromNode(void* node, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromNode(*reinterpret_cast(&node))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ItemFromContainer(void* container, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ItemFromContainer(*reinterpret_cast(&container))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ContainerFromItem(void* item, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ContainerFromItem(*reinterpret_cast(&item))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanDragItems(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDragItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanDragItems(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanDragItems(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanReorderItems(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanReorderItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanReorderItems(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanReorderItems(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplate(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplate()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplate(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplate(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemTemplateSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemTemplateSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyle(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyle()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainerStyle(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainerStyle(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyleSelector(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyleSelector()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainerStyleSelector(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainerStyleSelector(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerTransitions(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerTransitions()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemContainerTransitions(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemContainerTransitions(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_DragItemsStarting(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragItemsStarting(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DragItemsStarting(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DragItemsStarting(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragItemsCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragItemsCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_DragItemsCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().DragItemsCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall get_SelectedNode(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedNode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedNode(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedNode(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_SelectedItem(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectedItem(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().SelectedItems()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().SelectionChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Node(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Node()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_DropResult(uint32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DropResult()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_NewParentItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewParentItem()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Cancel(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Cancel(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Data(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Data()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Items(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Items()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Node(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Node()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Item(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Item()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GlyphOpacity(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphOpacity()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GlyphOpacity(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GlyphOpacity(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GlyphBrush(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphBrush()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GlyphBrush(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GlyphBrush(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandedGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ExpandedGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ExpandedGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CollapsedGlyph(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CollapsedGlyph()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CollapsedGlyph(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CollapsedGlyph(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GlyphSize(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphSize()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_GlyphSize(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GlyphSize(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpanded(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpanded()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsExpanded(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsExpanded(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TreeViewItemTemplateSettings(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TreeViewItemTemplateSettings()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HasUnrealizedChildren(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasUnrealizedChildren()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HasUnrealizedChildren(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HasUnrealizedChildren(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsSource(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSource()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsSource(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsSource(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_InvokedItem(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().InvokedItem()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Handled(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Handled(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_GlyphOpacityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphOpacityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GlyphBrushProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphBrushProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ExpandedGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CollapsedGlyphProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CollapsedGlyphProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_GlyphSizeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlyphSizeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpandedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpandedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TreeViewItemTemplateSettingsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TreeViewItemTemplateSettingsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_HasUnrealizedChildrenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasUnrealizedChildrenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ExpandedGlyphVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedGlyphVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CollapsedGlyphVisibility(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CollapsedGlyphVisibility()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Indentation(struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Indentation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DragItemsCount(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DragItemsCount()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ExpandedGlyphVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExpandedGlyphVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CollapsedGlyphVisibilityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CollapsedGlyphVisibilityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IndentationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IndentationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DragItemsCountProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DragItemsCountProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Parent(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Parent()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpanded(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpanded()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_IsExpanded(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().IsExpanded(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasChildren(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasChildren()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Depth(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Depth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasUnrealizedChildren(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasUnrealizedChildren()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HasUnrealizedChildren(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HasUnrealizedChildren(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Children(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Children()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DepthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DepthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsExpandedProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsExpandedProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HasChildrenProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasChildrenProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AddedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().AddedItems()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RemovedItems(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().RemovedItems()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectedItemProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_SelectionModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SelectionModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CanDragItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDragItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanReorderItemsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanReorderItemsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemTemplateSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemTemplateSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyleProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyleProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerStyleSelectorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerStyleSelectorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemContainerTransitionsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerTransitionsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsSourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsSourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Pane1(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane1()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Pane1(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Pane1(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane2(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane2()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Pane2(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Pane2(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane1Length(struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane1Length()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Pane1Length(struct struct_Microsoft_UI_Xaml_GridLength value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Pane1Length(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane2Length(struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane2Length()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Pane2Length(struct struct_Microsoft_UI_Xaml_GridLength value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Pane2Length(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PanePriority(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PanePriority()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_PanePriority(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().PanePriority(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Mode(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Mode()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_WideModeConfiguration(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WideModeConfiguration()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_WideModeConfiguration(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().WideModeConfiguration(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TallModeConfiguration(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TallModeConfiguration()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_TallModeConfiguration(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().TallModeConfiguration(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinWideModeWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWideModeWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinWideModeWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinWideModeWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinTallModeHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinTallModeHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinTallModeHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinTallModeHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_ModeChanged(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ModeChanged(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_ModeChanged(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().ModeChanged(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Pane1Property(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane1Property()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane2Property(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane2Property()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane1LengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane1LengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Pane2LengthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Pane2LengthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_PanePriorityProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PanePriorityProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_WideModeConfigurationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WideModeConfigurationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_TallModeConfigurationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TallModeConfigurationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinWideModeWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWideModeWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinTallModeHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinTallModeHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall Move(uint32_t oldIndex, uint32_t newIndex) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Move(oldIndex, newIndex); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinItemWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinItemWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinItemWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinItemWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinItemHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinItemHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinItemHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinItemHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinRowSpacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinRowSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinRowSpacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinRowSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinColumnSpacing(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinColumnSpacing()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MinColumnSpacing(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MinColumnSpacing(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsJustification(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsJustification()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsJustification(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsJustification(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsStretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsStretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemsStretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsStretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumns(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumns()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaximumRowsOrColumns(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinItemWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinItemWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinItemHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinItemHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinRowSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinRowSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MinColumnSpacingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinColumnSpacingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsJustificationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsJustificationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemsStretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemsStretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumnsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumnsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Content(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Content()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Content(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Content(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ContentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalChildrenAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalChildrenAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalChildrenAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalChildrenAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalChildrenAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalChildrenAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalChildrenAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalChildrenAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumns(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumns()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaximumRowsOrColumns(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalChildrenAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalChildrenAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalChildrenAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalChildrenAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumnsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumnsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RowSpanProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RowSpanProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetRowSpan(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRowSpan(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetRowSpan(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetRowSpan(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ColumnSpanProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColumnSpanProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetColumnSpan(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetColumnSpan(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetColumnSpan(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetColumnSpan(*reinterpret_cast(&element), value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_Child(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Child()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Child(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Child(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Stretch()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StretchDirection(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchDirection()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_StretchDirection(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().StretchDirection(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_StretchProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_StretchDirectionProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StretchDirectionProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemCount(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemCount()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetItemAt(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemAt(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RealizationRect(winrt::Windows::Foundation::Rect* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RealizationRect()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetOrCreateElementAt(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetOrCreateElementAt(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetOrCreateElementAt2(int32_t index, uint32_t options, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetOrCreateElementAt(index, *reinterpret_cast(&options))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RecycleElement(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RecycleElement(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RecommendedAnchorIndex(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RecommendedAnchorIndex()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LayoutOrigin(winrt::Windows::Foundation::Point* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayoutOrigin()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LayoutOrigin(winrt::Windows::Foundation::Point value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutOrigin(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_VisibleRect(winrt::Windows::Foundation::Rect* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VisibleRect()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall ItemCountCore(int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ItemCountCore()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetItemAtCore(int32_t index, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetItemAtCore(index)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RealizationRectCore(winrt::Windows::Foundation::Rect* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().RealizationRectCore()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetOrCreateElementAtCore(int32_t index, uint32_t options, void** result) noexcept final try + { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetOrCreateElementAtCore(index, *reinterpret_cast(&options))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RecycleElementCore(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RecycleElementCore(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_RecommendedAnchorIndexCore(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RecommendedAnchorIndexCore()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_LayoutOriginCore(winrt::Windows::Foundation::Point* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LayoutOriginCore()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_LayoutOriginCore(winrt::Windows::Foundation::Point value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutOriginCore(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + }; + template + struct produce : produce_base + { + int32_t __stdcall VisibleRectCore(winrt::Windows::Foundation::Rect* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().VisibleRectCore()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall InitializeForContextCore(void* context) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InitializeForContextCore(*reinterpret_cast(&context)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall UninitializeForContextCore(void* context) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UninitializeForContextCore(*reinterpret_cast(&context)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall MeasureOverride(void* context, winrt::Windows::Foundation::Size availableSize, winrt::Windows::Foundation::Size* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MeasureOverride(*reinterpret_cast(&context), *reinterpret_cast(&availableSize))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ArrangeOverride(void* context, winrt::Windows::Foundation::Size finalSize, winrt::Windows::Foundation::Size* result) noexcept final try + { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ArrangeOverride(*reinterpret_cast(&context), *reinterpret_cast(&finalSize))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnItemsChangedCore(void* context, void* source, void* args) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemsChangedCore(*reinterpret_cast(&context), *reinterpret_cast(&source), *reinterpret_cast(&args)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemContainerGenerator(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemContainerGenerator()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnItemsChanged(void* sender, void* args) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnItemsChanged(*reinterpret_cast(&sender), *reinterpret_cast(&args)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall OnClearChildren() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnClearChildren(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall BringIndexIntoView(int32_t index) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().BringIndexIntoView(index); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall AddInternalChild(void* child) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AddInternalChild(*reinterpret_cast(&child)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall InsertInternalChild(int32_t index, void* child) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().InsertInternalChild(index, *reinterpret_cast(&child)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall RemoveInternalChildRange(int32_t index, int32_t range) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveInternalChildRange(index, range); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AreScrollSnapPointsRegular(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreScrollSnapPointsRegular()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_AreScrollSnapPointsRegular(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().AreScrollSnapPointsRegular(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_CleanUpVirtualizedItemEvent(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CleanUpVirtualizedItemEvent(*reinterpret_cast(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CleanUpVirtualizedItemEvent(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CleanUpVirtualizedItemEvent(*reinterpret_cast(&token)); + return 0; + } + }; +#endif + template + struct produce : produce_base + { + int32_t __stdcall OnCleanUpVirtualizedItem(void* e) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().OnCleanUpVirtualizedItem(*reinterpret_cast(&e)); + return 0; + } + catch (...) { return to_hresult(); } + }; +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_AreScrollSnapPointsRegularProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreScrollSnapPointsRegularProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VirtualizationModeProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VirtualizationModeProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetVirtualizationMode(void* element, int32_t* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetVirtualizationMode(*reinterpret_cast(&element))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall SetVirtualizationMode(void* element, int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().SetVirtualizationMode(*reinterpret_cast(&element), *reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_IsVirtualizingProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsVirtualizingProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GetIsVirtualizing(void* o, bool* result) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsVirtualizing(*reinterpret_cast(&o))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_CoreWebView2(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CoreWebView2()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall EnsureCoreWebView2Async(void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from(this->shim().EnsureCoreWebView2Async()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall ExecuteScriptAsync(void* javascriptCode, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>(this->shim().ExecuteScriptAsync(*reinterpret_cast(&javascriptCode))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Source(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Source(void* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Source(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoForward(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoForward()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanGoForward(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanGoForward(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoBack(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoBack()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_CanGoBack(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().CanGoBack(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultBackgroundColor(struct struct_Windows_UI_Color* value) noexcept final try + { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultBackgroundColor()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_DefaultBackgroundColor(struct struct_Windows_UI_Color value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultBackgroundColor(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Reload() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Reload(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GoForward() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GoForward(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall GoBack() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().GoBack(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall NavigateToString(void* htmlContent) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigateToString(*reinterpret_cast(&htmlContent)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall Close() noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Close(); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall add_NavigationCompleted(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().NavigationCompleted(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_NavigationCompleted(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigationCompleted(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_WebMessageReceived(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().WebMessageReceived(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_WebMessageReceived(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().WebMessageReceived(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_NavigationStarting(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().NavigationStarting(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_NavigationStarting(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().NavigationStarting(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CoreProcessFailed(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CoreProcessFailed(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CoreProcessFailed(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CoreProcessFailed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CoreWebView2Initialized(void* handler, winrt::event_token* token) noexcept final try + { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CoreWebView2Initialized(*reinterpret_cast const*>(&handler))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall remove_CoreWebView2Initialized(winrt::event_token token) noexcept final + { + typename D::abi_guard guard(this->shim()); + this->shim().CoreWebView2Initialized(*reinterpret_cast(&token)); + return 0; + } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall EnsureCoreWebView2WithEnvironmentAsync(void* environment, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from(this->shim().EnsureCoreWebView2Async(*reinterpret_cast(&environment))); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall EnsureCoreWebView2WithEnvironmentAndOptionsAsync(void* environment, void* controllerOptions, void** operation) noexcept final try + { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from(this->shim().EnsureCoreWebView2Async(*reinterpret_cast(&environment), *reinterpret_cast(&controllerOptions))); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try + { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_SourceProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SourceProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoForwardProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoForwardProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_CanGoBackProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanGoBackProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_DefaultBackgroundColorProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DefaultBackgroundColorProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemWidth(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidth()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemWidth(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemWidth(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemHeight(double* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeight()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_ItemHeight(double value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().ItemHeight(value); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_Orientation(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Orientation()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_Orientation(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().Orientation(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalChildrenAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalChildrenAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_HorizontalChildrenAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalChildrenAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalChildrenAlignment(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalChildrenAlignment()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_VerticalChildrenAlignment(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalChildrenAlignment(*reinterpret_cast(&value)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumns(int32_t* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumns()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_MaximumRowsOrColumns(int32_t value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().MaximumRowsOrColumns(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_ItemWidthProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemWidthProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_ItemHeightProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ItemHeightProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_OrientationProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OrientationProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_HorizontalChildrenAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalChildrenAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_VerticalChildrenAlignmentProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalChildrenAlignmentProperty()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_MaximumRowsOrColumnsProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaximumRowsOrColumnsProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall get_UseCompactResources(bool* value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UseCompactResources()); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall put_UseCompactResources(bool value) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().UseCompactResources(value); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +#ifndef WINRT_LEAN_AND_MEAN + template + struct produce : produce_base + { + int32_t __stdcall EnsureRevealLights(void* element) noexcept final try + { + typename D::abi_guard guard(this->shim()); + this->shim().EnsureRevealLights(*reinterpret_cast(&element)); + return 0; + } + catch (...) { return to_hresult(); } + int32_t __stdcall get_UseCompactResourcesProperty(void** value) noexcept final try + { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UseCompactResourcesProperty()); + return 0; + } + catch (...) { return to_hresult(); } + }; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnClosed(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnClosed(e); + } + + return this->shim().OnClosed(e); + } + auto OnOpened(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnOpened(e); + } + + return this->shim().OnOpened(e); + } + auto OnClosing(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnClosing(e); + } + + return this->shim().OnClosing(e); + } + auto OnOpening(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnOpening(e); + } + + return this->shim().OnOpening(e); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnDropDownClosed(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDropDownClosed(e); + } + + return this->shim().OnDropDownClosed(e); + } + auto OnDropDownOpened(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDropDownOpened(e); + } + + return this->shim().OnDropDownOpened(e); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnContentChanged(oldContent, newContent); + } + + return this->shim().OnContentChanged(oldContent, newContent); + } + auto OnContentTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldContentTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newContentTemplate) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnContentTemplateChanged(oldContentTemplate, newContentTemplate); + } + + return this->shim().OnContentTemplateChanged(oldContentTemplate, newContentTemplate); + } + auto OnContentTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldContentTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newContentTemplateSelector) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector); + } + + return this->shim().OnContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnContentTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldContentTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newContentTemplate) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnContentTemplateChanged(oldContentTemplate, newContentTemplate); + } + + return this->shim().OnContentTemplateChanged(oldContentTemplate, newContentTemplate); + } + auto OnContentTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldContentTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newContentTemplateSelector) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector); + } + + return this->shim().OnContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnPointerEntered(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerEntered(e); + } + + return this->shim().OnPointerEntered(e); + } + auto OnPointerPressed(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerPressed(e); + } + + return this->shim().OnPointerPressed(e); + } + auto OnPointerMoved(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerMoved(e); + } + + return this->shim().OnPointerMoved(e); + } + auto OnPointerReleased(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerReleased(e); + } + + return this->shim().OnPointerReleased(e); + } + auto OnPointerExited(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerExited(e); + } + + return this->shim().OnPointerExited(e); + } + auto OnPointerCaptureLost(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerCaptureLost(e); + } + + return this->shim().OnPointerCaptureLost(e); + } + auto OnPointerCanceled(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerCanceled(e); + } + + return this->shim().OnPointerCanceled(e); + } + auto OnPointerWheelChanged(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPointerWheelChanged(e); + } + + return this->shim().OnPointerWheelChanged(e); + } + auto OnTapped(winrt::Microsoft::UI::Xaml::Input::TappedRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnTapped(e); + } + + return this->shim().OnTapped(e); + } + auto OnDoubleTapped(winrt::Microsoft::UI::Xaml::Input::DoubleTappedRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDoubleTapped(e); + } + + return this->shim().OnDoubleTapped(e); + } + auto OnHolding(winrt::Microsoft::UI::Xaml::Input::HoldingRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnHolding(e); + } + + return this->shim().OnHolding(e); + } + auto OnRightTapped(winrt::Microsoft::UI::Xaml::Input::RightTappedRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnRightTapped(e); + } + + return this->shim().OnRightTapped(e); + } + auto OnManipulationStarting(winrt::Microsoft::UI::Xaml::Input::ManipulationStartingRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnManipulationStarting(e); + } + + return this->shim().OnManipulationStarting(e); + } + auto OnManipulationInertiaStarting(winrt::Microsoft::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnManipulationInertiaStarting(e); + } + + return this->shim().OnManipulationInertiaStarting(e); + } + auto OnManipulationStarted(winrt::Microsoft::UI::Xaml::Input::ManipulationStartedRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnManipulationStarted(e); + } + + return this->shim().OnManipulationStarted(e); + } + auto OnManipulationDelta(winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnManipulationDelta(e); + } + + return this->shim().OnManipulationDelta(e); + } + auto OnManipulationCompleted(winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnManipulationCompleted(e); + } + + return this->shim().OnManipulationCompleted(e); + } + auto OnKeyUp(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnKeyUp(e); + } + + return this->shim().OnKeyUp(e); + } + auto OnKeyDown(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnKeyDown(e); + } + + return this->shim().OnKeyDown(e); + } + auto OnPreviewKeyDown(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPreviewKeyDown(e); + } + + return this->shim().OnPreviewKeyDown(e); + } + auto OnPreviewKeyUp(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnPreviewKeyUp(e); + } + + return this->shim().OnPreviewKeyUp(e); + } + auto OnGotFocus(winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnGotFocus(e); + } + + return this->shim().OnGotFocus(e); + } + auto OnLostFocus(winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnLostFocus(e); + } + + return this->shim().OnLostFocus(e); + } + auto OnCharacterReceived(winrt::Microsoft::UI::Xaml::Input::CharacterReceivedRoutedEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnCharacterReceived(e); + } + + return this->shim().OnCharacterReceived(e); + } + auto OnDragEnter(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDragEnter(e); + } + + return this->shim().OnDragEnter(e); + } + auto OnDragLeave(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDragLeave(e); + } + + return this->shim().OnDragLeave(e); + } + auto OnDragOver(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDragOver(e); + } + + return this->shim().OnDragOver(e); + } + auto OnDrop(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnDrop(e); + } + + return this->shim().OnDrop(e); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto SelectTemplateCore(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.SelectTemplateCore(item, container); + } + + return this->shim().SelectTemplateCore(item, container); + } + auto SelectTemplateCore(winrt::Windows::Foundation::IInspectable const& item) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.SelectTemplateCore(item); + } + + return this->shim().SelectTemplateCore(item); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto SelectGroupStyleCore(winrt::Windows::Foundation::IInspectable const& group, uint32_t level) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.SelectGroupStyleCore(group, level); + } + + return this->shim().SelectGroupStyleCore(group, level); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto CreateIconElementCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.CreateIconElementCore(); + } + + return this->shim().CreateIconElementCore(); + } + auto GetIconElementPropertyCore(winrt::Microsoft::UI::Xaml::DependencyProperty const& iconSourceProperty) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.GetIconElementPropertyCore(iconSourceProperty); + } + + return this->shim().GetIconElementPropertyCore(iconSourceProperty); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto ShouldAnimateCore(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition const& transition) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.ShouldAnimateCore(transition); + } + + return this->shim().ShouldAnimateCore(transition); + } + auto StartTransitions(winrt::Windows::Foundation::Collections::IVector const& transitions) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.StartTransitions(transitions); + } + + return this->shim().StartTransitions(transitions); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto IsItemItsOwnContainerOverride(winrt::Windows::Foundation::IInspectable const& item) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.IsItemItsOwnContainerOverride(item); + } + + return this->shim().IsItemItsOwnContainerOverride(item); + } + auto GetContainerForItemOverride() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.GetContainerForItemOverride(); + } + + return this->shim().GetContainerForItemOverride(); + } + auto ClearContainerForItemOverride(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& item) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.ClearContainerForItemOverride(element, item); + } + + return this->shim().ClearContainerForItemOverride(element, item); + } + auto PrepareContainerForItemOverride(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& item) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.PrepareContainerForItemOverride(element, item); + } + + return this->shim().PrepareContainerForItemOverride(element, item); + } + auto OnItemsChanged(winrt::Windows::Foundation::IInspectable const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemsChanged(e); + } + + return this->shim().OnItemsChanged(e); + } + auto OnItemContainerStyleChanged(winrt::Microsoft::UI::Xaml::Style const& oldItemContainerStyle, winrt::Microsoft::UI::Xaml::Style const& newItemContainerStyle) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemContainerStyleChanged(oldItemContainerStyle, newItemContainerStyle); + } + + return this->shim().OnItemContainerStyleChanged(oldItemContainerStyle, newItemContainerStyle); + } + auto OnItemContainerStyleSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& oldItemContainerStyleSelector, winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& newItemContainerStyleSelector) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemContainerStyleSelectorChanged(oldItemContainerStyleSelector, newItemContainerStyleSelector); + } + + return this->shim().OnItemContainerStyleSelectorChanged(oldItemContainerStyleSelector, newItemContainerStyleSelector); + } + auto OnItemTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldItemTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newItemTemplate) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemTemplateChanged(oldItemTemplate, newItemTemplate); + } + + return this->shim().OnItemTemplateChanged(oldItemTemplate, newItemTemplate); + } + auto OnItemTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldItemTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newItemTemplateSelector) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemTemplateSelectorChanged(oldItemTemplateSelector, newItemTemplateSelector); + } + + return this->shim().OnItemTemplateSelectorChanged(oldItemTemplateSelector, newItemTemplateSelector); + } + auto OnGroupStyleSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& oldGroupStyleSelector, winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& newGroupStyleSelector) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnGroupStyleSelectorChanged(oldGroupStyleSelector, newGroupStyleSelector); + } + + return this->shim().OnGroupStyleSelectorChanged(oldGroupStyleSelector, newGroupStyleSelector); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto CreateDefaultItemTransitionProvider() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.CreateDefaultItemTransitionProvider(); + } + + return this->shim().CreateDefaultItemTransitionProvider(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto LayoutStateCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.LayoutStateCore(); + } + + return this->shim().LayoutStateCore(); + } + auto LayoutStateCore(winrt::Windows::Foundation::IInspectable const& value) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.LayoutStateCore(value); + } + + return this->shim().LayoutStateCore(value); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto InitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.InitializeForContextCore(context); + } + + return this->shim().InitializeForContextCore(context); + } + auto UninitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.UninitializeForContextCore(context); + } + + return this->shim().UninitializeForContextCore(context); + } + auto MeasureOverride(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.MeasureOverride(context, availableSize); + } + + return this->shim().MeasureOverride(context, availableSize); + } + auto ArrangeOverride(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.ArrangeOverride(context, finalSize); + } + + return this->shim().ArrangeOverride(context, finalSize); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto ChildrenCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.ChildrenCore(); + } + + return this->shim().ChildrenCore(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnNavigatedFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnNavigatedFrom(e); + } + + return this->shim().OnNavigatedFrom(e); + } + auto OnNavigatedTo(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnNavigatedTo(e); + } + + return this->shim().OnNavigatedTo(e); + } + auto OnNavigatingFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnNavigatingFrom(e); + } + + return this->shim().OnNavigatingFrom(e); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto SelectStyleCore(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.SelectStyleCore(item, container); + } + + return this->shim().SelectStyleCore(item, container); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnToggled() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnToggled(); + } + + return this->shim().OnToggled(); + } + auto OnOnContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnOnContentChanged(oldContent, newContent); + } + + return this->shim().OnOnContentChanged(oldContent, newContent); + } + auto OnOffContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnOffContentChanged(oldContent, newContent); + } + + return this->shim().OnOffContentChanged(oldContent, newContent); + } + auto OnHeaderChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnHeaderChanged(oldContent, newContent); + } + + return this->shim().OnHeaderChanged(oldContent, newContent); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto InitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.InitializeForContextCore(context); + } + + return this->shim().InitializeForContextCore(context); + } + auto UninitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.UninitializeForContextCore(context); + } + + return this->shim().UninitializeForContextCore(context); + } + auto MeasureOverride(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.MeasureOverride(context, availableSize); + } + + return this->shim().MeasureOverride(context, availableSize); + } + auto ArrangeOverride(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.ArrangeOverride(context, finalSize); + } + + return this->shim().ArrangeOverride(context, finalSize); + } + auto OnItemsChangedCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::IInspectable const& source, winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventArgs const& args) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemsChangedCore(context, source, args); + } + + return this->shim().OnItemsChangedCore(context, source, args); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto ItemCountCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.ItemCountCore(); + } + + return this->shim().ItemCountCore(); + } + auto GetItemAtCore(int32_t index) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.GetItemAtCore(index); + } + + return this->shim().GetItemAtCore(index); + } + auto RealizationRectCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.RealizationRectCore(); + } + + return this->shim().RealizationRectCore(); + } + auto GetOrCreateElementAtCore(int32_t index, winrt::Microsoft::UI::Xaml::Controls::ElementRealizationOptions const& options) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.GetOrCreateElementAtCore(index, options); + } + + return this->shim().GetOrCreateElementAtCore(index, options); + } + auto RecycleElementCore(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.RecycleElementCore(element); + } + + return this->shim().RecycleElementCore(element); + } + auto RecommendedAnchorIndexCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.RecommendedAnchorIndexCore(); + } + + return this->shim().RecommendedAnchorIndexCore(); + } + auto LayoutOriginCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.LayoutOriginCore(); + } + + return this->shim().LayoutOriginCore(); + } + auto LayoutOriginCore(winrt::Windows::Foundation::Point const& value) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.LayoutOriginCore(value); + } + + return this->shim().LayoutOriginCore(value); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto VisibleRectCore() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.VisibleRectCore(); + } + + return this->shim().VisibleRectCore(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnItemsChanged(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs const& args) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnItemsChanged(sender, args); + } + + return this->shim().OnItemsChanged(sender, args); + } + auto OnClearChildren() + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnClearChildren(); + } + + return this->shim().OnClearChildren(); + } + auto BringIndexIntoView(int32_t index) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.BringIndexIntoView(index); + } + + return this->shim().BringIndexIntoView(index); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base +{ + auto OnCleanUpVirtualizedItem(winrt::Microsoft::UI::Xaml::Controls::CleanUpVirtualizedItemEventArgs const& e) + { + if (auto overridable = this->shim_overridable()) + { + return overridable.OnCleanUpVirtualizedItem(e); + } + + return this->shim().OnCleanUpVirtualizedItem(e); + } +}; +} +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Controls +{ + constexpr auto operator|(DisabledFormattingAccelerators const left, DisabledFormattingAccelerators const right) noexcept + { + return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=(DisabledFormattingAccelerators& left, DisabledFormattingAccelerators const right) noexcept + { + left = left | right; + return left; + } + constexpr auto operator&(DisabledFormattingAccelerators const left, DisabledFormattingAccelerators const right) noexcept + { + return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=(DisabledFormattingAccelerators& left, DisabledFormattingAccelerators const right) noexcept + { + left = left & right; + return left; + } + constexpr auto operator~(DisabledFormattingAccelerators const value) noexcept + { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(DisabledFormattingAccelerators const left, DisabledFormattingAccelerators const right) noexcept + { + return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=(DisabledFormattingAccelerators& left, DisabledFormattingAccelerators const right) noexcept + { + left = left ^ right; + return left; + } + constexpr auto operator|(ElementRealizationOptions const left, ElementRealizationOptions const right) noexcept + { + return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=(ElementRealizationOptions& left, ElementRealizationOptions const right) noexcept + { + left = left | right; + return left; + } + constexpr auto operator&(ElementRealizationOptions const left, ElementRealizationOptions const right) noexcept + { + return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=(ElementRealizationOptions& left, ElementRealizationOptions const right) noexcept + { + left = left & right; + return left; + } + constexpr auto operator~(ElementRealizationOptions const value) noexcept + { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(ElementRealizationOptions const left, ElementRealizationOptions const right) noexcept + { + return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=(ElementRealizationOptions& left, ElementRealizationOptions const right) noexcept + { + left = left ^ right; + return left; + } + constexpr auto operator|(ItemCollectionTransitionTriggers const left, ItemCollectionTransitionTriggers const right) noexcept + { + return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=(ItemCollectionTransitionTriggers& left, ItemCollectionTransitionTriggers const right) noexcept + { + left = left | right; + return left; + } + constexpr auto operator&(ItemCollectionTransitionTriggers const left, ItemCollectionTransitionTriggers const right) noexcept + { + return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=(ItemCollectionTransitionTriggers& left, ItemCollectionTransitionTriggers const right) noexcept + { + left = left & right; + return left; + } + constexpr auto operator~(ItemCollectionTransitionTriggers const value) noexcept + { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(ItemCollectionTransitionTriggers const left, ItemCollectionTransitionTriggers const right) noexcept + { + return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=(ItemCollectionTransitionTriggers& left, ItemCollectionTransitionTriggers const right) noexcept + { + left = left ^ right; + return left; + } + constexpr auto operator|(ScrollingInputKinds const left, ScrollingInputKinds const right) noexcept + { + return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=(ScrollingInputKinds& left, ScrollingInputKinds const right) noexcept + { + left = left | right; + return left; + } + constexpr auto operator&(ScrollingInputKinds const left, ScrollingInputKinds const right) noexcept + { + return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=(ScrollingInputKinds& left, ScrollingInputKinds const right) noexcept + { + left = left & right; + return left; + } + constexpr auto operator~(ScrollingInputKinds const value) noexcept + { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(ScrollingInputKinds const left, ScrollingInputKinds const right) noexcept + { + return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=(ScrollingInputKinds& left, ScrollingInputKinds const right) noexcept + { + left = left ^ right; + return left; + } + inline AnimatedIcon::AnimatedIcon() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAnimatedIconFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AnimatedIcon::StateProperty() + { + return impl::call_factory_cast([](IAnimatedIconStatics const& f) { return f.StateProperty(); }); + } + inline auto AnimatedIcon::SetState(winrt::Microsoft::UI::Xaml::DependencyObject const& object, param::hstring const& value) + { + impl::call_factory([&](IAnimatedIconStatics const& f) { return f.SetState(object, value); }); + } + inline auto AnimatedIcon::GetState(winrt::Microsoft::UI::Xaml::DependencyObject const& object) + { + return impl::call_factory([&](IAnimatedIconStatics const& f) { return f.GetState(object); }); + } + inline auto AnimatedIcon::SourceProperty() + { + return impl::call_factory_cast([](IAnimatedIconStatics const& f) { return f.SourceProperty(); }); + } + inline auto AnimatedIcon::FallbackIconSourceProperty() + { + return impl::call_factory_cast([](IAnimatedIconStatics const& f) { return f.FallbackIconSourceProperty(); }); + } + inline auto AnimatedIcon::MirroredWhenRightToLeftProperty() + { + return impl::call_factory_cast([](IAnimatedIconStatics const& f) { return f.MirroredWhenRightToLeftProperty(); }); + } + inline AnimatedIconSource::AnimatedIconSource() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAnimatedIconSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AnimatedIconSource::SourceProperty() + { + return impl::call_factory_cast([](IAnimatedIconSourceStatics const& f) { return f.SourceProperty(); }); + } + inline auto AnimatedIconSource::FallbackIconSourceProperty() + { + return impl::call_factory_cast([](IAnimatedIconSourceStatics const& f) { return f.FallbackIconSourceProperty(); }); + } + inline auto AnimatedIconSource::MirroredWhenRightToLeftProperty() + { + return impl::call_factory_cast([](IAnimatedIconSourceStatics const& f) { return f.MirroredWhenRightToLeftProperty(); }); + } + inline AnimatedVisualPlayer::AnimatedVisualPlayer() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAnimatedVisualPlayerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AnimatedVisualPlayer::AutoPlayProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.AutoPlayProperty(); }); + } + inline auto AnimatedVisualPlayer::DiagnosticsProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.DiagnosticsProperty(); }); + } + inline auto AnimatedVisualPlayer::DurationProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.DurationProperty(); }); + } + inline auto AnimatedVisualPlayer::FallbackContentProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.FallbackContentProperty(); }); + } + inline auto AnimatedVisualPlayer::IsAnimatedVisualLoadedProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.IsAnimatedVisualLoadedProperty(); }); + } + inline auto AnimatedVisualPlayer::IsPlayingProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.IsPlayingProperty(); }); + } + inline auto AnimatedVisualPlayer::PlaybackRateProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.PlaybackRateProperty(); }); + } + inline auto AnimatedVisualPlayer::SourceProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.SourceProperty(); }); + } + inline auto AnimatedVisualPlayer::StretchProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics const& f) { return f.StretchProperty(); }); + } + inline auto AnimatedVisualPlayer::AnimationOptimizationProperty() + { + return impl::call_factory_cast([](IAnimatedVisualPlayerStatics2 const& f) { return f.AnimationOptimizationProperty(); }); + } + inline AnnotatedScrollBar::AnnotatedScrollBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAnnotatedScrollBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AnnotatedScrollBar::LabelsProperty() + { + return impl::call_factory_cast([](IAnnotatedScrollBarStatics const& f) { return f.LabelsProperty(); }); + } + inline auto AnnotatedScrollBar::LabelTemplateProperty() + { + return impl::call_factory_cast([](IAnnotatedScrollBarStatics const& f) { return f.LabelTemplateProperty(); }); + } + inline auto AnnotatedScrollBar::DetailLabelTemplateProperty() + { + return impl::call_factory_cast([](IAnnotatedScrollBarStatics const& f) { return f.DetailLabelTemplateProperty(); }); + } + inline auto AnnotatedScrollBar::SmallChangeProperty() + { + return impl::call_factory_cast([](IAnnotatedScrollBarStatics const& f) { return f.SmallChangeProperty(); }); + } + inline AnnotatedScrollBarLabel::AnnotatedScrollBarLabel(winrt::Windows::Foundation::IInspectable const& content, double scrollOffset) : + AnnotatedScrollBarLabel(impl::call_factory([&](IAnnotatedScrollBarLabelFactory const& f) { return f.CreateInstance(content, scrollOffset); })) + { + } + inline AppBar::AppBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAppBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AppBar::IsOpenProperty() + { + return impl::call_factory_cast([](IAppBarStatics const& f) { return f.IsOpenProperty(); }); + } + inline auto AppBar::IsStickyProperty() + { + return impl::call_factory_cast([](IAppBarStatics const& f) { return f.IsStickyProperty(); }); + } + inline auto AppBar::ClosedDisplayModeProperty() + { + return impl::call_factory_cast([](IAppBarStatics const& f) { return f.ClosedDisplayModeProperty(); }); + } + inline auto AppBar::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](IAppBarStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline AppBarButton::AppBarButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAppBarButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AppBarButton::LabelProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.LabelProperty(); }); + } + inline auto AppBarButton::IconProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.IconProperty(); }); + } + inline auto AppBarButton::LabelPositionProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.LabelPositionProperty(); }); + } + inline auto AppBarButton::KeyboardAcceleratorTextOverrideProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.KeyboardAcceleratorTextOverrideProperty(); }); + } + inline auto AppBarButton::IsCompactProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.IsCompactProperty(); }); + } + inline auto AppBarButton::IsInOverflowProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.IsInOverflowProperty(); }); + } + inline auto AppBarButton::DynamicOverflowOrderProperty() + { + return impl::call_factory_cast([](IAppBarButtonStatics const& f) { return f.DynamicOverflowOrderProperty(); }); + } + inline AppBarElementContainer::AppBarElementContainer() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAppBarElementContainerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AppBarElementContainer::IsCompactProperty() + { + return impl::call_factory_cast([](IAppBarElementContainerStatics const& f) { return f.IsCompactProperty(); }); + } + inline auto AppBarElementContainer::IsInOverflowProperty() + { + return impl::call_factory_cast([](IAppBarElementContainerStatics const& f) { return f.IsInOverflowProperty(); }); + } + inline auto AppBarElementContainer::DynamicOverflowOrderProperty() + { + return impl::call_factory_cast([](IAppBarElementContainerStatics const& f) { return f.DynamicOverflowOrderProperty(); }); + } + inline AppBarSeparator::AppBarSeparator() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAppBarSeparatorFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AppBarSeparator::IsCompactProperty() + { + return impl::call_factory_cast([](IAppBarSeparatorStatics const& f) { return f.IsCompactProperty(); }); + } + inline auto AppBarSeparator::IsInOverflowProperty() + { + return impl::call_factory_cast([](IAppBarSeparatorStatics const& f) { return f.IsInOverflowProperty(); }); + } + inline auto AppBarSeparator::DynamicOverflowOrderProperty() + { + return impl::call_factory_cast([](IAppBarSeparatorStatics const& f) { return f.DynamicOverflowOrderProperty(); }); + } + inline AppBarToggleButton::AppBarToggleButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IAppBarToggleButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto AppBarToggleButton::LabelProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.LabelProperty(); }); + } + inline auto AppBarToggleButton::IconProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.IconProperty(); }); + } + inline auto AppBarToggleButton::LabelPositionProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.LabelPositionProperty(); }); + } + inline auto AppBarToggleButton::KeyboardAcceleratorTextOverrideProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.KeyboardAcceleratorTextOverrideProperty(); }); + } + inline auto AppBarToggleButton::IsCompactProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.IsCompactProperty(); }); + } + inline auto AppBarToggleButton::IsInOverflowProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.IsInOverflowProperty(); }); + } + inline auto AppBarToggleButton::DynamicOverflowOrderProperty() + { + return impl::call_factory_cast([](IAppBarToggleButtonStatics const& f) { return f.DynamicOverflowOrderProperty(); }); + } + inline AutoSuggestBox::AutoSuggestBox() : + AutoSuggestBox(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto AutoSuggestBox::MaxSuggestionListHeightProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.MaxSuggestionListHeightProperty(); }); + } + inline auto AutoSuggestBox::IsSuggestionListOpenProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.IsSuggestionListOpenProperty(); }); + } + inline auto AutoSuggestBox::TextMemberPathProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.TextMemberPathProperty(); }); + } + inline auto AutoSuggestBox::TextProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.TextProperty(); }); + } + inline auto AutoSuggestBox::UpdateTextOnSelectProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.UpdateTextOnSelectProperty(); }); + } + inline auto AutoSuggestBox::PlaceholderTextProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto AutoSuggestBox::HeaderProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.HeaderProperty(); }); + } + inline auto AutoSuggestBox::AutoMaximizeSuggestionAreaProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.AutoMaximizeSuggestionAreaProperty(); }); + } + inline auto AutoSuggestBox::TextBoxStyleProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.TextBoxStyleProperty(); }); + } + inline auto AutoSuggestBox::QueryIconProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.QueryIconProperty(); }); + } + inline auto AutoSuggestBox::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline auto AutoSuggestBox::DescriptionProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxStatics const& f) { return f.DescriptionProperty(); }); + } + inline AutoSuggestBoxQuerySubmittedEventArgs::AutoSuggestBoxQuerySubmittedEventArgs() : + AutoSuggestBoxQuerySubmittedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline AutoSuggestBoxSuggestionChosenEventArgs::AutoSuggestBoxSuggestionChosenEventArgs() : + AutoSuggestBoxSuggestionChosenEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline AutoSuggestBoxTextChangedEventArgs::AutoSuggestBoxTextChangedEventArgs() : + AutoSuggestBoxTextChangedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto AutoSuggestBoxTextChangedEventArgs::ReasonProperty() + { + return impl::call_factory_cast([](IAutoSuggestBoxTextChangedEventArgsStatics const& f) { return f.ReasonProperty(); }); + } + inline BitmapIcon::BitmapIcon() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IBitmapIconFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto BitmapIcon::UriSourceProperty() + { + return impl::call_factory_cast([](IBitmapIconStatics const& f) { return f.UriSourceProperty(); }); + } + inline auto BitmapIcon::ShowAsMonochromeProperty() + { + return impl::call_factory_cast([](IBitmapIconStatics const& f) { return f.ShowAsMonochromeProperty(); }); + } + inline BitmapIconSource::BitmapIconSource() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IBitmapIconSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto BitmapIconSource::UriSourceProperty() + { + return impl::call_factory_cast([](IBitmapIconSourceStatics const& f) { return f.UriSourceProperty(); }); + } + inline auto BitmapIconSource::ShowAsMonochromeProperty() + { + return impl::call_factory_cast([](IBitmapIconSourceStatics const& f) { return f.ShowAsMonochromeProperty(); }); + } + inline Border::Border() : + Border(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto Border::BorderBrushProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.BorderBrushProperty(); }); + } + inline auto Border::BorderThicknessProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.BorderThicknessProperty(); }); + } + inline auto Border::BackgroundProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.BackgroundProperty(); }); + } + inline auto Border::BackgroundSizingProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.BackgroundSizingProperty(); }); + } + inline auto Border::CornerRadiusProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.CornerRadiusProperty(); }); + } + inline auto Border::PaddingProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.PaddingProperty(); }); + } + inline auto Border::ChildTransitionsProperty() + { + return impl::call_factory_cast([](IBorderStatics const& f) { return f.ChildTransitionsProperty(); }); + } + inline BreadcrumbBar::BreadcrumbBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IBreadcrumbBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto BreadcrumbBar::ItemsSourceProperty() + { + return impl::call_factory_cast([](IBreadcrumbBarStatics const& f) { return f.ItemsSourceProperty(); }); + } + inline auto BreadcrumbBar::ItemTemplateProperty() + { + return impl::call_factory_cast([](IBreadcrumbBarStatics const& f) { return f.ItemTemplateProperty(); }); + } + inline BreadcrumbBarItem::BreadcrumbBarItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IBreadcrumbBarItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline Button::Button() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Button::FlyoutProperty() + { + return impl::call_factory_cast([](IButtonStatics const& f) { return f.FlyoutProperty(); }); + } + inline CalendarDatePicker::CalendarDatePicker() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICalendarDatePickerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto CalendarDatePicker::DateProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.DateProperty(); }); + } + inline auto CalendarDatePicker::IsCalendarOpenProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.IsCalendarOpenProperty(); }); + } + inline auto CalendarDatePicker::DateFormatProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.DateFormatProperty(); }); + } + inline auto CalendarDatePicker::PlaceholderTextProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto CalendarDatePicker::HeaderProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.HeaderProperty(); }); + } + inline auto CalendarDatePicker::HeaderTemplateProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto CalendarDatePicker::CalendarViewStyleProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.CalendarViewStyleProperty(); }); + } + inline auto CalendarDatePicker::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline auto CalendarDatePicker::DescriptionProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.DescriptionProperty(); }); + } + inline auto CalendarDatePicker::MinDateProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.MinDateProperty(); }); + } + inline auto CalendarDatePicker::MaxDateProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.MaxDateProperty(); }); + } + inline auto CalendarDatePicker::IsTodayHighlightedProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.IsTodayHighlightedProperty(); }); + } + inline auto CalendarDatePicker::DisplayModeProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.DisplayModeProperty(); }); + } + inline auto CalendarDatePicker::FirstDayOfWeekProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.FirstDayOfWeekProperty(); }); + } + inline auto CalendarDatePicker::DayOfWeekFormatProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.DayOfWeekFormatProperty(); }); + } + inline auto CalendarDatePicker::CalendarIdentifierProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.CalendarIdentifierProperty(); }); + } + inline auto CalendarDatePicker::IsOutOfScopeEnabledProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.IsOutOfScopeEnabledProperty(); }); + } + inline auto CalendarDatePicker::IsGroupLabelVisibleProperty() + { + return impl::call_factory_cast([](ICalendarDatePickerStatics const& f) { return f.IsGroupLabelVisibleProperty(); }); + } + inline CalendarView::CalendarView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICalendarViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto CalendarView::CalendarIdentifierProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarIdentifierProperty(); }); + } + inline auto CalendarView::DayOfWeekFormatProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DayOfWeekFormatProperty(); }); + } + inline auto CalendarView::IsGroupLabelVisibleProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.IsGroupLabelVisibleProperty(); }); + } + inline auto CalendarView::DisplayModeProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DisplayModeProperty(); }); + } + inline auto CalendarView::FirstDayOfWeekProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstDayOfWeekProperty(); }); + } + inline auto CalendarView::IsOutOfScopeEnabledProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.IsOutOfScopeEnabledProperty(); }); + } + inline auto CalendarView::IsTodayHighlightedProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.IsTodayHighlightedProperty(); }); + } + inline auto CalendarView::MaxDateProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MaxDateProperty(); }); + } + inline auto CalendarView::MinDateProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MinDateProperty(); }); + } + inline auto CalendarView::NumberOfWeeksInViewProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.NumberOfWeeksInViewProperty(); }); + } + inline auto CalendarView::SelectedDatesProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedDatesProperty(); }); + } + inline auto CalendarView::SelectionModeProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectionModeProperty(); }); + } + inline auto CalendarView::TemplateSettingsProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TemplateSettingsProperty(); }); + } + inline auto CalendarView::FocusBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FocusBorderBrushProperty(); }); + } + inline auto CalendarView::SelectedHoverBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedHoverBorderBrushProperty(); }); + } + inline auto CalendarView::SelectedPressedBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedPressedBorderBrushProperty(); }); + } + inline auto CalendarView::SelectedDisabledBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedDisabledBorderBrushProperty(); }); + } + inline auto CalendarView::SelectedBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedBorderBrushProperty(); }); + } + inline auto CalendarView::HoverBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.HoverBorderBrushProperty(); }); + } + inline auto CalendarView::PressedBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.PressedBorderBrushProperty(); }); + } + inline auto CalendarView::TodaySelectedInnerBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodaySelectedInnerBorderBrushProperty(); }); + } + inline auto CalendarView::BlackoutStrikethroughBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.BlackoutStrikethroughBrushProperty(); }); + } + inline auto CalendarView::CalendarItemBorderBrushProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemBorderBrushProperty(); }); + } + inline auto CalendarView::BlackoutBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.BlackoutBackgroundProperty(); }); + } + inline auto CalendarView::OutOfScopeBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.OutOfScopeBackgroundProperty(); }); + } + inline auto CalendarView::CalendarItemBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemBackgroundProperty(); }); + } + inline auto CalendarView::CalendarItemHoverBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemHoverBackgroundProperty(); }); + } + inline auto CalendarView::CalendarItemPressedBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemPressedBackgroundProperty(); }); + } + inline auto CalendarView::CalendarItemDisabledBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemDisabledBackgroundProperty(); }); + } + inline auto CalendarView::TodayBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayBackgroundProperty(); }); + } + inline auto CalendarView::TodayBlackoutBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayBlackoutBackgroundProperty(); }); + } + inline auto CalendarView::TodayHoverBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayHoverBackgroundProperty(); }); + } + inline auto CalendarView::TodayPressedBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayPressedBackgroundProperty(); }); + } + inline auto CalendarView::TodayDisabledBackgroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayDisabledBackgroundProperty(); }); + } + inline auto CalendarView::PressedForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.PressedForegroundProperty(); }); + } + inline auto CalendarView::TodayForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayForegroundProperty(); }); + } + inline auto CalendarView::BlackoutForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.BlackoutForegroundProperty(); }); + } + inline auto CalendarView::TodayBlackoutForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayBlackoutForegroundProperty(); }); + } + inline auto CalendarView::SelectedForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedForegroundProperty(); }); + } + inline auto CalendarView::SelectedHoverForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedHoverForegroundProperty(); }); + } + inline auto CalendarView::SelectedPressedForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedPressedForegroundProperty(); }); + } + inline auto CalendarView::SelectedDisabledForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.SelectedDisabledForegroundProperty(); }); + } + inline auto CalendarView::OutOfScopeForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.OutOfScopeForegroundProperty(); }); + } + inline auto CalendarView::OutOfScopeHoverForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.OutOfScopeHoverForegroundProperty(); }); + } + inline auto CalendarView::OutOfScopePressedForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.OutOfScopePressedForegroundProperty(); }); + } + inline auto CalendarView::CalendarItemForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemForegroundProperty(); }); + } + inline auto CalendarView::DisabledForegroundProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DisabledForegroundProperty(); }); + } + inline auto CalendarView::DayItemFontFamilyProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DayItemFontFamilyProperty(); }); + } + inline auto CalendarView::DayItemFontSizeProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DayItemFontSizeProperty(); }); + } + inline auto CalendarView::DayItemFontStyleProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DayItemFontStyleProperty(); }); + } + inline auto CalendarView::DayItemFontWeightProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DayItemFontWeightProperty(); }); + } + inline auto CalendarView::TodayFontWeightProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.TodayFontWeightProperty(); }); + } + inline auto CalendarView::FirstOfMonthLabelFontFamilyProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfMonthLabelFontFamilyProperty(); }); + } + inline auto CalendarView::FirstOfMonthLabelFontSizeProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfMonthLabelFontSizeProperty(); }); + } + inline auto CalendarView::FirstOfMonthLabelFontStyleProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfMonthLabelFontStyleProperty(); }); + } + inline auto CalendarView::FirstOfMonthLabelFontWeightProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfMonthLabelFontWeightProperty(); }); + } + inline auto CalendarView::MonthYearItemFontFamilyProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MonthYearItemFontFamilyProperty(); }); + } + inline auto CalendarView::MonthYearItemFontSizeProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MonthYearItemFontSizeProperty(); }); + } + inline auto CalendarView::MonthYearItemFontStyleProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MonthYearItemFontStyleProperty(); }); + } + inline auto CalendarView::MonthYearItemFontWeightProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MonthYearItemFontWeightProperty(); }); + } + inline auto CalendarView::FirstOfYearDecadeLabelFontFamilyProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfYearDecadeLabelFontFamilyProperty(); }); + } + inline auto CalendarView::FirstOfYearDecadeLabelFontSizeProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfYearDecadeLabelFontSizeProperty(); }); + } + inline auto CalendarView::FirstOfYearDecadeLabelFontStyleProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfYearDecadeLabelFontStyleProperty(); }); + } + inline auto CalendarView::FirstOfYearDecadeLabelFontWeightProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfYearDecadeLabelFontWeightProperty(); }); + } + inline auto CalendarView::DayItemMarginProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.DayItemMarginProperty(); }); + } + inline auto CalendarView::MonthYearItemMarginProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.MonthYearItemMarginProperty(); }); + } + inline auto CalendarView::FirstOfMonthLabelMarginProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfMonthLabelMarginProperty(); }); + } + inline auto CalendarView::FirstOfYearDecadeLabelMarginProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.FirstOfYearDecadeLabelMarginProperty(); }); + } + inline auto CalendarView::HorizontalDayItemAlignmentProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.HorizontalDayItemAlignmentProperty(); }); + } + inline auto CalendarView::VerticalDayItemAlignmentProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.VerticalDayItemAlignmentProperty(); }); + } + inline auto CalendarView::HorizontalFirstOfMonthLabelAlignmentProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.HorizontalFirstOfMonthLabelAlignmentProperty(); }); + } + inline auto CalendarView::VerticalFirstOfMonthLabelAlignmentProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.VerticalFirstOfMonthLabelAlignmentProperty(); }); + } + inline auto CalendarView::CalendarItemBorderThicknessProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemBorderThicknessProperty(); }); + } + inline auto CalendarView::CalendarViewDayItemStyleProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarViewDayItemStyleProperty(); }); + } + inline auto CalendarView::CalendarItemCornerRadiusProperty() + { + return impl::call_factory_cast([](ICalendarViewStatics const& f) { return f.CalendarItemCornerRadiusProperty(); }); + } + inline CalendarViewDayItem::CalendarViewDayItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICalendarViewDayItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto CalendarViewDayItem::IsBlackoutProperty() + { + return impl::call_factory_cast([](ICalendarViewDayItemStatics const& f) { return f.IsBlackoutProperty(); }); + } + inline auto CalendarViewDayItem::DateProperty() + { + return impl::call_factory_cast([](ICalendarViewDayItemStatics const& f) { return f.DateProperty(); }); + } + inline Canvas::Canvas() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICanvasFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Canvas::LeftProperty() + { + return impl::call_factory_cast([](ICanvasStatics const& f) { return f.LeftProperty(); }); + } + inline auto Canvas::GetLeft(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](ICanvasStatics const& f) { return f.GetLeft(element); }); + } + inline auto Canvas::SetLeft(winrt::Microsoft::UI::Xaml::UIElement const& element, double length) + { + impl::call_factory([&](ICanvasStatics const& f) { return f.SetLeft(element, length); }); + } + inline auto Canvas::TopProperty() + { + return impl::call_factory_cast([](ICanvasStatics const& f) { return f.TopProperty(); }); + } + inline auto Canvas::GetTop(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](ICanvasStatics const& f) { return f.GetTop(element); }); + } + inline auto Canvas::SetTop(winrt::Microsoft::UI::Xaml::UIElement const& element, double length) + { + impl::call_factory([&](ICanvasStatics const& f) { return f.SetTop(element, length); }); + } + inline auto Canvas::ZIndexProperty() + { + return impl::call_factory_cast([](ICanvasStatics const& f) { return f.ZIndexProperty(); }); + } + inline auto Canvas::GetZIndex(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](ICanvasStatics const& f) { return f.GetZIndex(element); }); + } + inline auto Canvas::SetZIndex(winrt::Microsoft::UI::Xaml::UIElement const& element, int32_t value) + { + impl::call_factory([&](ICanvasStatics const& f) { return f.SetZIndex(element, value); }); + } + inline CheckBox::CheckBox() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICheckBoxFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline ChoosingGroupHeaderContainerEventArgs::ChoosingGroupHeaderContainerEventArgs() : + ChoosingGroupHeaderContainerEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ChoosingItemContainerEventArgs::ChoosingItemContainerEventArgs() : + ChoosingItemContainerEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ColorPicker::ColorPicker() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IColorPickerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ColorPicker::ColorProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.ColorProperty(); }); + } + inline auto ColorPicker::PreviousColorProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.PreviousColorProperty(); }); + } + inline auto ColorPicker::IsAlphaEnabledProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsAlphaEnabledProperty(); }); + } + inline auto ColorPicker::IsColorSpectrumVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsColorSpectrumVisibleProperty(); }); + } + inline auto ColorPicker::IsColorPreviewVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsColorPreviewVisibleProperty(); }); + } + inline auto ColorPicker::IsColorSliderVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsColorSliderVisibleProperty(); }); + } + inline auto ColorPicker::IsAlphaSliderVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsAlphaSliderVisibleProperty(); }); + } + inline auto ColorPicker::IsMoreButtonVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsMoreButtonVisibleProperty(); }); + } + inline auto ColorPicker::IsColorChannelTextInputVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsColorChannelTextInputVisibleProperty(); }); + } + inline auto ColorPicker::IsAlphaTextInputVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsAlphaTextInputVisibleProperty(); }); + } + inline auto ColorPicker::IsHexInputVisibleProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.IsHexInputVisibleProperty(); }); + } + inline auto ColorPicker::MinHueProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.MinHueProperty(); }); + } + inline auto ColorPicker::MaxHueProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.MaxHueProperty(); }); + } + inline auto ColorPicker::MinSaturationProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.MinSaturationProperty(); }); + } + inline auto ColorPicker::MaxSaturationProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.MaxSaturationProperty(); }); + } + inline auto ColorPicker::MinValueProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.MinValueProperty(); }); + } + inline auto ColorPicker::MaxValueProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.MaxValueProperty(); }); + } + inline auto ColorPicker::ColorSpectrumShapeProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.ColorSpectrumShapeProperty(); }); + } + inline auto ColorPicker::ColorSpectrumComponentsProperty() + { + return impl::call_factory_cast([](IColorPickerStatics const& f) { return f.ColorSpectrumComponentsProperty(); }); + } + inline auto ColorPicker::OrientationProperty() + { + return impl::call_factory_cast([](IColorPickerStatics2 const& f) { return f.OrientationProperty(); }); + } + inline ColumnDefinition::ColumnDefinition() : + ColumnDefinition(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ColumnDefinition::WidthProperty() + { + return impl::call_factory_cast([](IColumnDefinitionStatics const& f) { return f.WidthProperty(); }); + } + inline auto ColumnDefinition::MaxWidthProperty() + { + return impl::call_factory_cast([](IColumnDefinitionStatics const& f) { return f.MaxWidthProperty(); }); + } + inline auto ColumnDefinition::MinWidthProperty() + { + return impl::call_factory_cast([](IColumnDefinitionStatics const& f) { return f.MinWidthProperty(); }); + } + inline ComboBox::ComboBox() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IComboBoxFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ComboBox::IsEditableProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.IsEditableProperty(); }); + } + inline auto ComboBox::IsDropDownOpenProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.IsDropDownOpenProperty(); }); + } + inline auto ComboBox::MaxDropDownHeightProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.MaxDropDownHeightProperty(); }); + } + inline auto ComboBox::HeaderProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.HeaderProperty(); }); + } + inline auto ComboBox::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto ComboBox::PlaceholderTextProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto ComboBox::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline auto ComboBox::IsTextSearchEnabledProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.IsTextSearchEnabledProperty(); }); + } + inline auto ComboBox::SelectionChangedTriggerProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.SelectionChangedTriggerProperty(); }); + } + inline auto ComboBox::PlaceholderForegroundProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.PlaceholderForegroundProperty(); }); + } + inline auto ComboBox::TextProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.TextProperty(); }); + } + inline auto ComboBox::TextBoxStyleProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.TextBoxStyleProperty(); }); + } + inline auto ComboBox::DescriptionProperty() + { + return impl::call_factory_cast([](IComboBoxStatics const& f) { return f.DescriptionProperty(); }); + } + inline ComboBoxItem::ComboBoxItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IComboBoxItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline CommandBar::CommandBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICommandBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto CommandBar::PrimaryCommandsProperty() + { + return impl::call_factory_cast([](ICommandBarStatics const& f) { return f.PrimaryCommandsProperty(); }); + } + inline auto CommandBar::SecondaryCommandsProperty() + { + return impl::call_factory_cast([](ICommandBarStatics const& f) { return f.SecondaryCommandsProperty(); }); + } + inline auto CommandBar::CommandBarOverflowPresenterStyleProperty() + { + return impl::call_factory_cast([](ICommandBarStatics const& f) { return f.CommandBarOverflowPresenterStyleProperty(); }); + } + inline auto CommandBar::DefaultLabelPositionProperty() + { + return impl::call_factory_cast([](ICommandBarStatics const& f) { return f.DefaultLabelPositionProperty(); }); + } + inline auto CommandBar::OverflowButtonVisibilityProperty() + { + return impl::call_factory_cast([](ICommandBarStatics const& f) { return f.OverflowButtonVisibilityProperty(); }); + } + inline auto CommandBar::IsDynamicOverflowEnabledProperty() + { + return impl::call_factory_cast([](ICommandBarStatics const& f) { return f.IsDynamicOverflowEnabledProperty(); }); + } + inline CommandBarFlyout::CommandBarFlyout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICommandBarFlyoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline CommandBarOverflowPresenter::CommandBarOverflowPresenter() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ICommandBarOverflowPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline ContainerContentChangingEventArgs::ContainerContentChangingEventArgs() : + ContainerContentChangingEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ContentControl::ContentControl() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IContentControlFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ContentControl::ContentProperty() + { + return impl::call_factory_cast([](IContentControlStatics const& f) { return f.ContentProperty(); }); + } + inline auto ContentControl::ContentTemplateProperty() + { + return impl::call_factory_cast([](IContentControlStatics const& f) { return f.ContentTemplateProperty(); }); + } + inline auto ContentControl::ContentTemplateSelectorProperty() + { + return impl::call_factory_cast([](IContentControlStatics const& f) { return f.ContentTemplateSelectorProperty(); }); + } + inline auto ContentControl::ContentTransitionsProperty() + { + return impl::call_factory_cast([](IContentControlStatics const& f) { return f.ContentTransitionsProperty(); }); + } + inline ContentDialog::ContentDialog() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IContentDialogFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ContentDialog::TitleProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.TitleProperty(); }); + } + inline auto ContentDialog::TitleTemplateProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.TitleTemplateProperty(); }); + } + inline auto ContentDialog::FullSizeDesiredProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.FullSizeDesiredProperty(); }); + } + inline auto ContentDialog::PrimaryButtonTextProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.PrimaryButtonTextProperty(); }); + } + inline auto ContentDialog::SecondaryButtonTextProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.SecondaryButtonTextProperty(); }); + } + inline auto ContentDialog::CloseButtonTextProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.CloseButtonTextProperty(); }); + } + inline auto ContentDialog::PrimaryButtonCommandProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.PrimaryButtonCommandProperty(); }); + } + inline auto ContentDialog::SecondaryButtonCommandProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.SecondaryButtonCommandProperty(); }); + } + inline auto ContentDialog::CloseButtonCommandProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.CloseButtonCommandProperty(); }); + } + inline auto ContentDialog::PrimaryButtonCommandParameterProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.PrimaryButtonCommandParameterProperty(); }); + } + inline auto ContentDialog::SecondaryButtonCommandParameterProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.SecondaryButtonCommandParameterProperty(); }); + } + inline auto ContentDialog::CloseButtonCommandParameterProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.CloseButtonCommandParameterProperty(); }); + } + inline auto ContentDialog::IsPrimaryButtonEnabledProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.IsPrimaryButtonEnabledProperty(); }); + } + inline auto ContentDialog::IsSecondaryButtonEnabledProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.IsSecondaryButtonEnabledProperty(); }); + } + inline auto ContentDialog::PrimaryButtonStyleProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.PrimaryButtonStyleProperty(); }); + } + inline auto ContentDialog::SecondaryButtonStyleProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.SecondaryButtonStyleProperty(); }); + } + inline auto ContentDialog::CloseButtonStyleProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.CloseButtonStyleProperty(); }); + } + inline auto ContentDialog::DefaultButtonProperty() + { + return impl::call_factory_cast([](IContentDialogStatics const& f) { return f.DefaultButtonProperty(); }); + } + inline ContentPresenter::ContentPresenter() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IContentPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ContentPresenter::ContentProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.ContentProperty(); }); + } + inline auto ContentPresenter::ContentTemplateProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.ContentTemplateProperty(); }); + } + inline auto ContentPresenter::ContentTemplateSelectorProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.ContentTemplateSelectorProperty(); }); + } + inline auto ContentPresenter::ContentTransitionsProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.ContentTransitionsProperty(); }); + } + inline auto ContentPresenter::FontSizeProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto ContentPresenter::FontFamilyProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto ContentPresenter::FontWeightProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto ContentPresenter::FontStyleProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto ContentPresenter::FontStretchProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.FontStretchProperty(); }); + } + inline auto ContentPresenter::CharacterSpacingProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.CharacterSpacingProperty(); }); + } + inline auto ContentPresenter::ForegroundProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto ContentPresenter::OpticalMarginAlignmentProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.OpticalMarginAlignmentProperty(); }); + } + inline auto ContentPresenter::TextLineBoundsProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.TextLineBoundsProperty(); }); + } + inline auto ContentPresenter::IsTextScaleFactorEnabledProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.IsTextScaleFactorEnabledProperty(); }); + } + inline auto ContentPresenter::TextWrappingProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.TextWrappingProperty(); }); + } + inline auto ContentPresenter::MaxLinesProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.MaxLinesProperty(); }); + } + inline auto ContentPresenter::LineStackingStrategyProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.LineStackingStrategyProperty(); }); + } + inline auto ContentPresenter::LineHeightProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.LineHeightProperty(); }); + } + inline auto ContentPresenter::BorderBrushProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.BorderBrushProperty(); }); + } + inline auto ContentPresenter::BorderThicknessProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.BorderThicknessProperty(); }); + } + inline auto ContentPresenter::CornerRadiusProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.CornerRadiusProperty(); }); + } + inline auto ContentPresenter::PaddingProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.PaddingProperty(); }); + } + inline auto ContentPresenter::BackgroundProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.BackgroundProperty(); }); + } + inline auto ContentPresenter::BackgroundSizingProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.BackgroundSizingProperty(); }); + } + inline auto ContentPresenter::HorizontalContentAlignmentProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.HorizontalContentAlignmentProperty(); }); + } + inline auto ContentPresenter::VerticalContentAlignmentProperty() + { + return impl::call_factory_cast([](IContentPresenterStatics const& f) { return f.VerticalContentAlignmentProperty(); }); + } + inline auto Control::IsFocusEngagementEnabledProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.IsFocusEngagementEnabledProperty(); }); + } + inline auto Control::IsFocusEngagedProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.IsFocusEngagedProperty(); }); + } + inline auto Control::RequiresPointerProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.RequiresPointerProperty(); }); + } + inline auto Control::FontSizeProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto Control::FontFamilyProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto Control::FontWeightProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto Control::FontStyleProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto Control::FontStretchProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.FontStretchProperty(); }); + } + inline auto Control::CharacterSpacingProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.CharacterSpacingProperty(); }); + } + inline auto Control::ForegroundProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto Control::IsTextScaleFactorEnabledProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.IsTextScaleFactorEnabledProperty(); }); + } + inline auto Control::IsEnabledProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.IsEnabledProperty(); }); + } + inline auto Control::TabNavigationProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.TabNavigationProperty(); }); + } + inline auto Control::TemplateProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.TemplateProperty(); }); + } + inline auto Control::PaddingProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.PaddingProperty(); }); + } + inline auto Control::HorizontalContentAlignmentProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.HorizontalContentAlignmentProperty(); }); + } + inline auto Control::VerticalContentAlignmentProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.VerticalContentAlignmentProperty(); }); + } + inline auto Control::BackgroundProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.BackgroundProperty(); }); + } + inline auto Control::BackgroundSizingProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.BackgroundSizingProperty(); }); + } + inline auto Control::BorderThicknessProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.BorderThicknessProperty(); }); + } + inline auto Control::BorderBrushProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.BorderBrushProperty(); }); + } + inline auto Control::DefaultStyleKeyProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.DefaultStyleKeyProperty(); }); + } + inline auto Control::DefaultStyleResourceUriProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.DefaultStyleResourceUriProperty(); }); + } + inline auto Control::ElementSoundModeProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.ElementSoundModeProperty(); }); + } + inline auto Control::CornerRadiusProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.CornerRadiusProperty(); }); + } + inline auto Control::IsTemplateFocusTargetProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.IsTemplateFocusTargetProperty(); }); + } + inline auto Control::GetIsTemplateFocusTarget(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) + { + return impl::call_factory([&](IControlStatics const& f) { return f.GetIsTemplateFocusTarget(element); }); + } + inline auto Control::SetIsTemplateFocusTarget(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, bool value) + { + impl::call_factory([&](IControlStatics const& f) { return f.SetIsTemplateFocusTarget(element, value); }); + } + inline auto Control::IsTemplateKeyTipTargetProperty() + { + return impl::call_factory_cast([](IControlStatics const& f) { return f.IsTemplateKeyTipTargetProperty(); }); + } + inline auto Control::GetIsTemplateKeyTipTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IControlStatics const& f) { return f.GetIsTemplateKeyTipTarget(element); }); + } + inline auto Control::SetIsTemplateKeyTipTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) + { + impl::call_factory([&](IControlStatics const& f) { return f.SetIsTemplateKeyTipTarget(element, value); }); + } + inline ControlTemplate::ControlTemplate() : + ControlTemplate(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline DataTemplateSelector::DataTemplateSelector() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IDataTemplateSelectorFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline DatePickedEventArgs::DatePickedEventArgs() : + DatePickedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline DatePicker::DatePicker() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IDatePickerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto DatePicker::HeaderProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.HeaderProperty(); }); + } + inline auto DatePicker::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto DatePicker::CalendarIdentifierProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.CalendarIdentifierProperty(); }); + } + inline auto DatePicker::DateProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.DateProperty(); }); + } + inline auto DatePicker::DayVisibleProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.DayVisibleProperty(); }); + } + inline auto DatePicker::MonthVisibleProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.MonthVisibleProperty(); }); + } + inline auto DatePicker::YearVisibleProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.YearVisibleProperty(); }); + } + inline auto DatePicker::DayFormatProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.DayFormatProperty(); }); + } + inline auto DatePicker::MonthFormatProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.MonthFormatProperty(); }); + } + inline auto DatePicker::YearFormatProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.YearFormatProperty(); }); + } + inline auto DatePicker::MinYearProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.MinYearProperty(); }); + } + inline auto DatePicker::MaxYearProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.MaxYearProperty(); }); + } + inline auto DatePicker::OrientationProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.OrientationProperty(); }); + } + inline auto DatePicker::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline auto DatePicker::SelectedDateProperty() + { + return impl::call_factory_cast([](IDatePickerStatics const& f) { return f.SelectedDateProperty(); }); + } + inline DatePickerFlyout::DatePickerFlyout() : + DatePickerFlyout(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto DatePickerFlyout::CalendarIdentifierProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.CalendarIdentifierProperty(); }); + } + inline auto DatePickerFlyout::DateProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.DateProperty(); }); + } + inline auto DatePickerFlyout::DayVisibleProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.DayVisibleProperty(); }); + } + inline auto DatePickerFlyout::MonthVisibleProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.MonthVisibleProperty(); }); + } + inline auto DatePickerFlyout::YearVisibleProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.YearVisibleProperty(); }); + } + inline auto DatePickerFlyout::MinYearProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.MinYearProperty(); }); + } + inline auto DatePickerFlyout::MaxYearProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.MaxYearProperty(); }); + } + inline auto DatePickerFlyout::DayFormatProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.DayFormatProperty(); }); + } + inline auto DatePickerFlyout::MonthFormatProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.MonthFormatProperty(); }); + } + inline auto DatePickerFlyout::YearFormatProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutStatics const& f) { return f.YearFormatProperty(); }); + } + inline auto DatePickerFlyoutItem::PrimaryTextProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutItemStatics const& f) { return f.PrimaryTextProperty(); }); + } + inline auto DatePickerFlyoutItem::SecondaryTextProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutItemStatics const& f) { return f.SecondaryTextProperty(); }); + } + inline auto DatePickerFlyoutPresenter::IsDefaultShadowEnabledProperty() + { + return impl::call_factory_cast([](IDatePickerFlyoutPresenterStatics const& f) { return f.IsDefaultShadowEnabledProperty(); }); + } + inline DragItemsStartingEventArgs::DragItemsStartingEventArgs() : + DragItemsStartingEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline DropDownButton::DropDownButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IDropDownButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline DynamicOverflowItemsChangingEventArgs::DynamicOverflowItemsChangingEventArgs() : + DynamicOverflowItemsChangingEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline Expander::Expander() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IExpanderFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Expander::HeaderProperty() + { + return impl::call_factory_cast([](IExpanderStatics const& f) { return f.HeaderProperty(); }); + } + inline auto Expander::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IExpanderStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto Expander::HeaderTemplateSelectorProperty() + { + return impl::call_factory_cast([](IExpanderStatics const& f) { return f.HeaderTemplateSelectorProperty(); }); + } + inline auto Expander::IsExpandedProperty() + { + return impl::call_factory_cast([](IExpanderStatics const& f) { return f.IsExpandedProperty(); }); + } + inline auto Expander::ExpandDirectionProperty() + { + return impl::call_factory_cast([](IExpanderStatics const& f) { return f.ExpandDirectionProperty(); }); + } + inline FlipView::FlipView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFlipViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto FlipView::UseTouchAnimationsForAllNavigationProperty() + { + return impl::call_factory_cast([](IFlipViewStatics const& f) { return f.UseTouchAnimationsForAllNavigationProperty(); }); + } + inline FlipViewItem::FlipViewItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFlipViewItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline Flyout::Flyout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFlyoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Flyout::ContentProperty() + { + return impl::call_factory_cast([](IFlyoutStatics const& f) { return f.ContentProperty(); }); + } + inline auto Flyout::FlyoutPresenterStyleProperty() + { + return impl::call_factory_cast([](IFlyoutStatics const& f) { return f.FlyoutPresenterStyleProperty(); }); + } + inline FlyoutPresenter::FlyoutPresenter() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFlyoutPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto FlyoutPresenter::IsDefaultShadowEnabledProperty() + { + return impl::call_factory_cast([](IFlyoutPresenterStatics const& f) { return f.IsDefaultShadowEnabledProperty(); }); + } + inline FontIcon::FontIcon() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFontIconFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto FontIcon::GlyphProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.GlyphProperty(); }); + } + inline auto FontIcon::FontSizeProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto FontIcon::FontFamilyProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto FontIcon::FontWeightProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto FontIcon::FontStyleProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto FontIcon::IsTextScaleFactorEnabledProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.IsTextScaleFactorEnabledProperty(); }); + } + inline auto FontIcon::MirroredWhenRightToLeftProperty() + { + return impl::call_factory_cast([](IFontIconStatics const& f) { return f.MirroredWhenRightToLeftProperty(); }); + } + inline FontIconSource::FontIconSource() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFontIconSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto FontIconSource::GlyphProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.GlyphProperty(); }); + } + inline auto FontIconSource::FontSizeProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto FontIconSource::FontFamilyProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto FontIconSource::FontWeightProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto FontIconSource::FontStyleProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto FontIconSource::IsTextScaleFactorEnabledProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.IsTextScaleFactorEnabledProperty(); }); + } + inline auto FontIconSource::MirroredWhenRightToLeftProperty() + { + return impl::call_factory_cast([](IFontIconSourceStatics const& f) { return f.MirroredWhenRightToLeftProperty(); }); + } + inline Frame::Frame() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IFrameFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Frame::CacheSizeProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.CacheSizeProperty(); }); + } + inline auto Frame::CanGoBackProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.CanGoBackProperty(); }); + } + inline auto Frame::CanGoForwardProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.CanGoForwardProperty(); }); + } + inline auto Frame::CurrentSourcePageTypeProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.CurrentSourcePageTypeProperty(); }); + } + inline auto Frame::SourcePageTypeProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.SourcePageTypeProperty(); }); + } + inline auto Frame::BackStackDepthProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.BackStackDepthProperty(); }); + } + inline auto Frame::BackStackProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.BackStackProperty(); }); + } + inline auto Frame::ForwardStackProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.ForwardStackProperty(); }); + } + inline auto Frame::IsNavigationStackEnabledProperty() + { + return impl::call_factory_cast([](IFrameStatics const& f) { return f.IsNavigationStackEnabledProperty(); }); + } + inline Grid::Grid() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGridFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Grid::BackgroundSizingProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.BackgroundSizingProperty(); }); + } + inline auto Grid::BorderBrushProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.BorderBrushProperty(); }); + } + inline auto Grid::BorderThicknessProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.BorderThicknessProperty(); }); + } + inline auto Grid::CornerRadiusProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.CornerRadiusProperty(); }); + } + inline auto Grid::PaddingProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.PaddingProperty(); }); + } + inline auto Grid::RowSpacingProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.RowSpacingProperty(); }); + } + inline auto Grid::ColumnSpacingProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.ColumnSpacingProperty(); }); + } + inline auto Grid::RowProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.RowProperty(); }); + } + inline auto Grid::GetRow(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) + { + return impl::call_factory([&](IGridStatics const& f) { return f.GetRow(element); }); + } + inline auto Grid::SetRow(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) + { + impl::call_factory([&](IGridStatics const& f) { return f.SetRow(element, value); }); + } + inline auto Grid::ColumnProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.ColumnProperty(); }); + } + inline auto Grid::GetColumn(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) + { + return impl::call_factory([&](IGridStatics const& f) { return f.GetColumn(element); }); + } + inline auto Grid::SetColumn(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) + { + impl::call_factory([&](IGridStatics const& f) { return f.SetColumn(element, value); }); + } + inline auto Grid::RowSpanProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.RowSpanProperty(); }); + } + inline auto Grid::GetRowSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) + { + return impl::call_factory([&](IGridStatics const& f) { return f.GetRowSpan(element); }); + } + inline auto Grid::SetRowSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) + { + impl::call_factory([&](IGridStatics const& f) { return f.SetRowSpan(element, value); }); + } + inline auto Grid::ColumnSpanProperty() + { + return impl::call_factory_cast([](IGridStatics const& f) { return f.ColumnSpanProperty(); }); + } + inline auto Grid::GetColumnSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) + { + return impl::call_factory([&](IGridStatics const& f) { return f.GetColumnSpan(element); }); + } + inline auto Grid::SetColumnSpan(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, int32_t value) + { + impl::call_factory([&](IGridStatics const& f) { return f.SetColumnSpan(element, value); }); + } + inline GridView::GridView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGridViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline GridViewHeaderItem::GridViewHeaderItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGridViewHeaderItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline GridViewItem::GridViewItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGridViewItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline GroupItem::GroupItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGroupItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline GroupStyle::GroupStyle() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGroupStyleFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline GroupStyleSelector::GroupStyleSelector() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IGroupStyleSelectorFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline Hub::Hub() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IHubFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Hub::HeaderProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.HeaderProperty(); }); + } + inline auto Hub::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto Hub::OrientationProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.OrientationProperty(); }); + } + inline auto Hub::DefaultSectionIndexProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.DefaultSectionIndexProperty(); }); + } + inline auto Hub::SemanticZoomOwnerProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.SemanticZoomOwnerProperty(); }); + } + inline auto Hub::IsActiveViewProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.IsActiveViewProperty(); }); + } + inline auto Hub::IsZoomedInViewProperty() + { + return impl::call_factory_cast([](IHubStatics const& f) { return f.IsZoomedInViewProperty(); }); + } + inline HubSection::HubSection() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IHubSectionFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto HubSection::HeaderProperty() + { + return impl::call_factory_cast([](IHubSectionStatics const& f) { return f.HeaderProperty(); }); + } + inline auto HubSection::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IHubSectionStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto HubSection::ContentTemplateProperty() + { + return impl::call_factory_cast([](IHubSectionStatics const& f) { return f.ContentTemplateProperty(); }); + } + inline auto HubSection::IsHeaderInteractiveProperty() + { + return impl::call_factory_cast([](IHubSectionStatics const& f) { return f.IsHeaderInteractiveProperty(); }); + } + inline HubSectionHeaderClickEventArgs::HubSectionHeaderClickEventArgs() : + HubSectionHeaderClickEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline HyperlinkButton::HyperlinkButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IHyperlinkButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto HyperlinkButton::NavigateUriProperty() + { + return impl::call_factory_cast([](IHyperlinkButtonStatics const& f) { return f.NavigateUriProperty(); }); + } + inline auto IconElement::ForegroundProperty() + { + return impl::call_factory_cast([](IIconElementStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto IconSource::ForegroundProperty() + { + return impl::call_factory_cast([](IIconSourceStatics const& f) { return f.ForegroundProperty(); }); + } + inline IconSourceElement::IconSourceElement() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IIconSourceElementFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto IconSourceElement::IconSourceProperty() + { + return impl::call_factory_cast([](IIconSourceElementStatics const& f) { return f.IconSourceProperty(); }); + } + inline Image::Image() : + Image(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto Image::SourceProperty() + { + return impl::call_factory_cast([](IImageStatics const& f) { return f.SourceProperty(); }); + } + inline auto Image::StretchProperty() + { + return impl::call_factory_cast([](IImageStatics const& f) { return f.StretchProperty(); }); + } + inline auto Image::NineGridProperty() + { + return impl::call_factory_cast([](IImageStatics const& f) { return f.NineGridProperty(); }); + } + inline ImageIcon::ImageIcon() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IImageIconFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ImageIcon::SourceProperty() + { + return impl::call_factory_cast([](IImageIconStatics const& f) { return f.SourceProperty(); }); + } + inline ImageIconSource::ImageIconSource() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IImageIconSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ImageIconSource::ImageSourceProperty() + { + return impl::call_factory_cast([](IImageIconSourceStatics const& f) { return f.ImageSourceProperty(); }); + } + inline InfoBadge::InfoBadge() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IInfoBadgeFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto InfoBadge::ValueProperty() + { + return impl::call_factory_cast([](IInfoBadgeStatics const& f) { return f.ValueProperty(); }); + } + inline auto InfoBadge::IconSourceProperty() + { + return impl::call_factory_cast([](IInfoBadgeStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto InfoBadge::TemplateSettingsProperty() + { + return impl::call_factory_cast([](IInfoBadgeStatics const& f) { return f.TemplateSettingsProperty(); }); + } + inline InfoBadgeTemplateSettings::InfoBadgeTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IInfoBadgeTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto InfoBadgeTemplateSettings::InfoBadgeCornerRadiusProperty() + { + return impl::call_factory_cast([](IInfoBadgeTemplateSettingsStatics const& f) { return f.InfoBadgeCornerRadiusProperty(); }); + } + inline auto InfoBadgeTemplateSettings::IconElementProperty() + { + return impl::call_factory_cast([](IInfoBadgeTemplateSettingsStatics const& f) { return f.IconElementProperty(); }); + } + inline InfoBar::InfoBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IInfoBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto InfoBar::IsOpenProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.IsOpenProperty(); }); + } + inline auto InfoBar::TitleProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.TitleProperty(); }); + } + inline auto InfoBar::MessageProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.MessageProperty(); }); + } + inline auto InfoBar::SeverityProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.SeverityProperty(); }); + } + inline auto InfoBar::IconSourceProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto InfoBar::IsIconVisibleProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.IsIconVisibleProperty(); }); + } + inline auto InfoBar::IsClosableProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.IsClosableProperty(); }); + } + inline auto InfoBar::CloseButtonStyleProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.CloseButtonStyleProperty(); }); + } + inline auto InfoBar::CloseButtonCommandProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.CloseButtonCommandProperty(); }); + } + inline auto InfoBar::CloseButtonCommandParameterProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.CloseButtonCommandParameterProperty(); }); + } + inline auto InfoBar::ActionButtonProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.ActionButtonProperty(); }); + } + inline auto InfoBar::ContentProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.ContentProperty(); }); + } + inline auto InfoBar::ContentTemplateProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.ContentTemplateProperty(); }); + } + inline auto InfoBar::TemplateSettingsProperty() + { + return impl::call_factory_cast([](IInfoBarStatics const& f) { return f.TemplateSettingsProperty(); }); + } + inline InfoBarTemplateSettings::InfoBarTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IInfoBarTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto InfoBarTemplateSettings::IconElementProperty() + { + return impl::call_factory_cast([](IInfoBarTemplateSettingsStatics const& f) { return f.IconElementProperty(); }); + } + inline ItemClickEventArgs::ItemClickEventArgs() : + ItemClickEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ItemCollectionTransitionProvider::ItemCollectionTransitionProvider() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemCollectionTransitionProviderFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline ItemContainer::ItemContainer() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemContainerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ItemContainer::ChildProperty() + { + return impl::call_factory_cast([](IItemContainerStatics const& f) { return f.ChildProperty(); }); + } + inline auto ItemContainer::IsSelectedProperty() + { + return impl::call_factory_cast([](IItemContainerStatics const& f) { return f.IsSelectedProperty(); }); + } + inline ItemsControl::ItemsControl() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemsControlFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ItemsControl::ItemsSourceProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemsSourceProperty(); }); + } + inline auto ItemsControl::ItemTemplateProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemTemplateProperty(); }); + } + inline auto ItemsControl::ItemTemplateSelectorProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemTemplateSelectorProperty(); }); + } + inline auto ItemsControl::ItemsPanelProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemsPanelProperty(); }); + } + inline auto ItemsControl::DisplayMemberPathProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.DisplayMemberPathProperty(); }); + } + inline auto ItemsControl::ItemContainerStyleProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemContainerStyleProperty(); }); + } + inline auto ItemsControl::ItemContainerStyleSelectorProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemContainerStyleSelectorProperty(); }); + } + inline auto ItemsControl::ItemContainerTransitionsProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.ItemContainerTransitionsProperty(); }); + } + inline auto ItemsControl::GroupStyleSelectorProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.GroupStyleSelectorProperty(); }); + } + inline auto ItemsControl::IsGroupingProperty() + { + return impl::call_factory_cast([](IItemsControlStatics const& f) { return f.IsGroupingProperty(); }); + } + inline auto ItemsControl::GetItemsOwner(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IItemsControlStatics const& f) { return f.GetItemsOwner(element); }); + } + inline auto ItemsControl::ItemsControlFromItemContainer(winrt::Microsoft::UI::Xaml::DependencyObject const& container) + { + return impl::call_factory([&](IItemsControlStatics const& f) { return f.ItemsControlFromItemContainer(container); }); + } + inline ItemsPanelTemplate::ItemsPanelTemplate() : + ItemsPanelTemplate(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ItemsPickedEventArgs::ItemsPickedEventArgs() : + ItemsPickedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ItemsPresenter::ItemsPresenter() : + ItemsPresenter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ItemsPresenter::HeaderProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.HeaderProperty(); }); + } + inline auto ItemsPresenter::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto ItemsPresenter::HeaderTransitionsProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.HeaderTransitionsProperty(); }); + } + inline auto ItemsPresenter::FooterProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.FooterProperty(); }); + } + inline auto ItemsPresenter::FooterTemplateProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.FooterTemplateProperty(); }); + } + inline auto ItemsPresenter::FooterTransitionsProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.FooterTransitionsProperty(); }); + } + inline auto ItemsPresenter::PaddingProperty() + { + return impl::call_factory_cast([](IItemsPresenterStatics const& f) { return f.PaddingProperty(); }); + } + inline ItemsRepeater::ItemsRepeater() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemsRepeaterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ItemsRepeater::ItemsSourceProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics const& f) { return f.ItemsSourceProperty(); }); + } + inline auto ItemsRepeater::ItemTemplateProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics const& f) { return f.ItemTemplateProperty(); }); + } + inline auto ItemsRepeater::LayoutProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics const& f) { return f.LayoutProperty(); }); + } + inline auto ItemsRepeater::HorizontalCacheLengthProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics const& f) { return f.HorizontalCacheLengthProperty(); }); + } + inline auto ItemsRepeater::VerticalCacheLengthProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics const& f) { return f.VerticalCacheLengthProperty(); }); + } + inline auto ItemsRepeater::BackgroundProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics const& f) { return f.BackgroundProperty(); }); + } + inline auto ItemsRepeater::ItemTransitionProviderProperty() + { + return impl::call_factory_cast([](IItemsRepeaterStatics2 const& f) { return f.ItemTransitionProviderProperty(); }); + } + inline ItemsRepeaterScrollHost::ItemsRepeaterScrollHost() : + ItemsRepeaterScrollHost(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ItemsSourceView::ItemsSourceView(winrt::Windows::Foundation::IInspectable const& source) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemsSourceViewFactory const& f) { return f.CreateInstance(source, baseInterface, innerInterface); }); + } + inline ItemsStackPanel::ItemsStackPanel() : + ItemsStackPanel(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ItemsStackPanel::GroupPaddingProperty() + { + return impl::call_factory_cast([](IItemsStackPanelStatics const& f) { return f.GroupPaddingProperty(); }); + } + inline auto ItemsStackPanel::OrientationProperty() + { + return impl::call_factory_cast([](IItemsStackPanelStatics const& f) { return f.OrientationProperty(); }); + } + inline auto ItemsStackPanel::GroupHeaderPlacementProperty() + { + return impl::call_factory_cast([](IItemsStackPanelStatics const& f) { return f.GroupHeaderPlacementProperty(); }); + } + inline auto ItemsStackPanel::CacheLengthProperty() + { + return impl::call_factory_cast([](IItemsStackPanelStatics const& f) { return f.CacheLengthProperty(); }); + } + inline auto ItemsStackPanel::AreStickyGroupHeadersEnabledProperty() + { + return impl::call_factory_cast([](IItemsStackPanelStatics const& f) { return f.AreStickyGroupHeadersEnabledProperty(); }); + } + inline ItemsView::ItemsView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemsViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ItemsView::IsItemInvokedEnabledProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.IsItemInvokedEnabledProperty(); }); + } + inline auto ItemsView::ItemsSourceProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.ItemsSourceProperty(); }); + } + inline auto ItemsView::ItemTemplateProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.ItemTemplateProperty(); }); + } + inline auto ItemsView::LayoutProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.LayoutProperty(); }); + } + inline auto ItemsView::SelectionModeProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.SelectionModeProperty(); }); + } + inline auto ItemsView::ItemTransitionProviderProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.ItemTransitionProviderProperty(); }); + } + inline auto ItemsView::CurrentItemIndexProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.CurrentItemIndexProperty(); }); + } + inline auto ItemsView::SelectedItemProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto ItemsView::ScrollViewProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.ScrollViewProperty(); }); + } + inline auto ItemsView::VerticalScrollControllerProperty() + { + return impl::call_factory_cast([](IItemsViewStatics const& f) { return f.VerticalScrollControllerProperty(); }); + } + inline ItemsWrapGrid::ItemsWrapGrid() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IItemsWrapGridFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ItemsWrapGrid::GroupPaddingProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.GroupPaddingProperty(); }); + } + inline auto ItemsWrapGrid::OrientationProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.OrientationProperty(); }); + } + inline auto ItemsWrapGrid::MaximumRowsOrColumnsProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.MaximumRowsOrColumnsProperty(); }); + } + inline auto ItemsWrapGrid::ItemWidthProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.ItemWidthProperty(); }); + } + inline auto ItemsWrapGrid::ItemHeightProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.ItemHeightProperty(); }); + } + inline auto ItemsWrapGrid::GroupHeaderPlacementProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.GroupHeaderPlacementProperty(); }); + } + inline auto ItemsWrapGrid::CacheLengthProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.CacheLengthProperty(); }); + } + inline auto ItemsWrapGrid::AreStickyGroupHeadersEnabledProperty() + { + return impl::call_factory_cast([](IItemsWrapGridStatics const& f) { return f.AreStickyGroupHeadersEnabledProperty(); }); + } + inline LinedFlowLayout::LinedFlowLayout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ILinedFlowLayoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto LinedFlowLayout::ItemsJustificationProperty() + { + return impl::call_factory_cast([](ILinedFlowLayoutStatics const& f) { return f.ItemsJustificationProperty(); }); + } + inline auto LinedFlowLayout::ItemsStretchProperty() + { + return impl::call_factory_cast([](ILinedFlowLayoutStatics const& f) { return f.ItemsStretchProperty(); }); + } + inline auto LinedFlowLayout::MinItemSpacingProperty() + { + return impl::call_factory_cast([](ILinedFlowLayoutStatics const& f) { return f.MinItemSpacingProperty(); }); + } + inline auto LinedFlowLayout::LineSpacingProperty() + { + return impl::call_factory_cast([](ILinedFlowLayoutStatics const& f) { return f.LineSpacingProperty(); }); + } + inline auto LinedFlowLayout::LineHeightProperty() + { + return impl::call_factory_cast([](ILinedFlowLayoutStatics const& f) { return f.LineHeightProperty(); }); + } + inline auto LinedFlowLayout::ActualLineHeightProperty() + { + return impl::call_factory_cast([](ILinedFlowLayoutStatics const& f) { return f.ActualLineHeightProperty(); }); + } + inline LinedFlowLayoutItemCollectionTransitionProvider::LinedFlowLayoutItemCollectionTransitionProvider() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ILinedFlowLayoutItemCollectionTransitionProviderFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline ListBox::ListBox() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IListBoxFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ListBox::SelectionModeProperty() + { + return impl::call_factory_cast([](IListBoxStatics const& f) { return f.SelectionModeProperty(); }); + } + inline auto ListBox::SingleSelectionFollowsFocusProperty() + { + return impl::call_factory_cast([](IListBoxStatics const& f) { return f.SingleSelectionFollowsFocusProperty(); }); + } + inline ListBoxItem::ListBoxItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IListBoxItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline ListPickerFlyout::ListPickerFlyout() : + ListPickerFlyout(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ListPickerFlyout::ItemsSourceProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.ItemsSourceProperty(); }); + } + inline auto ListPickerFlyout::ItemTemplateProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.ItemTemplateProperty(); }); + } + inline auto ListPickerFlyout::DisplayMemberPathProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.DisplayMemberPathProperty(); }); + } + inline auto ListPickerFlyout::SelectionModeProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.SelectionModeProperty(); }); + } + inline auto ListPickerFlyout::SelectedIndexProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.SelectedIndexProperty(); }); + } + inline auto ListPickerFlyout::SelectedItemProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto ListPickerFlyout::SelectedValueProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.SelectedValueProperty(); }); + } + inline auto ListPickerFlyout::SelectedValuePathProperty() + { + return impl::call_factory_cast([](IListPickerFlyoutStatics const& f) { return f.SelectedValuePathProperty(); }); + } + inline ListView::ListView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IListViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ListViewBase::SelectionModeProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.SelectionModeProperty(); }); + } + inline auto ListViewBase::IsSwipeEnabledProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IsSwipeEnabledProperty(); }); + } + inline auto ListViewBase::CanDragItemsProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.CanDragItemsProperty(); }); + } + inline auto ListViewBase::CanReorderItemsProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.CanReorderItemsProperty(); }); + } + inline auto ListViewBase::IsItemClickEnabledProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IsItemClickEnabledProperty(); }); + } + inline auto ListViewBase::DataFetchSizeProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.DataFetchSizeProperty(); }); + } + inline auto ListViewBase::IncrementalLoadingThresholdProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IncrementalLoadingThresholdProperty(); }); + } + inline auto ListViewBase::IncrementalLoadingTriggerProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IncrementalLoadingTriggerProperty(); }); + } + inline auto ListViewBase::ShowsScrollingPlaceholdersProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.ShowsScrollingPlaceholdersProperty(); }); + } + inline auto ListViewBase::ReorderModeProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.ReorderModeProperty(); }); + } + inline auto ListViewBase::IsMultiSelectCheckBoxEnabledProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IsMultiSelectCheckBoxEnabledProperty(); }); + } + inline auto ListViewBase::SingleSelectionFollowsFocusProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.SingleSelectionFollowsFocusProperty(); }); + } + inline auto ListViewBase::SemanticZoomOwnerProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.SemanticZoomOwnerProperty(); }); + } + inline auto ListViewBase::IsActiveViewProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IsActiveViewProperty(); }); + } + inline auto ListViewBase::IsZoomedInViewProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.IsZoomedInViewProperty(); }); + } + inline auto ListViewBase::HeaderProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.HeaderProperty(); }); + } + inline auto ListViewBase::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto ListViewBase::HeaderTransitionsProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.HeaderTransitionsProperty(); }); + } + inline auto ListViewBase::FooterProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.FooterProperty(); }); + } + inline auto ListViewBase::FooterTemplateProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.FooterTemplateProperty(); }); + } + inline auto ListViewBase::FooterTransitionsProperty() + { + return impl::call_factory_cast([](IListViewBaseStatics const& f) { return f.FooterTransitionsProperty(); }); + } + inline ListViewHeaderItem::ListViewHeaderItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IListViewHeaderItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline ListViewItem::ListViewItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IListViewItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ListViewPersistenceHelper::GetRelativeScrollPosition(winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& listViewBase, winrt::Microsoft::UI::Xaml::Controls::ListViewItemToKeyHandler const& itemToKeyHandler) + { + return impl::call_factory([&](IListViewPersistenceHelperStatics const& f) { return f.GetRelativeScrollPosition(listViewBase, itemToKeyHandler); }); + } + inline auto ListViewPersistenceHelper::SetRelativeScrollPositionAsync(winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& listViewBase, param::hstring const& relativeScrollPosition, winrt::Microsoft::UI::Xaml::Controls::ListViewKeyToItemHandler const& keyToItemHandler) + { + return impl::call_factory([&](IListViewPersistenceHelperStatics const& f) { return f.SetRelativeScrollPositionAsync(listViewBase, relativeScrollPosition, keyToItemHandler); }); + } + inline MapControl::MapControl() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMapControlFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MapControl::LayersProperty() + { + return impl::call_factory_cast([](IMapControlStatics const& f) { return f.LayersProperty(); }); + } + inline auto MapControl::MapServiceTokenProperty() + { + return impl::call_factory_cast([](IMapControlStatics const& f) { return f.MapServiceTokenProperty(); }); + } + inline auto MapControl::CenterProperty() + { + return impl::call_factory_cast([](IMapControlStatics const& f) { return f.CenterProperty(); }); + } + inline auto MapControl::ZoomLevelProperty() + { + return impl::call_factory_cast([](IMapControlStatics const& f) { return f.ZoomLevelProperty(); }); + } + inline auto MapControl::InteractiveControlsVisibleProperty() + { + return impl::call_factory_cast([](IMapControlStatics const& f) { return f.InteractiveControlsVisibleProperty(); }); + } + inline MapElementsLayer::MapElementsLayer() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMapElementsLayerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MapElementsLayer::MapElementsProperty() + { + return impl::call_factory_cast([](IMapElementsLayerStatics const& f) { return f.MapElementsProperty(); }); + } + inline MapIcon::MapIcon() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMapIconFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MapIcon::LocationProperty() + { + return impl::call_factory_cast([](IMapIconStatics const& f) { return f.LocationProperty(); }); + } + inline MediaPlayerElement::MediaPlayerElement() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMediaPlayerElementFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MediaPlayerElement::SourceProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.SourceProperty(); }); + } + inline auto MediaPlayerElement::AreTransportControlsEnabledProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.AreTransportControlsEnabledProperty(); }); + } + inline auto MediaPlayerElement::PosterSourceProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.PosterSourceProperty(); }); + } + inline auto MediaPlayerElement::StretchProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.StretchProperty(); }); + } + inline auto MediaPlayerElement::AutoPlayProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.AutoPlayProperty(); }); + } + inline auto MediaPlayerElement::IsFullWindowProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.IsFullWindowProperty(); }); + } + inline auto MediaPlayerElement::MediaPlayerProperty() + { + return impl::call_factory_cast([](IMediaPlayerElementStatics const& f) { return f.MediaPlayerProperty(); }); + } + inline MediaPlayerPresenter::MediaPlayerPresenter() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMediaPlayerPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MediaPlayerPresenter::MediaPlayerProperty() + { + return impl::call_factory_cast([](IMediaPlayerPresenterStatics const& f) { return f.MediaPlayerProperty(); }); + } + inline auto MediaPlayerPresenter::StretchProperty() + { + return impl::call_factory_cast([](IMediaPlayerPresenterStatics const& f) { return f.StretchProperty(); }); + } + inline auto MediaPlayerPresenter::IsFullWindowProperty() + { + return impl::call_factory_cast([](IMediaPlayerPresenterStatics const& f) { return f.IsFullWindowProperty(); }); + } + inline MediaTransportControls::MediaTransportControls() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMediaTransportControlsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MediaTransportControls::IsZoomButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsZoomButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsZoomEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsZoomEnabledProperty(); }); + } + inline auto MediaTransportControls::IsFastForwardButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsFastForwardButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsFastForwardEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsFastForwardEnabledProperty(); }); + } + inline auto MediaTransportControls::IsFastRewindButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsFastRewindButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsFastRewindEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsFastRewindEnabledProperty(); }); + } + inline auto MediaTransportControls::IsStopButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsStopButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsStopEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsStopEnabledProperty(); }); + } + inline auto MediaTransportControls::IsVolumeButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsVolumeButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsVolumeEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsVolumeEnabledProperty(); }); + } + inline auto MediaTransportControls::IsPlaybackRateButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsPlaybackRateButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsPlaybackRateEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsPlaybackRateEnabledProperty(); }); + } + inline auto MediaTransportControls::IsSeekBarVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsSeekBarVisibleProperty(); }); + } + inline auto MediaTransportControls::IsSeekEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsSeekEnabledProperty(); }); + } + inline auto MediaTransportControls::IsCompactProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsCompactProperty(); }); + } + inline auto MediaTransportControls::IsSkipForwardButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsSkipForwardButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsSkipForwardEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsSkipForwardEnabledProperty(); }); + } + inline auto MediaTransportControls::IsSkipBackwardButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsSkipBackwardButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsSkipBackwardEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsSkipBackwardEnabledProperty(); }); + } + inline auto MediaTransportControls::IsNextTrackButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsNextTrackButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::IsPreviousTrackButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsPreviousTrackButtonVisibleProperty(); }); + } + inline auto MediaTransportControls::FastPlayFallbackBehaviourProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.FastPlayFallbackBehaviourProperty(); }); + } + inline auto MediaTransportControls::ShowAndHideAutomaticallyProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.ShowAndHideAutomaticallyProperty(); }); + } + inline auto MediaTransportControls::IsRepeatEnabledProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsRepeatEnabledProperty(); }); + } + inline auto MediaTransportControls::IsRepeatButtonVisibleProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsStatics const& f) { return f.IsRepeatButtonVisibleProperty(); }); + } + inline auto MediaTransportControlsHelper::DropoutOrderProperty() + { + return impl::call_factory_cast([](IMediaTransportControlsHelperStatics const& f) { return f.DropoutOrderProperty(); }); + } + inline auto MediaTransportControlsHelper::GetDropoutOrder(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IMediaTransportControlsHelperStatics const& f) { return f.GetDropoutOrder(element); }); + } + inline auto MediaTransportControlsHelper::SetDropoutOrder(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IReference const& value) + { + impl::call_factory([&](IMediaTransportControlsHelperStatics const& f) { return f.SetDropoutOrder(element, value); }); + } + inline MenuBar::MenuBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MenuBar::ItemsProperty() + { + return impl::call_factory_cast([](IMenuBarStatics const& f) { return f.ItemsProperty(); }); + } + inline MenuBarItem::MenuBarItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuBarItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MenuBarItem::TitleProperty() + { + return impl::call_factory_cast([](IMenuBarItemStatics const& f) { return f.TitleProperty(); }); + } + inline auto MenuBarItem::ItemsProperty() + { + return impl::call_factory_cast([](IMenuBarItemStatics const& f) { return f.ItemsProperty(); }); + } + inline MenuBarItemFlyout::MenuBarItemFlyout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuBarItemFlyoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline MenuFlyout::MenuFlyout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuFlyoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MenuFlyout::MenuFlyoutPresenterStyleProperty() + { + return impl::call_factory_cast([](IMenuFlyoutStatics const& f) { return f.MenuFlyoutPresenterStyleProperty(); }); + } + inline MenuFlyoutItem::MenuFlyoutItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuFlyoutItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MenuFlyoutItem::TextProperty() + { + return impl::call_factory_cast([](IMenuFlyoutItemStatics const& f) { return f.TextProperty(); }); + } + inline auto MenuFlyoutItem::CommandProperty() + { + return impl::call_factory_cast([](IMenuFlyoutItemStatics const& f) { return f.CommandProperty(); }); + } + inline auto MenuFlyoutItem::CommandParameterProperty() + { + return impl::call_factory_cast([](IMenuFlyoutItemStatics const& f) { return f.CommandParameterProperty(); }); + } + inline auto MenuFlyoutItem::IconProperty() + { + return impl::call_factory_cast([](IMenuFlyoutItemStatics const& f) { return f.IconProperty(); }); + } + inline auto MenuFlyoutItem::KeyboardAcceleratorTextOverrideProperty() + { + return impl::call_factory_cast([](IMenuFlyoutItemStatics const& f) { return f.KeyboardAcceleratorTextOverrideProperty(); }); + } + inline MenuFlyoutPresenter::MenuFlyoutPresenter() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuFlyoutPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto MenuFlyoutPresenter::IsDefaultShadowEnabledProperty() + { + return impl::call_factory_cast([](IMenuFlyoutPresenterStatics const& f) { return f.IsDefaultShadowEnabledProperty(); }); + } + inline auto MenuFlyoutPresenter::SystemBackdropProperty() + { + return impl::call_factory_cast([](IMenuFlyoutPresenterStatics2 const& f) { return f.SystemBackdropProperty(); }); + } + inline MenuFlyoutSeparator::MenuFlyoutSeparator() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IMenuFlyoutSeparatorFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline MenuFlyoutSubItem::MenuFlyoutSubItem() : + MenuFlyoutSubItem(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto MenuFlyoutSubItem::TextProperty() + { + return impl::call_factory_cast([](IMenuFlyoutSubItemStatics const& f) { return f.TextProperty(); }); + } + inline auto MenuFlyoutSubItem::IconProperty() + { + return impl::call_factory_cast([](IMenuFlyoutSubItemStatics const& f) { return f.IconProperty(); }); + } + inline NavigationView::NavigationView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INavigationViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto NavigationView::IsPaneOpenProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.IsPaneOpenProperty(); }); + } + inline auto NavigationView::CompactModeThresholdWidthProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.CompactModeThresholdWidthProperty(); }); + } + inline auto NavigationView::ExpandedModeThresholdWidthProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.ExpandedModeThresholdWidthProperty(); }); + } + inline auto NavigationView::FooterMenuItemsProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.FooterMenuItemsProperty(); }); + } + inline auto NavigationView::FooterMenuItemsSourceProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.FooterMenuItemsSourceProperty(); }); + } + inline auto NavigationView::PaneFooterProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.PaneFooterProperty(); }); + } + inline auto NavigationView::HeaderProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.HeaderProperty(); }); + } + inline auto NavigationView::HeaderTemplateProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto NavigationView::DisplayModeProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.DisplayModeProperty(); }); + } + inline auto NavigationView::IsSettingsVisibleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.IsSettingsVisibleProperty(); }); + } + inline auto NavigationView::IsPaneToggleButtonVisibleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.IsPaneToggleButtonVisibleProperty(); }); + } + inline auto NavigationView::AlwaysShowHeaderProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.AlwaysShowHeaderProperty(); }); + } + inline auto NavigationView::CompactPaneLengthProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.CompactPaneLengthProperty(); }); + } + inline auto NavigationView::OpenPaneLengthProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.OpenPaneLengthProperty(); }); + } + inline auto NavigationView::PaneToggleButtonStyleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.PaneToggleButtonStyleProperty(); }); + } + inline auto NavigationView::MenuItemsProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.MenuItemsProperty(); }); + } + inline auto NavigationView::MenuItemsSourceProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.MenuItemsSourceProperty(); }); + } + inline auto NavigationView::SelectedItemProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto NavigationView::SettingsItemProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.SettingsItemProperty(); }); + } + inline auto NavigationView::AutoSuggestBoxProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.AutoSuggestBoxProperty(); }); + } + inline auto NavigationView::MenuItemTemplateProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.MenuItemTemplateProperty(); }); + } + inline auto NavigationView::MenuItemTemplateSelectorProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.MenuItemTemplateSelectorProperty(); }); + } + inline auto NavigationView::MenuItemContainerStyleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.MenuItemContainerStyleProperty(); }); + } + inline auto NavigationView::MenuItemContainerStyleSelectorProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.MenuItemContainerStyleSelectorProperty(); }); + } + inline auto NavigationView::IsTitleBarAutoPaddingEnabledProperty() + { + return impl::call_factory_cast([](INavigationViewStatics const& f) { return f.IsTitleBarAutoPaddingEnabledProperty(); }); + } + inline auto NavigationView::IsBackButtonVisibleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.IsBackButtonVisibleProperty(); }); + } + inline auto NavigationView::IsBackEnabledProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.IsBackEnabledProperty(); }); + } + inline auto NavigationView::PaneTitleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.PaneTitleProperty(); }); + } + inline auto NavigationView::PaneDisplayModeProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.PaneDisplayModeProperty(); }); + } + inline auto NavigationView::PaneHeaderProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.PaneHeaderProperty(); }); + } + inline auto NavigationView::PaneCustomContentProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.PaneCustomContentProperty(); }); + } + inline auto NavigationView::ContentOverlayProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.ContentOverlayProperty(); }); + } + inline auto NavigationView::IsPaneVisibleProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.IsPaneVisibleProperty(); }); + } + inline auto NavigationView::SelectionFollowsFocusProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.SelectionFollowsFocusProperty(); }); + } + inline auto NavigationView::TemplateSettingsProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.TemplateSettingsProperty(); }); + } + inline auto NavigationView::ShoulderNavigationEnabledProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.ShoulderNavigationEnabledProperty(); }); + } + inline auto NavigationView::OverflowLabelModeProperty() + { + return impl::call_factory_cast([](INavigationViewStatics2 const& f) { return f.OverflowLabelModeProperty(); }); + } + inline NavigationViewItem::NavigationViewItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INavigationViewItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto NavigationViewItem::IconProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics const& f) { return f.IconProperty(); }); + } + inline auto NavigationViewItem::CompactPaneLengthProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics const& f) { return f.CompactPaneLengthProperty(); }); + } + inline auto NavigationViewItem::SelectsOnInvokedProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics2 const& f) { return f.SelectsOnInvokedProperty(); }); + } + inline auto NavigationViewItem::IsExpandedProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics2 const& f) { return f.IsExpandedProperty(); }); + } + inline auto NavigationViewItem::HasUnrealizedChildrenProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics2 const& f) { return f.HasUnrealizedChildrenProperty(); }); + } + inline auto NavigationViewItem::IsChildSelectedProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics2 const& f) { return f.IsChildSelectedProperty(); }); + } + inline auto NavigationViewItem::MenuItemsProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics2 const& f) { return f.MenuItemsProperty(); }); + } + inline auto NavigationViewItem::MenuItemsSourceProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics2 const& f) { return f.MenuItemsSourceProperty(); }); + } + inline auto NavigationViewItem::InfoBadgeProperty() + { + return impl::call_factory_cast([](INavigationViewItemStatics3 const& f) { return f.InfoBadgeProperty(); }); + } + inline auto NavigationViewItemBase::IsSelectedProperty() + { + return impl::call_factory_cast([](INavigationViewItemBaseStatics const& f) { return f.IsSelectedProperty(); }); + } + inline NavigationViewItemHeader::NavigationViewItemHeader() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INavigationViewItemHeaderFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline NavigationViewItemInvokedEventArgs::NavigationViewItemInvokedEventArgs() : + NavigationViewItemInvokedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline NavigationViewItemSeparator::NavigationViewItemSeparator() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INavigationViewItemSeparatorFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline NavigationViewTemplateSettings::NavigationViewTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INavigationViewTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto NavigationViewTemplateSettings::TopPaddingProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.TopPaddingProperty(); }); + } + inline auto NavigationViewTemplateSettings::OverflowButtonVisibilityProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.OverflowButtonVisibilityProperty(); }); + } + inline auto NavigationViewTemplateSettings::PaneToggleButtonVisibilityProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.PaneToggleButtonVisibilityProperty(); }); + } + inline auto NavigationViewTemplateSettings::BackButtonVisibilityProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.BackButtonVisibilityProperty(); }); + } + inline auto NavigationViewTemplateSettings::TopPaneVisibilityProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.TopPaneVisibilityProperty(); }); + } + inline auto NavigationViewTemplateSettings::LeftPaneVisibilityProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.LeftPaneVisibilityProperty(); }); + } + inline auto NavigationViewTemplateSettings::SingleSelectionFollowsFocusProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.SingleSelectionFollowsFocusProperty(); }); + } + inline auto NavigationViewTemplateSettings::PaneToggleButtonWidthProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.PaneToggleButtonWidthProperty(); }); + } + inline auto NavigationViewTemplateSettings::SmallerPaneToggleButtonWidthProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics const& f) { return f.SmallerPaneToggleButtonWidthProperty(); }); + } + inline auto NavigationViewTemplateSettings::OpenPaneLengthProperty() + { + return impl::call_factory_cast([](INavigationViewTemplateSettingsStatics2 const& f) { return f.OpenPaneLengthProperty(); }); + } + inline NonVirtualizingLayout::NonVirtualizingLayout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INonVirtualizingLayoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline NonVirtualizingLayoutContext::NonVirtualizingLayoutContext() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INonVirtualizingLayoutContextFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline NumberBox::NumberBox() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](INumberBoxFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto NumberBox::MinimumProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.MinimumProperty(); }); + } + inline auto NumberBox::MaximumProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.MaximumProperty(); }); + } + inline auto NumberBox::ValueProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.ValueProperty(); }); + } + inline auto NumberBox::SmallChangeProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.SmallChangeProperty(); }); + } + inline auto NumberBox::LargeChangeProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.LargeChangeProperty(); }); + } + inline auto NumberBox::TextProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.TextProperty(); }); + } + inline auto NumberBox::HeaderProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.HeaderProperty(); }); + } + inline auto NumberBox::HeaderTemplateProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto NumberBox::PlaceholderTextProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto NumberBox::SelectionFlyoutProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.SelectionFlyoutProperty(); }); + } + inline auto NumberBox::SelectionHighlightColorProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.SelectionHighlightColorProperty(); }); + } + inline auto NumberBox::TextReadingOrderProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.TextReadingOrderProperty(); }); + } + inline auto NumberBox::PreventKeyboardDisplayOnProgrammaticFocusProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.PreventKeyboardDisplayOnProgrammaticFocusProperty(); }); + } + inline auto NumberBox::DescriptionProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.DescriptionProperty(); }); + } + inline auto NumberBox::ValidationModeProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.ValidationModeProperty(); }); + } + inline auto NumberBox::SpinButtonPlacementModeProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.SpinButtonPlacementModeProperty(); }); + } + inline auto NumberBox::IsWrapEnabledProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.IsWrapEnabledProperty(); }); + } + inline auto NumberBox::AcceptsExpressionProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.AcceptsExpressionProperty(); }); + } + inline auto NumberBox::NumberFormatterProperty() + { + return impl::call_factory_cast([](INumberBoxStatics const& f) { return f.NumberFormatterProperty(); }); + } + inline Page::Page() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPageFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Page::FrameProperty() + { + return impl::call_factory_cast([](IPageStatics const& f) { return f.FrameProperty(); }); + } + inline auto Page::TopAppBarProperty() + { + return impl::call_factory_cast([](IPageStatics const& f) { return f.TopAppBarProperty(); }); + } + inline auto Page::BottomAppBarProperty() + { + return impl::call_factory_cast([](IPageStatics const& f) { return f.BottomAppBarProperty(); }); + } + inline auto Panel::BackgroundProperty() + { + return impl::call_factory_cast([](IPanelStatics const& f) { return f.BackgroundProperty(); }); + } + inline auto Panel::IsItemsHostProperty() + { + return impl::call_factory_cast([](IPanelStatics const& f) { return f.IsItemsHostProperty(); }); + } + inline auto Panel::ChildrenTransitionsProperty() + { + return impl::call_factory_cast([](IPanelStatics const& f) { return f.ChildrenTransitionsProperty(); }); + } + inline ParallaxView::ParallaxView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IParallaxViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ParallaxView::ChildProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.ChildProperty(); }); + } + inline auto ParallaxView::HorizontalSourceEndOffsetProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.HorizontalSourceEndOffsetProperty(); }); + } + inline auto ParallaxView::HorizontalSourceOffsetKindProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.HorizontalSourceOffsetKindProperty(); }); + } + inline auto ParallaxView::HorizontalSourceStartOffsetProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.HorizontalSourceStartOffsetProperty(); }); + } + inline auto ParallaxView::MaxHorizontalShiftRatioProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.MaxHorizontalShiftRatioProperty(); }); + } + inline auto ParallaxView::HorizontalShiftProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.HorizontalShiftProperty(); }); + } + inline auto ParallaxView::IsHorizontalShiftClampedProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.IsHorizontalShiftClampedProperty(); }); + } + inline auto ParallaxView::IsVerticalShiftClampedProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.IsVerticalShiftClampedProperty(); }); + } + inline auto ParallaxView::SourceProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.SourceProperty(); }); + } + inline auto ParallaxView::VerticalSourceEndOffsetProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.VerticalSourceEndOffsetProperty(); }); + } + inline auto ParallaxView::VerticalSourceOffsetKindProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.VerticalSourceOffsetKindProperty(); }); + } + inline auto ParallaxView::VerticalSourceStartOffsetProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.VerticalSourceStartOffsetProperty(); }); + } + inline auto ParallaxView::MaxVerticalShiftRatioProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.MaxVerticalShiftRatioProperty(); }); + } + inline auto ParallaxView::VerticalShiftProperty() + { + return impl::call_factory_cast([](IParallaxViewStatics const& f) { return f.VerticalShiftProperty(); }); + } + inline PasswordBox::PasswordBox() : + PasswordBox(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto PasswordBox::PasswordProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.PasswordProperty(); }); + } + inline auto PasswordBox::PasswordCharProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.PasswordCharProperty(); }); + } + inline auto PasswordBox::IsPasswordRevealButtonEnabledProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.IsPasswordRevealButtonEnabledProperty(); }); + } + inline auto PasswordBox::MaxLengthProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.MaxLengthProperty(); }); + } + inline auto PasswordBox::HeaderProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.HeaderProperty(); }); + } + inline auto PasswordBox::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto PasswordBox::PlaceholderTextProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto PasswordBox::SelectionHighlightColorProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.SelectionHighlightColorProperty(); }); + } + inline auto PasswordBox::PreventKeyboardDisplayOnProgrammaticFocusProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.PreventKeyboardDisplayOnProgrammaticFocusProperty(); }); + } + inline auto PasswordBox::PasswordRevealModeProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.PasswordRevealModeProperty(); }); + } + inline auto PasswordBox::TextReadingOrderProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.TextReadingOrderProperty(); }); + } + inline auto PasswordBox::InputScopeProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.InputScopeProperty(); }); + } + inline auto PasswordBox::CanPasteClipboardContentProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.CanPasteClipboardContentProperty(); }); + } + inline auto PasswordBox::SelectionFlyoutProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.SelectionFlyoutProperty(); }); + } + inline auto PasswordBox::DescriptionProperty() + { + return impl::call_factory_cast([](IPasswordBoxStatics const& f) { return f.DescriptionProperty(); }); + } + inline PathIcon::PathIcon() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPathIconFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto PathIcon::DataProperty() + { + return impl::call_factory_cast([](IPathIconStatics const& f) { return f.DataProperty(); }); + } + inline PathIconSource::PathIconSource() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPathIconSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto PathIconSource::DataProperty() + { + return impl::call_factory_cast([](IPathIconSourceStatics const& f) { return f.DataProperty(); }); + } + inline PersonPicture::PersonPicture() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPersonPictureFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto PersonPicture::BadgeNumberProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.BadgeNumberProperty(); }); + } + inline auto PersonPicture::BadgeGlyphProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.BadgeGlyphProperty(); }); + } + inline auto PersonPicture::BadgeImageSourceProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.BadgeImageSourceProperty(); }); + } + inline auto PersonPicture::BadgeTextProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.BadgeTextProperty(); }); + } + inline auto PersonPicture::IsGroupProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.IsGroupProperty(); }); + } + inline auto PersonPicture::ContactProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.ContactProperty(); }); + } + inline auto PersonPicture::DisplayNameProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.DisplayNameProperty(); }); + } + inline auto PersonPicture::InitialsProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.InitialsProperty(); }); + } + inline auto PersonPicture::PreferSmallImageProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.PreferSmallImageProperty(); }); + } + inline auto PersonPicture::ProfilePictureProperty() + { + return impl::call_factory_cast([](IPersonPictureStatics const& f) { return f.ProfilePictureProperty(); }); + } + inline PickerConfirmedEventArgs::PickerConfirmedEventArgs() : + PickerConfirmedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline PickerFlyout::PickerFlyout() : + PickerFlyout(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto PickerFlyout::ContentProperty() + { + return impl::call_factory_cast([](IPickerFlyoutStatics const& f) { return f.ContentProperty(); }); + } + inline auto PickerFlyout::ConfirmationButtonsVisibleProperty() + { + return impl::call_factory_cast([](IPickerFlyoutStatics const& f) { return f.ConfirmationButtonsVisibleProperty(); }); + } + inline PipsPager::PipsPager() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPipsPagerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto PipsPager::NumberOfPagesProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.NumberOfPagesProperty(); }); + } + inline auto PipsPager::SelectedPageIndexProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.SelectedPageIndexProperty(); }); + } + inline auto PipsPager::MaxVisiblePipsProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.MaxVisiblePipsProperty(); }); + } + inline auto PipsPager::OrientationProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.OrientationProperty(); }); + } + inline auto PipsPager::PreviousButtonVisibilityProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.PreviousButtonVisibilityProperty(); }); + } + inline auto PipsPager::NextButtonVisibilityProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.NextButtonVisibilityProperty(); }); + } + inline auto PipsPager::PreviousButtonStyleProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.PreviousButtonStyleProperty(); }); + } + inline auto PipsPager::NextButtonStyleProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.NextButtonStyleProperty(); }); + } + inline auto PipsPager::SelectedPipStyleProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.SelectedPipStyleProperty(); }); + } + inline auto PipsPager::NormalPipStyleProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics const& f) { return f.NormalPipStyleProperty(); }); + } + inline auto PipsPager::WrapModeProperty() + { + return impl::call_factory_cast([](IPipsPagerStatics2 const& f) { return f.WrapModeProperty(); }); + } + inline Pivot::Pivot() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPivotFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Pivot::TitleProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.TitleProperty(); }); + } + inline auto Pivot::TitleTemplateProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.TitleTemplateProperty(); }); + } + inline auto Pivot::LeftHeaderProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.LeftHeaderProperty(); }); + } + inline auto Pivot::LeftHeaderTemplateProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.LeftHeaderTemplateProperty(); }); + } + inline auto Pivot::RightHeaderProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.RightHeaderProperty(); }); + } + inline auto Pivot::RightHeaderTemplateProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.RightHeaderTemplateProperty(); }); + } + inline auto Pivot::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto Pivot::SelectedIndexProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.SelectedIndexProperty(); }); + } + inline auto Pivot::SelectedItemProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto Pivot::IsLockedProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.IsLockedProperty(); }); + } + inline auto Pivot::HeaderFocusVisualPlacementProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.HeaderFocusVisualPlacementProperty(); }); + } + inline auto Pivot::IsHeaderItemsCarouselEnabledProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.IsHeaderItemsCarouselEnabledProperty(); }); + } + inline auto Pivot::SlideInAnimationGroupProperty() + { + return impl::call_factory_cast([](IPivotStatics const& f) { return f.SlideInAnimationGroupProperty(); }); + } + inline auto Pivot::GetSlideInAnimationGroup(winrt::Microsoft::UI::Xaml::FrameworkElement const& element) + { + return impl::call_factory([&](IPivotStatics const& f) { return f.GetSlideInAnimationGroup(element); }); + } + inline auto Pivot::SetSlideInAnimationGroup(winrt::Microsoft::UI::Xaml::FrameworkElement const& element, winrt::Microsoft::UI::Xaml::Controls::PivotSlideInAnimationGroup const& value) + { + impl::call_factory([&](IPivotStatics const& f) { return f.SetSlideInAnimationGroup(element, value); }); + } + inline PivotItem::PivotItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPivotItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto PivotItem::HeaderProperty() + { + return impl::call_factory_cast([](IPivotItemStatics const& f) { return f.HeaderProperty(); }); + } + inline PivotItemEventArgs::PivotItemEventArgs() : + PivotItemEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ProgressBar::ProgressBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IProgressBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ProgressBar::IsIndeterminateProperty() + { + return impl::call_factory_cast([](IProgressBarStatics const& f) { return f.IsIndeterminateProperty(); }); + } + inline auto ProgressBar::ShowErrorProperty() + { + return impl::call_factory_cast([](IProgressBarStatics const& f) { return f.ShowErrorProperty(); }); + } + inline auto ProgressBar::ShowPausedProperty() + { + return impl::call_factory_cast([](IProgressBarStatics const& f) { return f.ShowPausedProperty(); }); + } + inline ProgressRing::ProgressRing() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IProgressRingFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ProgressRing::IsActiveProperty() + { + return impl::call_factory_cast([](IProgressRingStatics const& f) { return f.IsActiveProperty(); }); + } + inline auto ProgressRing::IsIndeterminateProperty() + { + return impl::call_factory_cast([](IProgressRingStatics const& f) { return f.IsIndeterminateProperty(); }); + } + inline auto ProgressRing::ValueProperty() + { + return impl::call_factory_cast([](IProgressRingStatics const& f) { return f.ValueProperty(); }); + } + inline auto ProgressRing::MinimumProperty() + { + return impl::call_factory_cast([](IProgressRingStatics const& f) { return f.MinimumProperty(); }); + } + inline auto ProgressRing::MaximumProperty() + { + return impl::call_factory_cast([](IProgressRingStatics const& f) { return f.MaximumProperty(); }); + } + inline RadioButton::RadioButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRadioButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RadioButton::GroupNameProperty() + { + return impl::call_factory_cast([](IRadioButtonStatics const& f) { return f.GroupNameProperty(); }); + } + inline RadioButtons::RadioButtons() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRadioButtonsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RadioButtons::ItemsSourceProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.ItemsSourceProperty(); }); + } + inline auto RadioButtons::ItemsProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.ItemsProperty(); }); + } + inline auto RadioButtons::ItemTemplateProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.ItemTemplateProperty(); }); + } + inline auto RadioButtons::SelectedIndexProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.SelectedIndexProperty(); }); + } + inline auto RadioButtons::SelectedItemProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto RadioButtons::MaxColumnsProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.MaxColumnsProperty(); }); + } + inline auto RadioButtons::HeaderProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.HeaderProperty(); }); + } + inline auto RadioButtons::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IRadioButtonsStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline RadioMenuFlyoutItem::RadioMenuFlyoutItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRadioMenuFlyoutItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RadioMenuFlyoutItem::IsCheckedProperty() + { + return impl::call_factory_cast([](IRadioMenuFlyoutItemStatics const& f) { return f.IsCheckedProperty(); }); + } + inline auto RadioMenuFlyoutItem::GroupNameProperty() + { + return impl::call_factory_cast([](IRadioMenuFlyoutItemStatics const& f) { return f.GroupNameProperty(); }); + } + inline auto RadioMenuFlyoutItem::AreCheckStatesEnabledProperty() + { + return impl::call_factory_cast([](IRadioMenuFlyoutItemStatics2 const& f) { return f.AreCheckStatesEnabledProperty(); }); + } + inline auto RadioMenuFlyoutItem::SetAreCheckStatesEnabled(winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutSubItem const& object, bool value) + { + impl::call_factory([&](IRadioMenuFlyoutItemStatics2 const& f) { return f.SetAreCheckStatesEnabled(object, value); }); + } + inline auto RadioMenuFlyoutItem::GetAreCheckStatesEnabled(winrt::Microsoft::UI::Xaml::Controls::MenuFlyoutSubItem const& object) + { + return impl::call_factory([&](IRadioMenuFlyoutItemStatics2 const& f) { return f.GetAreCheckStatesEnabled(object); }); + } + inline RatingControl::RatingControl() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRatingControlFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RatingControl::CaptionProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.CaptionProperty(); }); + } + inline auto RatingControl::InitialSetValueProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.InitialSetValueProperty(); }); + } + inline auto RatingControl::IsClearEnabledProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.IsClearEnabledProperty(); }); + } + inline auto RatingControl::IsReadOnlyProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.IsReadOnlyProperty(); }); + } + inline auto RatingControl::MaxRatingProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.MaxRatingProperty(); }); + } + inline auto RatingControl::PlaceholderValueProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.PlaceholderValueProperty(); }); + } + inline auto RatingControl::ItemInfoProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.ItemInfoProperty(); }); + } + inline auto RatingControl::ValueProperty() + { + return impl::call_factory_cast([](IRatingControlStatics const& f) { return f.ValueProperty(); }); + } + inline RatingItemFontInfo::RatingItemFontInfo() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRatingItemFontInfoFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RatingItemFontInfo::DisabledGlyphProperty() + { + return impl::call_factory_cast([](IRatingItemFontInfoStatics const& f) { return f.DisabledGlyphProperty(); }); + } + inline auto RatingItemFontInfo::GlyphProperty() + { + return impl::call_factory_cast([](IRatingItemFontInfoStatics const& f) { return f.GlyphProperty(); }); + } + inline auto RatingItemFontInfo::PlaceholderGlyphProperty() + { + return impl::call_factory_cast([](IRatingItemFontInfoStatics const& f) { return f.PlaceholderGlyphProperty(); }); + } + inline auto RatingItemFontInfo::PointerOverGlyphProperty() + { + return impl::call_factory_cast([](IRatingItemFontInfoStatics const& f) { return f.PointerOverGlyphProperty(); }); + } + inline auto RatingItemFontInfo::PointerOverPlaceholderGlyphProperty() + { + return impl::call_factory_cast([](IRatingItemFontInfoStatics const& f) { return f.PointerOverPlaceholderGlyphProperty(); }); + } + inline auto RatingItemFontInfo::UnsetGlyphProperty() + { + return impl::call_factory_cast([](IRatingItemFontInfoStatics const& f) { return f.UnsetGlyphProperty(); }); + } + inline RatingItemImageInfo::RatingItemImageInfo() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRatingItemImageInfoFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RatingItemImageInfo::DisabledImageProperty() + { + return impl::call_factory_cast([](IRatingItemImageInfoStatics const& f) { return f.DisabledImageProperty(); }); + } + inline auto RatingItemImageInfo::ImageProperty() + { + return impl::call_factory_cast([](IRatingItemImageInfoStatics const& f) { return f.ImageProperty(); }); + } + inline auto RatingItemImageInfo::PlaceholderImageProperty() + { + return impl::call_factory_cast([](IRatingItemImageInfoStatics const& f) { return f.PlaceholderImageProperty(); }); + } + inline auto RatingItemImageInfo::PointerOverImageProperty() + { + return impl::call_factory_cast([](IRatingItemImageInfoStatics const& f) { return f.PointerOverImageProperty(); }); + } + inline auto RatingItemImageInfo::PointerOverPlaceholderImageProperty() + { + return impl::call_factory_cast([](IRatingItemImageInfoStatics const& f) { return f.PointerOverPlaceholderImageProperty(); }); + } + inline auto RatingItemImageInfo::UnsetImageProperty() + { + return impl::call_factory_cast([](IRatingItemImageInfoStatics const& f) { return f.UnsetImageProperty(); }); + } + inline RatingItemInfo::RatingItemInfo() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRatingItemInfoFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline RefreshContainer::RefreshContainer() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRefreshContainerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RefreshContainer::VisualizerProperty() + { + return impl::call_factory_cast([](IRefreshContainerStatics const& f) { return f.VisualizerProperty(); }); + } + inline auto RefreshContainer::PullDirectionProperty() + { + return impl::call_factory_cast([](IRefreshContainerStatics const& f) { return f.PullDirectionProperty(); }); + } + inline RefreshVisualizer::RefreshVisualizer() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRefreshVisualizerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RefreshVisualizer::InfoProviderProperty() + { + return impl::call_factory_cast([](IRefreshVisualizerStatics const& f) { return f.InfoProviderProperty(); }); + } + inline auto RefreshVisualizer::OrientationProperty() + { + return impl::call_factory_cast([](IRefreshVisualizerStatics const& f) { return f.OrientationProperty(); }); + } + inline auto RefreshVisualizer::ContentProperty() + { + return impl::call_factory_cast([](IRefreshVisualizerStatics const& f) { return f.ContentProperty(); }); + } + inline auto RefreshVisualizer::StateProperty() + { + return impl::call_factory_cast([](IRefreshVisualizerStatics const& f) { return f.StateProperty(); }); + } + inline RelativePanel::RelativePanel() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRelativePanelFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RelativePanel::BackgroundSizingProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.BackgroundSizingProperty(); }); + } + inline auto RelativePanel::LeftOfProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.LeftOfProperty(); }); + } + inline auto RelativePanel::GetLeftOf(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetLeftOf(element); }); + } + inline auto RelativePanel::SetLeftOf(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetLeftOf(element, value); }); + } + inline auto RelativePanel::AboveProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AboveProperty(); }); + } + inline auto RelativePanel::GetAbove(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAbove(element); }); + } + inline auto RelativePanel::SetAbove(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAbove(element, value); }); + } + inline auto RelativePanel::RightOfProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.RightOfProperty(); }); + } + inline auto RelativePanel::GetRightOf(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetRightOf(element); }); + } + inline auto RelativePanel::SetRightOf(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetRightOf(element, value); }); + } + inline auto RelativePanel::BelowProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.BelowProperty(); }); + } + inline auto RelativePanel::GetBelow(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetBelow(element); }); + } + inline auto RelativePanel::SetBelow(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetBelow(element, value); }); + } + inline auto RelativePanel::AlignHorizontalCenterWithProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignHorizontalCenterWithProperty(); }); + } + inline auto RelativePanel::GetAlignHorizontalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignHorizontalCenterWith(element); }); + } + inline auto RelativePanel::SetAlignHorizontalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignHorizontalCenterWith(element, value); }); + } + inline auto RelativePanel::AlignVerticalCenterWithProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignVerticalCenterWithProperty(); }); + } + inline auto RelativePanel::GetAlignVerticalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignVerticalCenterWith(element); }); + } + inline auto RelativePanel::SetAlignVerticalCenterWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignVerticalCenterWith(element, value); }); + } + inline auto RelativePanel::AlignLeftWithProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignLeftWithProperty(); }); + } + inline auto RelativePanel::GetAlignLeftWith(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignLeftWith(element); }); + } + inline auto RelativePanel::SetAlignLeftWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignLeftWith(element, value); }); + } + inline auto RelativePanel::AlignTopWithProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignTopWithProperty(); }); + } + inline auto RelativePanel::GetAlignTopWith(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignTopWith(element); }); + } + inline auto RelativePanel::SetAlignTopWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignTopWith(element, value); }); + } + inline auto RelativePanel::AlignRightWithProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignRightWithProperty(); }); + } + inline auto RelativePanel::GetAlignRightWith(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignRightWith(element); }); + } + inline auto RelativePanel::SetAlignRightWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignRightWith(element, value); }); + } + inline auto RelativePanel::AlignBottomWithProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignBottomWithProperty(); }); + } + inline auto RelativePanel::GetAlignBottomWith(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignBottomWith(element); }); + } + inline auto RelativePanel::SetAlignBottomWith(winrt::Microsoft::UI::Xaml::UIElement const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignBottomWith(element, value); }); + } + inline auto RelativePanel::AlignLeftWithPanelProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignLeftWithPanelProperty(); }); + } + inline auto RelativePanel::GetAlignLeftWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignLeftWithPanel(element); }); + } + inline auto RelativePanel::SetAlignLeftWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignLeftWithPanel(element, value); }); + } + inline auto RelativePanel::AlignTopWithPanelProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignTopWithPanelProperty(); }); + } + inline auto RelativePanel::GetAlignTopWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignTopWithPanel(element); }); + } + inline auto RelativePanel::SetAlignTopWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignTopWithPanel(element, value); }); + } + inline auto RelativePanel::AlignRightWithPanelProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignRightWithPanelProperty(); }); + } + inline auto RelativePanel::GetAlignRightWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignRightWithPanel(element); }); + } + inline auto RelativePanel::SetAlignRightWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignRightWithPanel(element, value); }); + } + inline auto RelativePanel::AlignBottomWithPanelProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignBottomWithPanelProperty(); }); + } + inline auto RelativePanel::GetAlignBottomWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignBottomWithPanel(element); }); + } + inline auto RelativePanel::SetAlignBottomWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignBottomWithPanel(element, value); }); + } + inline auto RelativePanel::AlignHorizontalCenterWithPanelProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignHorizontalCenterWithPanelProperty(); }); + } + inline auto RelativePanel::GetAlignHorizontalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignHorizontalCenterWithPanel(element); }); + } + inline auto RelativePanel::SetAlignHorizontalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignHorizontalCenterWithPanel(element, value); }); + } + inline auto RelativePanel::AlignVerticalCenterWithPanelProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.AlignVerticalCenterWithPanelProperty(); }); + } + inline auto RelativePanel::GetAlignVerticalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IRelativePanelStatics const& f) { return f.GetAlignVerticalCenterWithPanel(element); }); + } + inline auto RelativePanel::SetAlignVerticalCenterWithPanel(winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) + { + impl::call_factory([&](IRelativePanelStatics const& f) { return f.SetAlignVerticalCenterWithPanel(element, value); }); + } + inline auto RelativePanel::BorderBrushProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.BorderBrushProperty(); }); + } + inline auto RelativePanel::BorderThicknessProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.BorderThicknessProperty(); }); + } + inline auto RelativePanel::CornerRadiusProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.CornerRadiusProperty(); }); + } + inline auto RelativePanel::PaddingProperty() + { + return impl::call_factory_cast([](IRelativePanelStatics const& f) { return f.PaddingProperty(); }); + } + inline RevealListViewItemPresenter::RevealListViewItemPresenter() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRevealListViewItemPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline RichEditBox::RichEditBox() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IRichEditBoxFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto RichEditBox::IsReadOnlyProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.IsReadOnlyProperty(); }); + } + inline auto RichEditBox::AcceptsReturnProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.AcceptsReturnProperty(); }); + } + inline auto RichEditBox::TextAlignmentProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.TextAlignmentProperty(); }); + } + inline auto RichEditBox::TextWrappingProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.TextWrappingProperty(); }); + } + inline auto RichEditBox::IsSpellCheckEnabledProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.IsSpellCheckEnabledProperty(); }); + } + inline auto RichEditBox::IsTextPredictionEnabledProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.IsTextPredictionEnabledProperty(); }); + } + inline auto RichEditBox::InputScopeProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.InputScopeProperty(); }); + } + inline auto RichEditBox::HeaderProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.HeaderProperty(); }); + } + inline auto RichEditBox::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto RichEditBox::PlaceholderTextProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto RichEditBox::SelectionHighlightColorProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.SelectionHighlightColorProperty(); }); + } + inline auto RichEditBox::PreventKeyboardDisplayOnProgrammaticFocusProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.PreventKeyboardDisplayOnProgrammaticFocusProperty(); }); + } + inline auto RichEditBox::IsColorFontEnabledProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.IsColorFontEnabledProperty(); }); + } + inline auto RichEditBox::SelectionHighlightColorWhenNotFocusedProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.SelectionHighlightColorWhenNotFocusedProperty(); }); + } + inline auto RichEditBox::MaxLengthProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.MaxLengthProperty(); }); + } + inline auto RichEditBox::HorizontalTextAlignmentProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.HorizontalTextAlignmentProperty(); }); + } + inline auto RichEditBox::CharacterCasingProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.CharacterCasingProperty(); }); + } + inline auto RichEditBox::DisabledFormattingAcceleratorsProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.DisabledFormattingAcceleratorsProperty(); }); + } + inline auto RichEditBox::SelectionFlyoutProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.SelectionFlyoutProperty(); }); + } + inline auto RichEditBox::ProofingMenuFlyoutProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.ProofingMenuFlyoutProperty(); }); + } + inline auto RichEditBox::DescriptionProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.DescriptionProperty(); }); + } + inline auto RichEditBox::DesiredCandidateWindowAlignmentProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.DesiredCandidateWindowAlignmentProperty(); }); + } + inline auto RichEditBox::TextReadingOrderProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.TextReadingOrderProperty(); }); + } + inline auto RichEditBox::ClipboardCopyFormatProperty() + { + return impl::call_factory_cast([](IRichEditBoxStatics const& f) { return f.ClipboardCopyFormatProperty(); }); + } + inline RichTextBlock::RichTextBlock() : + RichTextBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto RichTextBlock::FontSizeProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto RichTextBlock::FontFamilyProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto RichTextBlock::FontWeightProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto RichTextBlock::FontStyleProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto RichTextBlock::FontStretchProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.FontStretchProperty(); }); + } + inline auto RichTextBlock::ForegroundProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto RichTextBlock::TextWrappingProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextWrappingProperty(); }); + } + inline auto RichTextBlock::TextTrimmingProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextTrimmingProperty(); }); + } + inline auto RichTextBlock::TextAlignmentProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextAlignmentProperty(); }); + } + inline auto RichTextBlock::PaddingProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.PaddingProperty(); }); + } + inline auto RichTextBlock::LineHeightProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.LineHeightProperty(); }); + } + inline auto RichTextBlock::LineStackingStrategyProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.LineStackingStrategyProperty(); }); + } + inline auto RichTextBlock::CharacterSpacingProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.CharacterSpacingProperty(); }); + } + inline auto RichTextBlock::OverflowContentTargetProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.OverflowContentTargetProperty(); }); + } + inline auto RichTextBlock::IsTextSelectionEnabledProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.IsTextSelectionEnabledProperty(); }); + } + inline auto RichTextBlock::HasOverflowContentProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.HasOverflowContentProperty(); }); + } + inline auto RichTextBlock::SelectedTextProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.SelectedTextProperty(); }); + } + inline auto RichTextBlock::MaxLinesProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.MaxLinesProperty(); }); + } + inline auto RichTextBlock::TextLineBoundsProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextLineBoundsProperty(); }); + } + inline auto RichTextBlock::SelectionHighlightColorProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.SelectionHighlightColorProperty(); }); + } + inline auto RichTextBlock::OpticalMarginAlignmentProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.OpticalMarginAlignmentProperty(); }); + } + inline auto RichTextBlock::IsColorFontEnabledProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.IsColorFontEnabledProperty(); }); + } + inline auto RichTextBlock::TextReadingOrderProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextReadingOrderProperty(); }); + } + inline auto RichTextBlock::IsTextScaleFactorEnabledProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.IsTextScaleFactorEnabledProperty(); }); + } + inline auto RichTextBlock::TextDecorationsProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextDecorationsProperty(); }); + } + inline auto RichTextBlock::IsTextTrimmedProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.IsTextTrimmedProperty(); }); + } + inline auto RichTextBlock::HorizontalTextAlignmentProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.HorizontalTextAlignmentProperty(); }); + } + inline auto RichTextBlock::SelectionFlyoutProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.SelectionFlyoutProperty(); }); + } + inline auto RichTextBlock::TextIndentProperty() + { + return impl::call_factory_cast([](IRichTextBlockStatics const& f) { return f.TextIndentProperty(); }); + } + inline RichTextBlockOverflow::RichTextBlockOverflow() : + RichTextBlockOverflow(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto RichTextBlockOverflow::OverflowContentTargetProperty() + { + return impl::call_factory_cast([](IRichTextBlockOverflowStatics const& f) { return f.OverflowContentTargetProperty(); }); + } + inline auto RichTextBlockOverflow::PaddingProperty() + { + return impl::call_factory_cast([](IRichTextBlockOverflowStatics const& f) { return f.PaddingProperty(); }); + } + inline auto RichTextBlockOverflow::HasOverflowContentProperty() + { + return impl::call_factory_cast([](IRichTextBlockOverflowStatics const& f) { return f.HasOverflowContentProperty(); }); + } + inline auto RichTextBlockOverflow::MaxLinesProperty() + { + return impl::call_factory_cast([](IRichTextBlockOverflowStatics const& f) { return f.MaxLinesProperty(); }); + } + inline auto RichTextBlockOverflow::IsTextTrimmedProperty() + { + return impl::call_factory_cast([](IRichTextBlockOverflowStatics const& f) { return f.IsTextTrimmedProperty(); }); + } + inline RowDefinition::RowDefinition() : + RowDefinition(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto RowDefinition::HeightProperty() + { + return impl::call_factory_cast([](IRowDefinitionStatics const& f) { return f.HeightProperty(); }); + } + inline auto RowDefinition::MaxHeightProperty() + { + return impl::call_factory_cast([](IRowDefinitionStatics const& f) { return f.MaxHeightProperty(); }); + } + inline auto RowDefinition::MinHeightProperty() + { + return impl::call_factory_cast([](IRowDefinitionStatics const& f) { return f.MinHeightProperty(); }); + } + inline ScrollContentPresenter::ScrollContentPresenter() : + ScrollContentPresenter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ScrollContentPresenter::CanContentRenderOutsideBoundsProperty() + { + return impl::call_factory_cast([](IScrollContentPresenterStatics const& f) { return f.CanContentRenderOutsideBoundsProperty(); }); + } + inline auto ScrollContentPresenter::SizesContentToTemplatedParentProperty() + { + return impl::call_factory_cast([](IScrollContentPresenterStatics const& f) { return f.SizesContentToTemplatedParentProperty(); }); + } + inline ScrollView::ScrollView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IScrollViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ScrollView::ContentProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ContentProperty(); }); + } + inline auto ScrollView::ScrollPresenterProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ScrollPresenterProperty(); }); + } + inline auto ScrollView::HorizontalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.HorizontalScrollBarVisibilityProperty(); }); + } + inline auto ScrollView::VerticalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.VerticalScrollBarVisibilityProperty(); }); + } + inline auto ScrollView::ContentOrientationProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ContentOrientationProperty(); }); + } + inline auto ScrollView::HorizontalScrollChainModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.HorizontalScrollChainModeProperty(); }); + } + inline auto ScrollView::VerticalScrollChainModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.VerticalScrollChainModeProperty(); }); + } + inline auto ScrollView::HorizontalScrollRailModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.HorizontalScrollRailModeProperty(); }); + } + inline auto ScrollView::VerticalScrollRailModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.VerticalScrollRailModeProperty(); }); + } + inline auto ScrollView::HorizontalScrollModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.HorizontalScrollModeProperty(); }); + } + inline auto ScrollView::VerticalScrollModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.VerticalScrollModeProperty(); }); + } + inline auto ScrollView::ComputedHorizontalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ComputedHorizontalScrollBarVisibilityProperty(); }); + } + inline auto ScrollView::ComputedVerticalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ComputedVerticalScrollBarVisibilityProperty(); }); + } + inline auto ScrollView::ComputedHorizontalScrollModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ComputedHorizontalScrollModeProperty(); }); + } + inline auto ScrollView::ComputedVerticalScrollModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ComputedVerticalScrollModeProperty(); }); + } + inline auto ScrollView::ZoomChainModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ZoomChainModeProperty(); }); + } + inline auto ScrollView::ZoomModeProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.ZoomModeProperty(); }); + } + inline auto ScrollView::IgnoredInputKindsProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.IgnoredInputKindsProperty(); }); + } + inline auto ScrollView::MinZoomFactorProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.MinZoomFactorProperty(); }); + } + inline auto ScrollView::MaxZoomFactorProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.MaxZoomFactorProperty(); }); + } + inline auto ScrollView::HorizontalAnchorRatioProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.HorizontalAnchorRatioProperty(); }); + } + inline auto ScrollView::VerticalAnchorRatioProperty() + { + return impl::call_factory_cast([](IScrollViewStatics const& f) { return f.VerticalAnchorRatioProperty(); }); + } + inline ScrollViewer::ScrollViewer() : + ScrollViewer(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ScrollViewer::HorizontalSnapPointsAlignmentProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.HorizontalSnapPointsAlignmentProperty(); }); + } + inline auto ScrollViewer::VerticalSnapPointsAlignmentProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.VerticalSnapPointsAlignmentProperty(); }); + } + inline auto ScrollViewer::HorizontalSnapPointsTypeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.HorizontalSnapPointsTypeProperty(); }); + } + inline auto ScrollViewer::VerticalSnapPointsTypeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.VerticalSnapPointsTypeProperty(); }); + } + inline auto ScrollViewer::ZoomSnapPointsTypeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ZoomSnapPointsTypeProperty(); }); + } + inline auto ScrollViewer::HorizontalOffsetProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.HorizontalOffsetProperty(); }); + } + inline auto ScrollViewer::ViewportWidthProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ViewportWidthProperty(); }); + } + inline auto ScrollViewer::ScrollableWidthProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ScrollableWidthProperty(); }); + } + inline auto ScrollViewer::ComputedHorizontalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ComputedHorizontalScrollBarVisibilityProperty(); }); + } + inline auto ScrollViewer::ExtentWidthProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ExtentWidthProperty(); }); + } + inline auto ScrollViewer::VerticalOffsetProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.VerticalOffsetProperty(); }); + } + inline auto ScrollViewer::ViewportHeightProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ViewportHeightProperty(); }); + } + inline auto ScrollViewer::ScrollableHeightProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ScrollableHeightProperty(); }); + } + inline auto ScrollViewer::ComputedVerticalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ComputedVerticalScrollBarVisibilityProperty(); }); + } + inline auto ScrollViewer::ExtentHeightProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ExtentHeightProperty(); }); + } + inline auto ScrollViewer::MinZoomFactorProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.MinZoomFactorProperty(); }); + } + inline auto ScrollViewer::MaxZoomFactorProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.MaxZoomFactorProperty(); }); + } + inline auto ScrollViewer::ZoomFactorProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ZoomFactorProperty(); }); + } + inline auto ScrollViewer::ZoomSnapPointsProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ZoomSnapPointsProperty(); }); + } + inline auto ScrollViewer::TopLeftHeaderProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.TopLeftHeaderProperty(); }); + } + inline auto ScrollViewer::LeftHeaderProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.LeftHeaderProperty(); }); + } + inline auto ScrollViewer::TopHeaderProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.TopHeaderProperty(); }); + } + inline auto ScrollViewer::ReduceViewportForCoreInputViewOcclusionsProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ReduceViewportForCoreInputViewOcclusionsProperty(); }); + } + inline auto ScrollViewer::HorizontalAnchorRatioProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.HorizontalAnchorRatioProperty(); }); + } + inline auto ScrollViewer::VerticalAnchorRatioProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.VerticalAnchorRatioProperty(); }); + } + inline auto ScrollViewer::HorizontalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.HorizontalScrollBarVisibilityProperty(); }); + } + inline auto ScrollViewer::GetHorizontalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetHorizontalScrollBarVisibility(element); }); + } + inline auto ScrollViewer::SetHorizontalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility const& horizontalScrollBarVisibility) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetHorizontalScrollBarVisibility(element, horizontalScrollBarVisibility); }); + } + inline auto ScrollViewer::VerticalScrollBarVisibilityProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.VerticalScrollBarVisibilityProperty(); }); + } + inline auto ScrollViewer::GetVerticalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetVerticalScrollBarVisibility(element); }); + } + inline auto ScrollViewer::SetVerticalScrollBarVisibility(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollBarVisibility const& verticalScrollBarVisibility) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetVerticalScrollBarVisibility(element, verticalScrollBarVisibility); }); + } + inline auto ScrollViewer::IsHorizontalRailEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsHorizontalRailEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsHorizontalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsHorizontalRailEnabled(element); }); + } + inline auto ScrollViewer::SetIsHorizontalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isHorizontalRailEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsHorizontalRailEnabled(element, isHorizontalRailEnabled); }); + } + inline auto ScrollViewer::IsVerticalRailEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsVerticalRailEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsVerticalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsVerticalRailEnabled(element); }); + } + inline auto ScrollViewer::SetIsVerticalRailEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isVerticalRailEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsVerticalRailEnabled(element, isVerticalRailEnabled); }); + } + inline auto ScrollViewer::IsHorizontalScrollChainingEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsHorizontalScrollChainingEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsHorizontalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsHorizontalScrollChainingEnabled(element); }); + } + inline auto ScrollViewer::SetIsHorizontalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isHorizontalScrollChainingEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsHorizontalScrollChainingEnabled(element, isHorizontalScrollChainingEnabled); }); + } + inline auto ScrollViewer::IsVerticalScrollChainingEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsVerticalScrollChainingEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsVerticalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsVerticalScrollChainingEnabled(element); }); + } + inline auto ScrollViewer::SetIsVerticalScrollChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isVerticalScrollChainingEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsVerticalScrollChainingEnabled(element, isVerticalScrollChainingEnabled); }); + } + inline auto ScrollViewer::IsZoomChainingEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsZoomChainingEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsZoomChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsZoomChainingEnabled(element); }); + } + inline auto ScrollViewer::SetIsZoomChainingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isZoomChainingEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsZoomChainingEnabled(element, isZoomChainingEnabled); }); + } + inline auto ScrollViewer::IsScrollInertiaEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsScrollInertiaEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsScrollInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsScrollInertiaEnabled(element); }); + } + inline auto ScrollViewer::SetIsScrollInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isScrollInertiaEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsScrollInertiaEnabled(element, isScrollInertiaEnabled); }); + } + inline auto ScrollViewer::IsZoomInertiaEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsZoomInertiaEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsZoomInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsZoomInertiaEnabled(element); }); + } + inline auto ScrollViewer::SetIsZoomInertiaEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isZoomInertiaEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsZoomInertiaEnabled(element, isZoomInertiaEnabled); }); + } + inline auto ScrollViewer::HorizontalScrollModeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.HorizontalScrollModeProperty(); }); + } + inline auto ScrollViewer::GetHorizontalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetHorizontalScrollMode(element); }); + } + inline auto ScrollViewer::SetHorizontalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollMode const& horizontalScrollMode) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetHorizontalScrollMode(element, horizontalScrollMode); }); + } + inline auto ScrollViewer::VerticalScrollModeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.VerticalScrollModeProperty(); }); + } + inline auto ScrollViewer::GetVerticalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetVerticalScrollMode(element); }); + } + inline auto ScrollViewer::SetVerticalScrollMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ScrollMode const& verticalScrollMode) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetVerticalScrollMode(element, verticalScrollMode); }); + } + inline auto ScrollViewer::ZoomModeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.ZoomModeProperty(); }); + } + inline auto ScrollViewer::GetZoomMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetZoomMode(element); }); + } + inline auto ScrollViewer::SetZoomMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::ZoomMode const& zoomMode) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetZoomMode(element, zoomMode); }); + } + inline auto ScrollViewer::CanContentRenderOutsideBoundsProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.CanContentRenderOutsideBoundsProperty(); }); + } + inline auto ScrollViewer::GetCanContentRenderOutsideBounds(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetCanContentRenderOutsideBounds(element); }); + } + inline auto ScrollViewer::SetCanContentRenderOutsideBounds(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool canContentRenderOutsideBounds) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetCanContentRenderOutsideBounds(element, canContentRenderOutsideBounds); }); + } + inline auto ScrollViewer::IsDeferredScrollingEnabledProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.IsDeferredScrollingEnabledProperty(); }); + } + inline auto ScrollViewer::GetIsDeferredScrollingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetIsDeferredScrollingEnabled(element); }); + } + inline auto ScrollViewer::SetIsDeferredScrollingEnabled(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool isDeferredScrollingEnabled) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetIsDeferredScrollingEnabled(element, isDeferredScrollingEnabled); }); + } + inline auto ScrollViewer::BringIntoViewOnFocusChangeProperty() + { + return impl::call_factory_cast([](IScrollViewerStatics const& f) { return f.BringIntoViewOnFocusChangeProperty(); }); + } + inline auto ScrollViewer::GetBringIntoViewOnFocusChange(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IScrollViewerStatics const& f) { return f.GetBringIntoViewOnFocusChange(element); }); + } + inline auto ScrollViewer::SetBringIntoViewOnFocusChange(winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool bringIntoViewOnFocusChange) + { + impl::call_factory([&](IScrollViewerStatics const& f) { return f.SetBringIntoViewOnFocusChange(element, bringIntoViewOnFocusChange); }); + } + inline ScrollViewerViewChangedEventArgs::ScrollViewerViewChangedEventArgs() : + ScrollViewerViewChangedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline ScrollingScrollOptions::ScrollingScrollOptions(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IScrollingScrollOptionsFactory const& f) { return f.CreateInstance(animationMode, baseInterface, innerInterface); }); + } + inline ScrollingScrollOptions::ScrollingScrollOptions(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& snapPointsMode) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IScrollingScrollOptionsFactory const& f) { return f.CreateInstance2(animationMode, snapPointsMode, baseInterface, innerInterface); }); + } + inline ScrollingZoomOptions::ScrollingZoomOptions(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IScrollingZoomOptionsFactory const& f) { return f.CreateInstance(animationMode, baseInterface, innerInterface); }); + } + inline ScrollingZoomOptions::ScrollingZoomOptions(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& snapPointsMode) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IScrollingZoomOptionsFactory const& f) { return f.CreateInstance2(animationMode, snapPointsMode, baseInterface, innerInterface); }); + } + inline SelectionChangedEventArgs::SelectionChangedEventArgs(param::vector const& removedItems, param::vector const& addedItems) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISelectionChangedEventArgsFactory const& f) { return f.CreateInstanceWithRemovedItemsAndAddedItems(removedItems, addedItems, baseInterface, innerInterface); }); + } + inline SelectorBar::SelectorBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISelectorBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SelectorBar::ItemsProperty() + { + return impl::call_factory_cast([](ISelectorBarStatics const& f) { return f.ItemsProperty(); }); + } + inline auto SelectorBar::SelectedItemProperty() + { + return impl::call_factory_cast([](ISelectorBarStatics const& f) { return f.SelectedItemProperty(); }); + } + inline SelectorBarItem::SelectorBarItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISelectorBarItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SelectorBarItem::TextProperty() + { + return impl::call_factory_cast([](ISelectorBarItemStatics const& f) { return f.TextProperty(); }); + } + inline auto SelectorBarItem::IconProperty() + { + return impl::call_factory_cast([](ISelectorBarItemStatics const& f) { return f.IconProperty(); }); + } + inline SemanticZoom::SemanticZoom() : + SemanticZoom(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto SemanticZoom::ZoomedInViewProperty() + { + return impl::call_factory_cast([](ISemanticZoomStatics const& f) { return f.ZoomedInViewProperty(); }); + } + inline auto SemanticZoom::ZoomedOutViewProperty() + { + return impl::call_factory_cast([](ISemanticZoomStatics const& f) { return f.ZoomedOutViewProperty(); }); + } + inline auto SemanticZoom::IsZoomedInViewActiveProperty() + { + return impl::call_factory_cast([](ISemanticZoomStatics const& f) { return f.IsZoomedInViewActiveProperty(); }); + } + inline auto SemanticZoom::CanChangeViewsProperty() + { + return impl::call_factory_cast([](ISemanticZoomStatics const& f) { return f.CanChangeViewsProperty(); }); + } + inline auto SemanticZoom::IsZoomOutButtonEnabledProperty() + { + return impl::call_factory_cast([](ISemanticZoomStatics const& f) { return f.IsZoomOutButtonEnabledProperty(); }); + } + inline SemanticZoomLocation::SemanticZoomLocation() : + SemanticZoomLocation(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline SemanticZoomViewChangedEventArgs::SemanticZoomViewChangedEventArgs() : + SemanticZoomViewChangedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline Slider::Slider() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISliderFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto Slider::IntermediateValueProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.IntermediateValueProperty(); }); + } + inline auto Slider::StepFrequencyProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.StepFrequencyProperty(); }); + } + inline auto Slider::SnapsToProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.SnapsToProperty(); }); + } + inline auto Slider::TickFrequencyProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.TickFrequencyProperty(); }); + } + inline auto Slider::TickPlacementProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.TickPlacementProperty(); }); + } + inline auto Slider::OrientationProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.OrientationProperty(); }); + } + inline auto Slider::IsDirectionReversedProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.IsDirectionReversedProperty(); }); + } + inline auto Slider::IsThumbToolTipEnabledProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.IsThumbToolTipEnabledProperty(); }); + } + inline auto Slider::ThumbToolTipValueConverterProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.ThumbToolTipValueConverterProperty(); }); + } + inline auto Slider::HeaderProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.HeaderProperty(); }); + } + inline auto Slider::HeaderTemplateProperty() + { + return impl::call_factory_cast([](ISliderStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline SplitButton::SplitButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISplitButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SplitButton::FlyoutProperty() + { + return impl::call_factory_cast([](ISplitButtonStatics const& f) { return f.FlyoutProperty(); }); + } + inline auto SplitButton::CommandProperty() + { + return impl::call_factory_cast([](ISplitButtonStatics const& f) { return f.CommandProperty(); }); + } + inline auto SplitButton::CommandParameterProperty() + { + return impl::call_factory_cast([](ISplitButtonStatics const& f) { return f.CommandParameterProperty(); }); + } + inline SplitView::SplitView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISplitViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SplitView::ContentProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.ContentProperty(); }); + } + inline auto SplitView::PaneProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.PaneProperty(); }); + } + inline auto SplitView::IsPaneOpenProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.IsPaneOpenProperty(); }); + } + inline auto SplitView::OpenPaneLengthProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.OpenPaneLengthProperty(); }); + } + inline auto SplitView::CompactPaneLengthProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.CompactPaneLengthProperty(); }); + } + inline auto SplitView::PanePlacementProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.PanePlacementProperty(); }); + } + inline auto SplitView::DisplayModeProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.DisplayModeProperty(); }); + } + inline auto SplitView::TemplateSettingsProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.TemplateSettingsProperty(); }); + } + inline auto SplitView::PaneBackgroundProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.PaneBackgroundProperty(); }); + } + inline auto SplitView::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](ISplitViewStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline StackLayout::StackLayout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IStackLayoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto StackLayout::OrientationProperty() + { + return impl::call_factory_cast([](IStackLayoutStatics const& f) { return f.OrientationProperty(); }); + } + inline auto StackLayout::SpacingProperty() + { + return impl::call_factory_cast([](IStackLayoutStatics const& f) { return f.SpacingProperty(); }); + } + inline StackPanel::StackPanel() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IStackPanelFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto StackPanel::AreScrollSnapPointsRegularProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.AreScrollSnapPointsRegularProperty(); }); + } + inline auto StackPanel::OrientationProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.OrientationProperty(); }); + } + inline auto StackPanel::BackgroundSizingProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.BackgroundSizingProperty(); }); + } + inline auto StackPanel::BorderBrushProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.BorderBrushProperty(); }); + } + inline auto StackPanel::BorderThicknessProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.BorderThicknessProperty(); }); + } + inline auto StackPanel::CornerRadiusProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.CornerRadiusProperty(); }); + } + inline auto StackPanel::PaddingProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.PaddingProperty(); }); + } + inline auto StackPanel::SpacingProperty() + { + return impl::call_factory_cast([](IStackPanelStatics const& f) { return f.SpacingProperty(); }); + } + inline StyleSelector::StyleSelector() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IStyleSelectorFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline SwapChainBackgroundPanel::SwapChainBackgroundPanel() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISwapChainBackgroundPanelFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline SwapChainPanel::SwapChainPanel() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISwapChainPanelFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SwapChainPanel::CompositionScaleXProperty() + { + return impl::call_factory_cast([](ISwapChainPanelStatics const& f) { return f.CompositionScaleXProperty(); }); + } + inline auto SwapChainPanel::CompositionScaleYProperty() + { + return impl::call_factory_cast([](ISwapChainPanelStatics const& f) { return f.CompositionScaleYProperty(); }); + } + inline SwipeControl::SwipeControl() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISwipeControlFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SwipeControl::LeftItemsProperty() + { + return impl::call_factory_cast([](ISwipeControlStatics const& f) { return f.LeftItemsProperty(); }); + } + inline auto SwipeControl::RightItemsProperty() + { + return impl::call_factory_cast([](ISwipeControlStatics const& f) { return f.RightItemsProperty(); }); + } + inline auto SwipeControl::TopItemsProperty() + { + return impl::call_factory_cast([](ISwipeControlStatics const& f) { return f.TopItemsProperty(); }); + } + inline auto SwipeControl::BottomItemsProperty() + { + return impl::call_factory_cast([](ISwipeControlStatics const& f) { return f.BottomItemsProperty(); }); + } + inline SwipeItem::SwipeItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISwipeItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SwipeItem::IconSourceProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto SwipeItem::TextProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.TextProperty(); }); + } + inline auto SwipeItem::BackgroundProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.BackgroundProperty(); }); + } + inline auto SwipeItem::ForegroundProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto SwipeItem::CommandProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.CommandProperty(); }); + } + inline auto SwipeItem::CommandParameterProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.CommandParameterProperty(); }); + } + inline auto SwipeItem::BehaviorOnInvokedProperty() + { + return impl::call_factory_cast([](ISwipeItemStatics const& f) { return f.BehaviorOnInvokedProperty(); }); + } + inline SwipeItems::SwipeItems() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISwipeItemsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SwipeItems::ModeProperty() + { + return impl::call_factory_cast([](ISwipeItemsStatics const& f) { return f.ModeProperty(); }); + } + inline SymbolIcon::SymbolIcon() : + SymbolIcon(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline SymbolIcon::SymbolIcon(winrt::Microsoft::UI::Xaml::Controls::Symbol const& symbol) : + SymbolIcon(impl::call_factory([&](ISymbolIconFactory const& f) { return f.CreateInstanceWithSymbol(symbol); })) + { + } + inline auto SymbolIcon::SymbolProperty() + { + return impl::call_factory_cast([](ISymbolIconStatics const& f) { return f.SymbolProperty(); }); + } + inline SymbolIconSource::SymbolIconSource() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISymbolIconSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto SymbolIconSource::SymbolProperty() + { + return impl::call_factory_cast([](ISymbolIconSourceStatics const& f) { return f.SymbolProperty(); }); + } + inline TabView::TabView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITabViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TabView::TabWidthModeProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabWidthModeProperty(); }); + } + inline auto TabView::TabStripHeaderProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabStripHeaderProperty(); }); + } + inline auto TabView::TabStripHeaderTemplateProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabStripHeaderTemplateProperty(); }); + } + inline auto TabView::TabStripFooterProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabStripFooterProperty(); }); + } + inline auto TabView::TabStripFooterTemplateProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabStripFooterTemplateProperty(); }); + } + inline auto TabView::IsAddTabButtonVisibleProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.IsAddTabButtonVisibleProperty(); }); + } + inline auto TabView::AddTabButtonCommandProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.AddTabButtonCommandProperty(); }); + } + inline auto TabView::AddTabButtonCommandParameterProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.AddTabButtonCommandParameterProperty(); }); + } + inline auto TabView::TabItemsSourceProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabItemsSourceProperty(); }); + } + inline auto TabView::TabItemsProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabItemsProperty(); }); + } + inline auto TabView::TabItemTemplateProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabItemTemplateProperty(); }); + } + inline auto TabView::TabItemTemplateSelectorProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.TabItemTemplateSelectorProperty(); }); + } + inline auto TabView::CloseButtonOverlayModeProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.CloseButtonOverlayModeProperty(); }); + } + inline auto TabView::CanDragTabsProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.CanDragTabsProperty(); }); + } + inline auto TabView::CanReorderTabsProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.CanReorderTabsProperty(); }); + } + inline auto TabView::AllowDropTabsProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.AllowDropTabsProperty(); }); + } + inline auto TabView::SelectedIndexProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.SelectedIndexProperty(); }); + } + inline auto TabView::SelectedItemProperty() + { + return impl::call_factory_cast([](ITabViewStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto TabView::CanTearOutTabsProperty() + { + return impl::call_factory_cast([](ITabViewStatics2 const& f) { return f.CanTearOutTabsProperty(); }); + } + inline TabViewItem::TabViewItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITabViewItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TabViewItem::HeaderProperty() + { + return impl::call_factory_cast([](ITabViewItemStatics const& f) { return f.HeaderProperty(); }); + } + inline auto TabViewItem::HeaderTemplateProperty() + { + return impl::call_factory_cast([](ITabViewItemStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto TabViewItem::IconSourceProperty() + { + return impl::call_factory_cast([](ITabViewItemStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto TabViewItem::IsClosableProperty() + { + return impl::call_factory_cast([](ITabViewItemStatics const& f) { return f.IsClosableProperty(); }); + } + inline auto TabViewItem::TabViewTemplateSettingsProperty() + { + return impl::call_factory_cast([](ITabViewItemStatics const& f) { return f.TabViewTemplateSettingsProperty(); }); + } + inline TabViewItemTemplateSettings::TabViewItemTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITabViewItemTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TabViewItemTemplateSettings::IconElementProperty() + { + return impl::call_factory_cast([](ITabViewItemTemplateSettingsStatics const& f) { return f.IconElementProperty(); }); + } + inline auto TabViewItemTemplateSettings::TabGeometryProperty() + { + return impl::call_factory_cast([](ITabViewItemTemplateSettingsStatics2 const& f) { return f.TabGeometryProperty(); }); + } + inline TeachingTip::TeachingTip() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITeachingTipFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TeachingTip::IsOpenProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.IsOpenProperty(); }); + } + inline auto TeachingTip::TargetProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.TargetProperty(); }); + } + inline auto TeachingTip::TailVisibilityProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.TailVisibilityProperty(); }); + } + inline auto TeachingTip::TitleProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.TitleProperty(); }); + } + inline auto TeachingTip::SubtitleProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.SubtitleProperty(); }); + } + inline auto TeachingTip::ActionButtonContentProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.ActionButtonContentProperty(); }); + } + inline auto TeachingTip::ActionButtonStyleProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.ActionButtonStyleProperty(); }); + } + inline auto TeachingTip::ActionButtonCommandProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.ActionButtonCommandProperty(); }); + } + inline auto TeachingTip::ActionButtonCommandParameterProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.ActionButtonCommandParameterProperty(); }); + } + inline auto TeachingTip::CloseButtonContentProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.CloseButtonContentProperty(); }); + } + inline auto TeachingTip::CloseButtonStyleProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.CloseButtonStyleProperty(); }); + } + inline auto TeachingTip::CloseButtonCommandProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.CloseButtonCommandProperty(); }); + } + inline auto TeachingTip::CloseButtonCommandParameterProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.CloseButtonCommandParameterProperty(); }); + } + inline auto TeachingTip::PlacementMarginProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.PlacementMarginProperty(); }); + } + inline auto TeachingTip::ShouldConstrainToRootBoundsProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.ShouldConstrainToRootBoundsProperty(); }); + } + inline auto TeachingTip::IsLightDismissEnabledProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.IsLightDismissEnabledProperty(); }); + } + inline auto TeachingTip::PreferredPlacementProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.PreferredPlacementProperty(); }); + } + inline auto TeachingTip::HeroContentPlacementProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.HeroContentPlacementProperty(); }); + } + inline auto TeachingTip::HeroContentProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.HeroContentProperty(); }); + } + inline auto TeachingTip::IconSourceProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto TeachingTip::TemplateSettingsProperty() + { + return impl::call_factory_cast([](ITeachingTipStatics const& f) { return f.TemplateSettingsProperty(); }); + } + inline TeachingTipTemplateSettings::TeachingTipTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITeachingTipTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TeachingTipTemplateSettings::TopRightHighlightMarginProperty() + { + return impl::call_factory_cast([](ITeachingTipTemplateSettingsStatics const& f) { return f.TopRightHighlightMarginProperty(); }); + } + inline auto TeachingTipTemplateSettings::TopLeftHighlightMarginProperty() + { + return impl::call_factory_cast([](ITeachingTipTemplateSettingsStatics const& f) { return f.TopLeftHighlightMarginProperty(); }); + } + inline auto TeachingTipTemplateSettings::IconElementProperty() + { + return impl::call_factory_cast([](ITeachingTipTemplateSettingsStatics const& f) { return f.IconElementProperty(); }); + } + inline TextBlock::TextBlock() : + TextBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto TextBlock::FontSizeProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto TextBlock::FontFamilyProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto TextBlock::FontWeightProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto TextBlock::FontStyleProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto TextBlock::FontStretchProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.FontStretchProperty(); }); + } + inline auto TextBlock::CharacterSpacingProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.CharacterSpacingProperty(); }); + } + inline auto TextBlock::ForegroundProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto TextBlock::TextWrappingProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextWrappingProperty(); }); + } + inline auto TextBlock::TextTrimmingProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextTrimmingProperty(); }); + } + inline auto TextBlock::TextAlignmentProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextAlignmentProperty(); }); + } + inline auto TextBlock::TextProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextProperty(); }); + } + inline auto TextBlock::PaddingProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.PaddingProperty(); }); + } + inline auto TextBlock::LineHeightProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.LineHeightProperty(); }); + } + inline auto TextBlock::LineStackingStrategyProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.LineStackingStrategyProperty(); }); + } + inline auto TextBlock::IsTextSelectionEnabledProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.IsTextSelectionEnabledProperty(); }); + } + inline auto TextBlock::SelectedTextProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.SelectedTextProperty(); }); + } + inline auto TextBlock::SelectionHighlightColorProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.SelectionHighlightColorProperty(); }); + } + inline auto TextBlock::MaxLinesProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.MaxLinesProperty(); }); + } + inline auto TextBlock::TextLineBoundsProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextLineBoundsProperty(); }); + } + inline auto TextBlock::OpticalMarginAlignmentProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.OpticalMarginAlignmentProperty(); }); + } + inline auto TextBlock::IsColorFontEnabledProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.IsColorFontEnabledProperty(); }); + } + inline auto TextBlock::TextReadingOrderProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextReadingOrderProperty(); }); + } + inline auto TextBlock::IsTextScaleFactorEnabledProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.IsTextScaleFactorEnabledProperty(); }); + } + inline auto TextBlock::TextDecorationsProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.TextDecorationsProperty(); }); + } + inline auto TextBlock::IsTextTrimmedProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.IsTextTrimmedProperty(); }); + } + inline auto TextBlock::HorizontalTextAlignmentProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.HorizontalTextAlignmentProperty(); }); + } + inline auto TextBlock::SelectionFlyoutProperty() + { + return impl::call_factory_cast([](ITextBlockStatics const& f) { return f.SelectionFlyoutProperty(); }); + } + inline TextBox::TextBox() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITextBoxFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TextBox::TextProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.TextProperty(); }); + } + inline auto TextBox::MaxLengthProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.MaxLengthProperty(); }); + } + inline auto TextBox::IsReadOnlyProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.IsReadOnlyProperty(); }); + } + inline auto TextBox::AcceptsReturnProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.AcceptsReturnProperty(); }); + } + inline auto TextBox::TextAlignmentProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.TextAlignmentProperty(); }); + } + inline auto TextBox::TextWrappingProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.TextWrappingProperty(); }); + } + inline auto TextBox::IsSpellCheckEnabledProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.IsSpellCheckEnabledProperty(); }); + } + inline auto TextBox::IsTextPredictionEnabledProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.IsTextPredictionEnabledProperty(); }); + } + inline auto TextBox::InputScopeProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.InputScopeProperty(); }); + } + inline auto TextBox::HeaderProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.HeaderProperty(); }); + } + inline auto TextBox::HeaderTemplateProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto TextBox::PlaceholderTextProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.PlaceholderTextProperty(); }); + } + inline auto TextBox::SelectionHighlightColorProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.SelectionHighlightColorProperty(); }); + } + inline auto TextBox::PreventKeyboardDisplayOnProgrammaticFocusProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.PreventKeyboardDisplayOnProgrammaticFocusProperty(); }); + } + inline auto TextBox::IsColorFontEnabledProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.IsColorFontEnabledProperty(); }); + } + inline auto TextBox::SelectionHighlightColorWhenNotFocusedProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.SelectionHighlightColorWhenNotFocusedProperty(); }); + } + inline auto TextBox::HorizontalTextAlignmentProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.HorizontalTextAlignmentProperty(); }); + } + inline auto TextBox::CharacterCasingProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.CharacterCasingProperty(); }); + } + inline auto TextBox::PlaceholderForegroundProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.PlaceholderForegroundProperty(); }); + } + inline auto TextBox::CanPasteClipboardContentProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.CanPasteClipboardContentProperty(); }); + } + inline auto TextBox::CanUndoProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.CanUndoProperty(); }); + } + inline auto TextBox::CanRedoProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.CanRedoProperty(); }); + } + inline auto TextBox::SelectionFlyoutProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.SelectionFlyoutProperty(); }); + } + inline auto TextBox::ProofingMenuFlyoutProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.ProofingMenuFlyoutProperty(); }); + } + inline auto TextBox::DescriptionProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.DescriptionProperty(); }); + } + inline auto TextBox::DesiredCandidateWindowAlignmentProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.DesiredCandidateWindowAlignmentProperty(); }); + } + inline auto TextBox::TextReadingOrderProperty() + { + return impl::call_factory_cast([](ITextBoxStatics const& f) { return f.TextReadingOrderProperty(); }); + } + inline TextCommandBarFlyout::TextCommandBarFlyout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITextCommandBarFlyoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline TimePickedEventArgs::TimePickedEventArgs() : + TimePickedEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline TimePicker::TimePicker() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITimePickerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TimePicker::HeaderProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.HeaderProperty(); }); + } + inline auto TimePicker::HeaderTemplateProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto TimePicker::ClockIdentifierProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.ClockIdentifierProperty(); }); + } + inline auto TimePicker::MinuteIncrementProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.MinuteIncrementProperty(); }); + } + inline auto TimePicker::TimeProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.TimeProperty(); }); + } + inline auto TimePicker::LightDismissOverlayModeProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.LightDismissOverlayModeProperty(); }); + } + inline auto TimePicker::SelectedTimeProperty() + { + return impl::call_factory_cast([](ITimePickerStatics const& f) { return f.SelectedTimeProperty(); }); + } + inline TimePickerFlyout::TimePickerFlyout() : + TimePickerFlyout(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto TimePickerFlyout::ClockIdentifierProperty() + { + return impl::call_factory_cast([](ITimePickerFlyoutStatics const& f) { return f.ClockIdentifierProperty(); }); + } + inline auto TimePickerFlyout::TimeProperty() + { + return impl::call_factory_cast([](ITimePickerFlyoutStatics const& f) { return f.TimeProperty(); }); + } + inline auto TimePickerFlyout::MinuteIncrementProperty() + { + return impl::call_factory_cast([](ITimePickerFlyoutStatics const& f) { return f.MinuteIncrementProperty(); }); + } + inline auto TimePickerFlyoutPresenter::IsDefaultShadowEnabledProperty() + { + return impl::call_factory_cast([](ITimePickerFlyoutPresenterStatics const& f) { return f.IsDefaultShadowEnabledProperty(); }); + } + inline TitleBar::TitleBar() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITitleBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TitleBar::TitleProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.TitleProperty(); }); + } + inline auto TitleBar::SubtitleProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.SubtitleProperty(); }); + } + inline auto TitleBar::IconSourceProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto TitleBar::LeftHeaderProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.LeftHeaderProperty(); }); + } + inline auto TitleBar::ContentProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.ContentProperty(); }); + } + inline auto TitleBar::RightHeaderProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.RightHeaderProperty(); }); + } + inline auto TitleBar::IsBackButtonVisibleProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.IsBackButtonVisibleProperty(); }); + } + inline auto TitleBar::IsBackButtonEnabledProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.IsBackButtonEnabledProperty(); }); + } + inline auto TitleBar::IsPaneToggleButtonVisibleProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.IsPaneToggleButtonVisibleProperty(); }); + } + inline auto TitleBar::TemplateSettingsProperty() + { + return impl::call_factory_cast([](ITitleBarStatics const& f) { return f.TemplateSettingsProperty(); }); + } + inline TitleBarAutomationPeer::TitleBarAutomationPeer(winrt::Microsoft::UI::Xaml::Controls::TitleBar const& owner) + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITitleBarAutomationPeerFactory const& f) { return f.CreateInstance(owner, baseInterface, innerInterface); }); + } + inline TitleBarTemplateSettings::TitleBarTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITitleBarTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TitleBarTemplateSettings::IconElementProperty() + { + return impl::call_factory_cast([](ITitleBarTemplateSettingsStatics const& f) { return f.IconElementProperty(); }); + } + inline ToggleMenuFlyoutItem::ToggleMenuFlyoutItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IToggleMenuFlyoutItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ToggleMenuFlyoutItem::IsCheckedProperty() + { + return impl::call_factory_cast([](IToggleMenuFlyoutItemStatics const& f) { return f.IsCheckedProperty(); }); + } + inline ToggleSplitButton::ToggleSplitButton() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IToggleSplitButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ToggleSplitButton::IsCheckedProperty() + { + return impl::call_factory_cast([](IToggleSplitButtonStatics const& f) { return f.IsCheckedProperty(); }); + } + inline ToggleSwitch::ToggleSwitch() : + ToggleSwitch(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto ToggleSwitch::IsOnProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.IsOnProperty(); }); + } + inline auto ToggleSwitch::HeaderProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.HeaderProperty(); }); + } + inline auto ToggleSwitch::HeaderTemplateProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.HeaderTemplateProperty(); }); + } + inline auto ToggleSwitch::OnContentProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.OnContentProperty(); }); + } + inline auto ToggleSwitch::OnContentTemplateProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.OnContentTemplateProperty(); }); + } + inline auto ToggleSwitch::OffContentProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.OffContentProperty(); }); + } + inline auto ToggleSwitch::OffContentTemplateProperty() + { + return impl::call_factory_cast([](IToggleSwitchStatics const& f) { return f.OffContentTemplateProperty(); }); + } + inline ToolTip::ToolTip() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IToolTipFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto ToolTip::HorizontalOffsetProperty() + { + return impl::call_factory_cast([](IToolTipStatics const& f) { return f.HorizontalOffsetProperty(); }); + } + inline auto ToolTip::IsOpenProperty() + { + return impl::call_factory_cast([](IToolTipStatics const& f) { return f.IsOpenProperty(); }); + } + inline auto ToolTip::PlacementProperty() + { + return impl::call_factory_cast([](IToolTipStatics const& f) { return f.PlacementProperty(); }); + } + inline auto ToolTip::PlacementTargetProperty() + { + return impl::call_factory_cast([](IToolTipStatics const& f) { return f.PlacementTargetProperty(); }); + } + inline auto ToolTip::PlacementRectProperty() + { + return impl::call_factory_cast([](IToolTipStatics const& f) { return f.PlacementRectProperty(); }); + } + inline auto ToolTip::VerticalOffsetProperty() + { + return impl::call_factory_cast([](IToolTipStatics const& f) { return f.VerticalOffsetProperty(); }); + } + inline auto ToolTipService::PlacementProperty() + { + return impl::call_factory_cast([](IToolTipServiceStatics const& f) { return f.PlacementProperty(); }); + } + inline auto ToolTipService::GetPlacement(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IToolTipServiceStatics const& f) { return f.GetPlacement(element); }); + } + inline auto ToolTipService::SetPlacement(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::Primitives::PlacementMode const& value) + { + impl::call_factory([&](IToolTipServiceStatics const& f) { return f.SetPlacement(element, value); }); + } + inline auto ToolTipService::PlacementTargetProperty() + { + return impl::call_factory_cast([](IToolTipServiceStatics const& f) { return f.PlacementTargetProperty(); }); + } + inline auto ToolTipService::GetPlacementTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IToolTipServiceStatics const& f) { return f.GetPlacementTarget(element); }); + } + inline auto ToolTipService::SetPlacementTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::UIElement const& value) + { + impl::call_factory([&](IToolTipServiceStatics const& f) { return f.SetPlacementTarget(element, value); }); + } + inline auto ToolTipService::ToolTipProperty() + { + return impl::call_factory_cast([](IToolTipServiceStatics const& f) { return f.ToolTipProperty(); }); + } + inline auto ToolTipService::GetToolTip(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IToolTipServiceStatics const& f) { return f.GetToolTip(element); }); + } + inline auto ToolTipService::SetToolTip(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& value) + { + impl::call_factory([&](IToolTipServiceStatics const& f) { return f.SetToolTip(element, value); }); + } + inline TreeView::TreeView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITreeViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TreeView::SelectedItemProperty() + { + return impl::call_factory_cast([](ITreeViewStatics const& f) { return f.SelectedItemProperty(); }); + } + inline auto TreeView::SelectionModeProperty() + { + return impl::call_factory_cast([](ITreeViewStatics const& f) { return f.SelectionModeProperty(); }); + } + inline auto TreeView::CanDragItemsProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.CanDragItemsProperty(); }); + } + inline auto TreeView::CanReorderItemsProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.CanReorderItemsProperty(); }); + } + inline auto TreeView::ItemTemplateProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.ItemTemplateProperty(); }); + } + inline auto TreeView::ItemTemplateSelectorProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.ItemTemplateSelectorProperty(); }); + } + inline auto TreeView::ItemContainerStyleProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.ItemContainerStyleProperty(); }); + } + inline auto TreeView::ItemContainerStyleSelectorProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.ItemContainerStyleSelectorProperty(); }); + } + inline auto TreeView::ItemContainerTransitionsProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.ItemContainerTransitionsProperty(); }); + } + inline auto TreeView::ItemsSourceProperty() + { + return impl::call_factory_cast([](ITreeViewStatics2 const& f) { return f.ItemsSourceProperty(); }); + } + inline TreeViewItem::TreeViewItem() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITreeViewItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TreeViewItem::GlyphOpacityProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.GlyphOpacityProperty(); }); + } + inline auto TreeViewItem::GlyphBrushProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.GlyphBrushProperty(); }); + } + inline auto TreeViewItem::ExpandedGlyphProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.ExpandedGlyphProperty(); }); + } + inline auto TreeViewItem::CollapsedGlyphProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.CollapsedGlyphProperty(); }); + } + inline auto TreeViewItem::GlyphSizeProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.GlyphSizeProperty(); }); + } + inline auto TreeViewItem::IsExpandedProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.IsExpandedProperty(); }); + } + inline auto TreeViewItem::TreeViewItemTemplateSettingsProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics const& f) { return f.TreeViewItemTemplateSettingsProperty(); }); + } + inline auto TreeViewItem::HasUnrealizedChildrenProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics2 const& f) { return f.HasUnrealizedChildrenProperty(); }); + } + inline auto TreeViewItem::ItemsSourceProperty() + { + return impl::call_factory_cast([](ITreeViewItemStatics2 const& f) { return f.ItemsSourceProperty(); }); + } + inline TreeViewItemTemplateSettings::TreeViewItemTemplateSettings() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITreeViewItemTemplateSettingsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TreeViewItemTemplateSettings::ExpandedGlyphVisibilityProperty() + { + return impl::call_factory_cast([](ITreeViewItemTemplateSettingsStatics const& f) { return f.ExpandedGlyphVisibilityProperty(); }); + } + inline auto TreeViewItemTemplateSettings::CollapsedGlyphVisibilityProperty() + { + return impl::call_factory_cast([](ITreeViewItemTemplateSettingsStatics const& f) { return f.CollapsedGlyphVisibilityProperty(); }); + } + inline auto TreeViewItemTemplateSettings::IndentationProperty() + { + return impl::call_factory_cast([](ITreeViewItemTemplateSettingsStatics const& f) { return f.IndentationProperty(); }); + } + inline auto TreeViewItemTemplateSettings::DragItemsCountProperty() + { + return impl::call_factory_cast([](ITreeViewItemTemplateSettingsStatics const& f) { return f.DragItemsCountProperty(); }); + } + inline TreeViewList::TreeViewList() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITreeViewListFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline TreeViewNode::TreeViewNode() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITreeViewNodeFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TreeViewNode::ContentProperty() + { + return impl::call_factory_cast([](ITreeViewNodeStatics const& f) { return f.ContentProperty(); }); + } + inline auto TreeViewNode::DepthProperty() + { + return impl::call_factory_cast([](ITreeViewNodeStatics const& f) { return f.DepthProperty(); }); + } + inline auto TreeViewNode::IsExpandedProperty() + { + return impl::call_factory_cast([](ITreeViewNodeStatics const& f) { return f.IsExpandedProperty(); }); + } + inline auto TreeViewNode::HasChildrenProperty() + { + return impl::call_factory_cast([](ITreeViewNodeStatics const& f) { return f.HasChildrenProperty(); }); + } + inline TwoPaneView::TwoPaneView() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ITwoPaneViewFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto TwoPaneView::Pane1Property() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.Pane1Property(); }); + } + inline auto TwoPaneView::Pane2Property() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.Pane2Property(); }); + } + inline auto TwoPaneView::Pane1LengthProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.Pane1LengthProperty(); }); + } + inline auto TwoPaneView::Pane2LengthProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.Pane2LengthProperty(); }); + } + inline auto TwoPaneView::PanePriorityProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.PanePriorityProperty(); }); + } + inline auto TwoPaneView::ModeProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.ModeProperty(); }); + } + inline auto TwoPaneView::WideModeConfigurationProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.WideModeConfigurationProperty(); }); + } + inline auto TwoPaneView::TallModeConfigurationProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.TallModeConfigurationProperty(); }); + } + inline auto TwoPaneView::MinWideModeWidthProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.MinWideModeWidthProperty(); }); + } + inline auto TwoPaneView::MinTallModeHeightProperty() + { + return impl::call_factory_cast([](ITwoPaneViewStatics const& f) { return f.MinTallModeHeightProperty(); }); + } + inline UniformGridLayout::UniformGridLayout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IUniformGridLayoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto UniformGridLayout::OrientationProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.OrientationProperty(); }); + } + inline auto UniformGridLayout::MinItemWidthProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.MinItemWidthProperty(); }); + } + inline auto UniformGridLayout::MinItemHeightProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.MinItemHeightProperty(); }); + } + inline auto UniformGridLayout::MinRowSpacingProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.MinRowSpacingProperty(); }); + } + inline auto UniformGridLayout::MinColumnSpacingProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.MinColumnSpacingProperty(); }); + } + inline auto UniformGridLayout::ItemsJustificationProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.ItemsJustificationProperty(); }); + } + inline auto UniformGridLayout::ItemsStretchProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.ItemsStretchProperty(); }); + } + inline auto UniformGridLayout::MaximumRowsOrColumnsProperty() + { + return impl::call_factory_cast([](IUniformGridLayoutStatics const& f) { return f.MaximumRowsOrColumnsProperty(); }); + } + inline UserControl::UserControl() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IUserControlFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto UserControl::ContentProperty() + { + return impl::call_factory_cast([](IUserControlStatics const& f) { return f.ContentProperty(); }); + } + inline VariableSizedWrapGrid::VariableSizedWrapGrid() : + VariableSizedWrapGrid(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto VariableSizedWrapGrid::ItemHeightProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.ItemHeightProperty(); }); + } + inline auto VariableSizedWrapGrid::ItemWidthProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.ItemWidthProperty(); }); + } + inline auto VariableSizedWrapGrid::OrientationProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.OrientationProperty(); }); + } + inline auto VariableSizedWrapGrid::HorizontalChildrenAlignmentProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.HorizontalChildrenAlignmentProperty(); }); + } + inline auto VariableSizedWrapGrid::VerticalChildrenAlignmentProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.VerticalChildrenAlignmentProperty(); }); + } + inline auto VariableSizedWrapGrid::MaximumRowsOrColumnsProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.MaximumRowsOrColumnsProperty(); }); + } + inline auto VariableSizedWrapGrid::RowSpanProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.RowSpanProperty(); }); + } + inline auto VariableSizedWrapGrid::GetRowSpan(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IVariableSizedWrapGridStatics const& f) { return f.GetRowSpan(element); }); + } + inline auto VariableSizedWrapGrid::SetRowSpan(winrt::Microsoft::UI::Xaml::UIElement const& element, int32_t value) + { + impl::call_factory([&](IVariableSizedWrapGridStatics const& f) { return f.SetRowSpan(element, value); }); + } + inline auto VariableSizedWrapGrid::ColumnSpanProperty() + { + return impl::call_factory_cast([](IVariableSizedWrapGridStatics const& f) { return f.ColumnSpanProperty(); }); + } + inline auto VariableSizedWrapGrid::GetColumnSpan(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + return impl::call_factory([&](IVariableSizedWrapGridStatics const& f) { return f.GetColumnSpan(element); }); + } + inline auto VariableSizedWrapGrid::SetColumnSpan(winrt::Microsoft::UI::Xaml::UIElement const& element, int32_t value) + { + impl::call_factory([&](IVariableSizedWrapGridStatics const& f) { return f.SetColumnSpan(element, value); }); + } + inline Viewbox::Viewbox() : + Viewbox(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto Viewbox::StretchProperty() + { + return impl::call_factory_cast([](IViewboxStatics const& f) { return f.StretchProperty(); }); + } + inline auto Viewbox::StretchDirectionProperty() + { + return impl::call_factory_cast([](IViewboxStatics const& f) { return f.StretchDirectionProperty(); }); + } + inline VirtualizingLayout::VirtualizingLayout() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IVirtualizingLayoutFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline VirtualizingLayoutContext::VirtualizingLayoutContext() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IVirtualizingLayoutContextFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline VirtualizingStackPanel::VirtualizingStackPanel() : + VirtualizingStackPanel(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto VirtualizingStackPanel::AreScrollSnapPointsRegularProperty() + { + return impl::call_factory_cast([](IVirtualizingStackPanelStatics const& f) { return f.AreScrollSnapPointsRegularProperty(); }); + } + inline auto VirtualizingStackPanel::OrientationProperty() + { + return impl::call_factory_cast([](IVirtualizingStackPanelStatics const& f) { return f.OrientationProperty(); }); + } + inline auto VirtualizingStackPanel::VirtualizationModeProperty() + { + return impl::call_factory_cast([](IVirtualizingStackPanelStatics const& f) { return f.VirtualizationModeProperty(); }); + } + inline auto VirtualizingStackPanel::GetVirtualizationMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element) + { + return impl::call_factory([&](IVirtualizingStackPanelStatics const& f) { return f.GetVirtualizationMode(element); }); + } + inline auto VirtualizingStackPanel::SetVirtualizationMode(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Microsoft::UI::Xaml::Controls::VirtualizationMode const& value) + { + impl::call_factory([&](IVirtualizingStackPanelStatics const& f) { return f.SetVirtualizationMode(element, value); }); + } + inline auto VirtualizingStackPanel::IsVirtualizingProperty() + { + return impl::call_factory_cast([](IVirtualizingStackPanelStatics const& f) { return f.IsVirtualizingProperty(); }); + } + inline auto VirtualizingStackPanel::GetIsVirtualizing(winrt::Microsoft::UI::Xaml::DependencyObject const& o) + { + return impl::call_factory([&](IVirtualizingStackPanelStatics const& f) { return f.GetIsVirtualizing(o); }); + } + inline WebView2::WebView2() + { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IWebView2Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); + } + inline auto WebView2::SourceProperty() + { + return impl::call_factory_cast([](IWebView2Statics const& f) { return f.SourceProperty(); }); + } + inline auto WebView2::CanGoForwardProperty() + { + return impl::call_factory_cast([](IWebView2Statics const& f) { return f.CanGoForwardProperty(); }); + } + inline auto WebView2::CanGoBackProperty() + { + return impl::call_factory_cast([](IWebView2Statics const& f) { return f.CanGoBackProperty(); }); + } + inline auto WebView2::DefaultBackgroundColorProperty() + { + return impl::call_factory_cast([](IWebView2Statics const& f) { return f.DefaultBackgroundColorProperty(); }); + } + inline WrapGrid::WrapGrid() : + WrapGrid(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto WrapGrid::ItemWidthProperty() + { + return impl::call_factory_cast([](IWrapGridStatics const& f) { return f.ItemWidthProperty(); }); + } + inline auto WrapGrid::ItemHeightProperty() + { + return impl::call_factory_cast([](IWrapGridStatics const& f) { return f.ItemHeightProperty(); }); + } + inline auto WrapGrid::OrientationProperty() + { + return impl::call_factory_cast([](IWrapGridStatics const& f) { return f.OrientationProperty(); }); + } + inline auto WrapGrid::HorizontalChildrenAlignmentProperty() + { + return impl::call_factory_cast([](IWrapGridStatics const& f) { return f.HorizontalChildrenAlignmentProperty(); }); + } + inline auto WrapGrid::VerticalChildrenAlignmentProperty() + { + return impl::call_factory_cast([](IWrapGridStatics const& f) { return f.VerticalChildrenAlignmentProperty(); }); + } + inline auto WrapGrid::MaximumRowsOrColumnsProperty() + { + return impl::call_factory_cast([](IWrapGridStatics const& f) { return f.MaximumRowsOrColumnsProperty(); }); + } + inline XamlControlsResources::XamlControlsResources() : + XamlControlsResources(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) + { + } + inline auto XamlControlsResources::EnsureRevealLights(winrt::Microsoft::UI::Xaml::UIElement const& element) + { + impl::call_factory([&](IXamlControlsResourcesStatics const& f) { return f.EnsureRevealLights(element); }); + } + inline auto XamlControlsResources::UseCompactResourcesProperty() + { + return impl::call_factory_cast([](IXamlControlsResourcesStatics const& f) { return f.UseCompactResourcesProperty(); }); + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(L handler) : + CalendarViewDayItemChangingEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(F* handler) : + CalendarViewDayItemChangingEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(O* object, M method) : + CalendarViewDayItemChangingEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(com_ptr&& object, M method) : + CalendarViewDayItemChangingEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(weak_ref&& object, LM&& lambda_or_method) : + CalendarViewDayItemChangingEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(std::shared_ptr&& object, M method) : + CalendarViewDayItemChangingEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template CalendarViewDayItemChangingEventHandler::CalendarViewDayItemChangingEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + CalendarViewDayItemChangingEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto CalendarViewDayItemChangingEventHandler::operator()(winrt::Microsoft::UI::Xaml::Controls::CalendarView const& sender, winrt::Microsoft::UI::Xaml::Controls::CalendarViewDayItemChangingEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(L handler) : + CleanUpVirtualizedItemEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(F* handler) : + CleanUpVirtualizedItemEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(O* object, M method) : + CleanUpVirtualizedItemEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(com_ptr&& object, M method) : + CleanUpVirtualizedItemEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(weak_ref&& object, LM&& lambda_or_method) : + CleanUpVirtualizedItemEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(std::shared_ptr&& object, M method) : + CleanUpVirtualizedItemEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template CleanUpVirtualizedItemEventHandler::CleanUpVirtualizedItemEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + CleanUpVirtualizedItemEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto CleanUpVirtualizedItemEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::CleanUpVirtualizedItemEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(L handler) : + ContextMenuOpeningEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(F* handler) : + ContextMenuOpeningEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(O* object, M method) : + ContextMenuOpeningEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(com_ptr&& object, M method) : + ContextMenuOpeningEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(weak_ref&& object, LM&& lambda_or_method) : + ContextMenuOpeningEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(std::shared_ptr&& object, M method) : + ContextMenuOpeningEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ContextMenuOpeningEventHandler::ContextMenuOpeningEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + ContextMenuOpeningEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto ContextMenuOpeningEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::ContextMenuEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(L handler) : + DragItemsStartingEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(F* handler) : + DragItemsStartingEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(O* object, M method) : + DragItemsStartingEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(com_ptr&& object, M method) : + DragItemsStartingEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(weak_ref&& object, LM&& lambda_or_method) : + DragItemsStartingEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(std::shared_ptr&& object, M method) : + DragItemsStartingEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template DragItemsStartingEventHandler::DragItemsStartingEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + DragItemsStartingEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto DragItemsStartingEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::DragItemsStartingEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(L handler) : + HubSectionHeaderClickEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(F* handler) : + HubSectionHeaderClickEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(O* object, M method) : + HubSectionHeaderClickEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(com_ptr&& object, M method) : + HubSectionHeaderClickEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(weak_ref&& object, LM&& lambda_or_method) : + HubSectionHeaderClickEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(std::shared_ptr&& object, M method) : + HubSectionHeaderClickEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template HubSectionHeaderClickEventHandler::HubSectionHeaderClickEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + HubSectionHeaderClickEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto HubSectionHeaderClickEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::HubSectionHeaderClickEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template ItemClickEventHandler::ItemClickEventHandler(L handler) : + ItemClickEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template ItemClickEventHandler::ItemClickEventHandler(F* handler) : + ItemClickEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template ItemClickEventHandler::ItemClickEventHandler(O* object, M method) : + ItemClickEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template ItemClickEventHandler::ItemClickEventHandler(com_ptr&& object, M method) : + ItemClickEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ItemClickEventHandler::ItemClickEventHandler(weak_ref&& object, LM&& lambda_or_method) : + ItemClickEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template ItemClickEventHandler::ItemClickEventHandler(std::shared_ptr&& object, M method) : + ItemClickEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ItemClickEventHandler::ItemClickEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + ItemClickEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto ItemClickEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::ItemClickEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(L handler) : + ListViewItemToKeyHandler(impl::make_delegate(std::forward(handler))) + { + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(F* handler) : + ListViewItemToKeyHandler([=](auto&&... args) { return handler(args...); }) + { + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(O* object, M method) : + ListViewItemToKeyHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(com_ptr&& object, M method) : + ListViewItemToKeyHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(weak_ref&& object, LM&& lambda_or_method) : + ListViewItemToKeyHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(std::shared_ptr&& object, M method) : + ListViewItemToKeyHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ListViewItemToKeyHandler::ListViewItemToKeyHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + ListViewItemToKeyHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto ListViewItemToKeyHandler::operator()(winrt::Windows::Foundation::IInspectable const& item) const + { + void* result{}; + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&item), &result)); + return hstring{ result, take_ownership_from_abi }; + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(L handler) : + ListViewKeyToItemHandler(impl::make_delegate(std::forward(handler))) + { + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(F* handler) : + ListViewKeyToItemHandler([=](auto&&... args) { return handler(args...); }) + { + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(O* object, M method) : + ListViewKeyToItemHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(com_ptr&& object, M method) : + ListViewKeyToItemHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(weak_ref&& object, LM&& lambda_or_method) : + ListViewKeyToItemHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(std::shared_ptr&& object, M method) : + ListViewKeyToItemHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template ListViewKeyToItemHandler::ListViewKeyToItemHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + ListViewKeyToItemHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto ListViewKeyToItemHandler::operator()(param::hstring const& key) const + { + void* operation{}; + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&key), &operation)); + return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(L handler) : + SectionsInViewChangedEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(F* handler) : + SectionsInViewChangedEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(O* object, M method) : + SectionsInViewChangedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(com_ptr&& object, M method) : + SectionsInViewChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(weak_ref&& object, LM&& lambda_or_method) : + SectionsInViewChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(std::shared_ptr&& object, M method) : + SectionsInViewChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template SectionsInViewChangedEventHandler::SectionsInViewChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + SectionsInViewChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto SectionsInViewChangedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::SectionsInViewChangedEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(L handler) : + SelectionChangedEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(F* handler) : + SelectionChangedEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(O* object, M method) : + SelectionChangedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(com_ptr&& object, M method) : + SelectionChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(weak_ref&& object, LM&& lambda_or_method) : + SelectionChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(std::shared_ptr&& object, M method) : + SelectionChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template SelectionChangedEventHandler::SelectionChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + SelectionChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto SelectionChangedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::SelectionChangedEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(L handler) : + SemanticZoomViewChangedEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(F* handler) : + SemanticZoomViewChangedEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(O* object, M method) : + SemanticZoomViewChangedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(com_ptr&& object, M method) : + SemanticZoomViewChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(weak_ref&& object, LM&& lambda_or_method) : + SemanticZoomViewChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(std::shared_ptr&& object, M method) : + SemanticZoomViewChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template SemanticZoomViewChangedEventHandler::SemanticZoomViewChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + SemanticZoomViewChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto SemanticZoomViewChangedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::SemanticZoomViewChangedEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template TextChangedEventHandler::TextChangedEventHandler(L handler) : + TextChangedEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template TextChangedEventHandler::TextChangedEventHandler(F* handler) : + TextChangedEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template TextChangedEventHandler::TextChangedEventHandler(O* object, M method) : + TextChangedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template TextChangedEventHandler::TextChangedEventHandler(com_ptr&& object, M method) : + TextChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template TextChangedEventHandler::TextChangedEventHandler(weak_ref&& object, LM&& lambda_or_method) : + TextChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template TextChangedEventHandler::TextChangedEventHandler(std::shared_ptr&& object, M method) : + TextChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template TextChangedEventHandler::TextChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + TextChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto TextChangedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::TextChangedEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(L handler) : + TextControlPasteEventHandler(impl::make_delegate(std::forward(handler))) + { + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(F* handler) : + TextControlPasteEventHandler([=](auto&&... args) { return handler(args...); }) + { + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(O* object, M method) : + TextControlPasteEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) + { + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(com_ptr&& object, M method) : + TextControlPasteEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(weak_ref&& object, LM&& lambda_or_method) : + TextControlPasteEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(std::shared_ptr&& object, M method) : + TextControlPasteEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) + { + } + template TextControlPasteEventHandler::TextControlPasteEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : + TextControlPasteEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); + else lm(args...); + } }) + { + } + inline auto TextControlPasteEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::TextControlPasteEventArgs const& e) const + { + check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template auto IAppBarOverridesT::OnClosed(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnClosed(e); + } + template auto IAppBarOverridesT::OnOpened(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnOpened(e); + } + template auto IAppBarOverridesT::OnClosing(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnClosing(e); + } + template auto IAppBarOverridesT::OnOpening(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnOpening(e); + } + template auto IComboBoxOverridesT::OnDropDownClosed(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnDropDownClosed(e); + } + template auto IComboBoxOverridesT::OnDropDownOpened(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnDropDownOpened(e); + } + template auto IContentControlOverridesT::OnContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + return shim().template try_as().OnContentChanged(oldContent, newContent); + } + template auto IContentControlOverridesT::OnContentTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldContentTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newContentTemplate) const + { + return shim().template try_as().OnContentTemplateChanged(oldContentTemplate, newContentTemplate); + } + template auto IContentControlOverridesT::OnContentTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldContentTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newContentTemplateSelector) const + { + return shim().template try_as().OnContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector); + } + template auto IContentPresenterOverridesT::OnContentTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldContentTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newContentTemplate) const + { + return shim().template try_as().OnContentTemplateChanged(oldContentTemplate, newContentTemplate); + } + template auto IContentPresenterOverridesT::OnContentTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldContentTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newContentTemplateSelector) const + { + return shim().template try_as().OnContentTemplateSelectorChanged(oldContentTemplateSelector, newContentTemplateSelector); + } + template auto IControlOverridesT::OnPointerEntered(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerEntered(e); + } + template auto IControlOverridesT::OnPointerPressed(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerPressed(e); + } + template auto IControlOverridesT::OnPointerMoved(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerMoved(e); + } + template auto IControlOverridesT::OnPointerReleased(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerReleased(e); + } + template auto IControlOverridesT::OnPointerExited(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerExited(e); + } + template auto IControlOverridesT::OnPointerCaptureLost(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerCaptureLost(e); + } + template auto IControlOverridesT::OnPointerCanceled(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerCanceled(e); + } + template auto IControlOverridesT::OnPointerWheelChanged(winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) const + { + return shim().template try_as().OnPointerWheelChanged(e); + } + template auto IControlOverridesT::OnTapped(winrt::Microsoft::UI::Xaml::Input::TappedRoutedEventArgs const& e) const + { + return shim().template try_as().OnTapped(e); + } + template auto IControlOverridesT::OnDoubleTapped(winrt::Microsoft::UI::Xaml::Input::DoubleTappedRoutedEventArgs const& e) const + { + return shim().template try_as().OnDoubleTapped(e); + } + template auto IControlOverridesT::OnHolding(winrt::Microsoft::UI::Xaml::Input::HoldingRoutedEventArgs const& e) const + { + return shim().template try_as().OnHolding(e); + } + template auto IControlOverridesT::OnRightTapped(winrt::Microsoft::UI::Xaml::Input::RightTappedRoutedEventArgs const& e) const + { + return shim().template try_as().OnRightTapped(e); + } + template auto IControlOverridesT::OnManipulationStarting(winrt::Microsoft::UI::Xaml::Input::ManipulationStartingRoutedEventArgs const& e) const + { + return shim().template try_as().OnManipulationStarting(e); + } + template auto IControlOverridesT::OnManipulationInertiaStarting(winrt::Microsoft::UI::Xaml::Input::ManipulationInertiaStartingRoutedEventArgs const& e) const + { + return shim().template try_as().OnManipulationInertiaStarting(e); + } + template auto IControlOverridesT::OnManipulationStarted(winrt::Microsoft::UI::Xaml::Input::ManipulationStartedRoutedEventArgs const& e) const + { + return shim().template try_as().OnManipulationStarted(e); + } + template auto IControlOverridesT::OnManipulationDelta(winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const& e) const + { + return shim().template try_as().OnManipulationDelta(e); + } + template auto IControlOverridesT::OnManipulationCompleted(winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs const& e) const + { + return shim().template try_as().OnManipulationCompleted(e); + } + template auto IControlOverridesT::OnKeyUp(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + return shim().template try_as().OnKeyUp(e); + } + template auto IControlOverridesT::OnKeyDown(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + return shim().template try_as().OnKeyDown(e); + } + template auto IControlOverridesT::OnPreviewKeyDown(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + return shim().template try_as().OnPreviewKeyDown(e); + } + template auto IControlOverridesT::OnPreviewKeyUp(winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const + { + return shim().template try_as().OnPreviewKeyUp(e); + } + template auto IControlOverridesT::OnGotFocus(winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e) const + { + return shim().template try_as().OnGotFocus(e); + } + template auto IControlOverridesT::OnLostFocus(winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e) const + { + return shim().template try_as().OnLostFocus(e); + } + template auto IControlOverridesT::OnCharacterReceived(winrt::Microsoft::UI::Xaml::Input::CharacterReceivedRoutedEventArgs const& e) const + { + return shim().template try_as().OnCharacterReceived(e); + } + template auto IControlOverridesT::OnDragEnter(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + return shim().template try_as().OnDragEnter(e); + } + template auto IControlOverridesT::OnDragLeave(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + return shim().template try_as().OnDragLeave(e); + } + template auto IControlOverridesT::OnDragOver(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + return shim().template try_as().OnDragOver(e); + } + template auto IControlOverridesT::OnDrop(winrt::Microsoft::UI::Xaml::DragEventArgs const& e) const + { + return shim().template try_as().OnDrop(e); + } + template auto IDataTemplateSelectorOverridesT::SelectTemplateCore(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + return shim().template try_as().SelectTemplateCore(item, container); + } + template auto IDataTemplateSelectorOverridesT::SelectTemplateCore(winrt::Windows::Foundation::IInspectable const& item) const + { + return shim().template try_as().SelectTemplateCore(item); + } + template auto IGroupStyleSelectorOverridesT::SelectGroupStyleCore(winrt::Windows::Foundation::IInspectable const& group, uint32_t level) const + { + return shim().template try_as().SelectGroupStyleCore(group, level); + } + template auto IIconSourceOverridesT::CreateIconElementCore() const + { + return shim().template try_as().CreateIconElementCore(); + } + template auto IIconSourceOverridesT::GetIconElementPropertyCore(winrt::Microsoft::UI::Xaml::DependencyProperty const& iconSourceProperty) const + { + return shim().template try_as().GetIconElementPropertyCore(iconSourceProperty); + } + template auto IItemCollectionTransitionProviderOverridesT::ShouldAnimateCore(winrt::Microsoft::UI::Xaml::Controls::ItemCollectionTransition const& transition) const + { + return shim().template try_as().ShouldAnimateCore(transition); + } + template auto IItemCollectionTransitionProviderOverridesT::StartTransitions(param::vector const& transitions) const + { + return shim().template try_as().StartTransitions(transitions); + } + template auto IItemsControlOverridesT::IsItemItsOwnContainerOverride(winrt::Windows::Foundation::IInspectable const& item) const + { + return shim().template try_as().IsItemItsOwnContainerOverride(item); + } + template auto IItemsControlOverridesT::GetContainerForItemOverride() const + { + return shim().template try_as().GetContainerForItemOverride(); + } + template auto IItemsControlOverridesT::ClearContainerForItemOverride(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& item) const + { + return shim().template try_as().ClearContainerForItemOverride(element, item); + } + template auto IItemsControlOverridesT::PrepareContainerForItemOverride(winrt::Microsoft::UI::Xaml::DependencyObject const& element, winrt::Windows::Foundation::IInspectable const& item) const + { + return shim().template try_as().PrepareContainerForItemOverride(element, item); + } + template auto IItemsControlOverridesT::OnItemsChanged(winrt::Windows::Foundation::IInspectable const& e) const + { + return shim().template try_as().OnItemsChanged(e); + } + template auto IItemsControlOverridesT::OnItemContainerStyleChanged(winrt::Microsoft::UI::Xaml::Style const& oldItemContainerStyle, winrt::Microsoft::UI::Xaml::Style const& newItemContainerStyle) const + { + return shim().template try_as().OnItemContainerStyleChanged(oldItemContainerStyle, newItemContainerStyle); + } + template auto IItemsControlOverridesT::OnItemContainerStyleSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& oldItemContainerStyleSelector, winrt::Microsoft::UI::Xaml::Controls::StyleSelector const& newItemContainerStyleSelector) const + { + return shim().template try_as().OnItemContainerStyleSelectorChanged(oldItemContainerStyleSelector, newItemContainerStyleSelector); + } + template auto IItemsControlOverridesT::OnItemTemplateChanged(winrt::Microsoft::UI::Xaml::DataTemplate const& oldItemTemplate, winrt::Microsoft::UI::Xaml::DataTemplate const& newItemTemplate) const + { + return shim().template try_as().OnItemTemplateChanged(oldItemTemplate, newItemTemplate); + } + template auto IItemsControlOverridesT::OnItemTemplateSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& oldItemTemplateSelector, winrt::Microsoft::UI::Xaml::Controls::DataTemplateSelector const& newItemTemplateSelector) const + { + return shim().template try_as().OnItemTemplateSelectorChanged(oldItemTemplateSelector, newItemTemplateSelector); + } + template auto IItemsControlOverridesT::OnGroupStyleSelectorChanged(winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& oldGroupStyleSelector, winrt::Microsoft::UI::Xaml::Controls::GroupStyleSelector const& newGroupStyleSelector) const + { + return shim().template try_as().OnGroupStyleSelectorChanged(oldGroupStyleSelector, newGroupStyleSelector); + } + template auto ILayoutOverridesT::CreateDefaultItemTransitionProvider() const + { + return shim().template try_as().CreateDefaultItemTransitionProvider(); + } + template auto ILayoutContextOverridesT::LayoutStateCore() const + { + return shim().template try_as().LayoutStateCore(); + } + template auto ILayoutContextOverridesT::LayoutStateCore(winrt::Windows::Foundation::IInspectable const& value) const + { + return shim().template try_as().LayoutStateCore(value); + } + template auto INonVirtualizingLayoutOverridesT::InitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context) const + { + return shim().template try_as().InitializeForContextCore(context); + } + template auto INonVirtualizingLayoutOverridesT::UninitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context) const + { + return shim().template try_as().UninitializeForContextCore(context); + } + template auto INonVirtualizingLayoutOverridesT::MeasureOverride(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) const + { + return shim().template try_as().MeasureOverride(context, availableSize); + } + template auto INonVirtualizingLayoutOverridesT::ArrangeOverride(winrt::Microsoft::UI::Xaml::Controls::NonVirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) const + { + return shim().template try_as().ArrangeOverride(context, finalSize); + } + template auto INonVirtualizingLayoutContextOverridesT::ChildrenCore() const + { + return shim().template try_as().ChildrenCore(); + } + template auto IPageOverridesT::OnNavigatedFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) const + { + return shim().template try_as().OnNavigatedFrom(e); + } + template auto IPageOverridesT::OnNavigatedTo(winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) const + { + return shim().template try_as().OnNavigatedTo(e); + } + template auto IPageOverridesT::OnNavigatingFrom(winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventArgs const& e) const + { + return shim().template try_as().OnNavigatingFrom(e); + } + template auto IStyleSelectorOverridesT::SelectStyleCore(winrt::Windows::Foundation::IInspectable const& item, winrt::Microsoft::UI::Xaml::DependencyObject const& container) const + { + return shim().template try_as().SelectStyleCore(item, container); + } + template auto IToggleSwitchOverridesT::OnToggled() const + { + return shim().template try_as().OnToggled(); + } + template auto IToggleSwitchOverridesT::OnOnContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + return shim().template try_as().OnOnContentChanged(oldContent, newContent); + } + template auto IToggleSwitchOverridesT::OnOffContentChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + return shim().template try_as().OnOffContentChanged(oldContent, newContent); + } + template auto IToggleSwitchOverridesT::OnHeaderChanged(winrt::Windows::Foundation::IInspectable const& oldContent, winrt::Windows::Foundation::IInspectable const& newContent) const + { + return shim().template try_as().OnHeaderChanged(oldContent, newContent); + } + template auto IVirtualizingLayoutOverridesT::InitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context) const + { + return shim().template try_as().InitializeForContextCore(context); + } + template auto IVirtualizingLayoutOverridesT::UninitializeForContextCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context) const + { + return shim().template try_as().UninitializeForContextCore(context); + } + template auto IVirtualizingLayoutOverridesT::MeasureOverride(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& availableSize) const + { + return shim().template try_as().MeasureOverride(context, availableSize); + } + template auto IVirtualizingLayoutOverridesT::ArrangeOverride(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::Size const& finalSize) const + { + return shim().template try_as().ArrangeOverride(context, finalSize); + } + template auto IVirtualizingLayoutOverridesT::OnItemsChangedCore(winrt::Microsoft::UI::Xaml::Controls::VirtualizingLayoutContext const& context, winrt::Windows::Foundation::IInspectable const& source, winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventArgs const& args) const + { + return shim().template try_as().OnItemsChangedCore(context, source, args); + } + template auto IVirtualizingLayoutContextOverridesT::ItemCountCore() const + { + return shim().template try_as().ItemCountCore(); + } + template auto IVirtualizingLayoutContextOverridesT::GetItemAtCore(int32_t index) const + { + return shim().template try_as().GetItemAtCore(index); + } + template auto IVirtualizingLayoutContextOverridesT::RealizationRectCore() const + { + return shim().template try_as().RealizationRectCore(); + } + template auto IVirtualizingLayoutContextOverridesT::GetOrCreateElementAtCore(int32_t index, winrt::Microsoft::UI::Xaml::Controls::ElementRealizationOptions const& options) const + { + return shim().template try_as().GetOrCreateElementAtCore(index, options); + } + template auto IVirtualizingLayoutContextOverridesT::RecycleElementCore(winrt::Microsoft::UI::Xaml::UIElement const& element) const + { + return shim().template try_as().RecycleElementCore(element); + } + template auto IVirtualizingLayoutContextOverridesT::RecommendedAnchorIndexCore() const + { + return shim().template try_as().RecommendedAnchorIndexCore(); + } + template auto IVirtualizingLayoutContextOverridesT::LayoutOriginCore() const + { + return shim().template try_as().LayoutOriginCore(); + } + template auto IVirtualizingLayoutContextOverridesT::LayoutOriginCore(winrt::Windows::Foundation::Point const& value) const + { + return shim().template try_as().LayoutOriginCore(value); + } + template auto IVirtualizingLayoutContextOverrides2T::VisibleRectCore() const + { + return shim().template try_as().VisibleRectCore(); + } + template auto IVirtualizingPanelOverridesT::OnItemsChanged(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs const& args) const + { + return shim().template try_as().OnItemsChanged(sender, args); + } + template auto IVirtualizingPanelOverridesT::OnClearChildren() const + { + return shim().template try_as().OnClearChildren(); + } + template auto IVirtualizingPanelOverridesT::BringIndexIntoView(int32_t index) const + { + return shim().template try_as().BringIndexIntoView(index); + } + template auto IVirtualizingStackPanelOverridesT::OnCleanUpVirtualizedItem(winrt::Microsoft::UI::Xaml::Controls::CleanUpVirtualizedItemEventArgs const& e) const + { + return shim().template try_as().OnCleanUpVirtualizedItem(e); + } + template + struct AnimatedIconT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AnimatedIcon; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AnimatedIconT() + { + impl::call_factory([&](IAnimatedIconFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AnimatedIconSourceT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IIconSourceOverridesT + { + using composable = AnimatedIconSource; + friend impl::produce; + protected: + AnimatedIconSourceT() + { + impl::call_factory([&](IAnimatedIconSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AnimatedVisualPlayerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AnimatedVisualPlayer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AnimatedVisualPlayerT() + { + impl::call_factory([&](IAnimatedVisualPlayerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AnnotatedScrollBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AnnotatedScrollBar; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AnnotatedScrollBarT() + { + impl::call_factory([&](IAnnotatedScrollBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AppBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IAppBarOverridesT, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AppBar; + friend impl::produce; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AppBarT() + { + impl::call_factory([&](IAppBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AppBarButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AppBarButton; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AppBarButtonT() + { + impl::call_factory([&](IAppBarButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AppBarElementContainerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AppBarElementContainer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AppBarElementContainerT() + { + impl::call_factory([&](IAppBarElementContainerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AppBarSeparatorT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AppBarSeparator; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AppBarSeparatorT() + { + impl::call_factory([&](IAppBarSeparatorFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct AppBarToggleButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonOverridesT, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = AppBarToggleButton; + friend impl::produce; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + AppBarToggleButtonT() + { + impl::call_factory([&](IAppBarToggleButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct BitmapIconT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = BitmapIcon; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + BitmapIconT() + { + impl::call_factory([&](IBitmapIconFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct BitmapIconSourceT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IIconSourceOverridesT + { + using composable = BitmapIconSource; + friend impl::produce; + protected: + BitmapIconSourceT() + { + impl::call_factory([&](IBitmapIconSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct BreadcrumbBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = BreadcrumbBar; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + BreadcrumbBarT() + { + impl::call_factory([&](IBreadcrumbBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct BreadcrumbBarItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = BreadcrumbBarItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + BreadcrumbBarItemT() + { + impl::call_factory([&](IBreadcrumbBarItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Button; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ButtonT() + { + impl::call_factory([&](IButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CalendarDatePickerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = CalendarDatePicker; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CalendarDatePickerT() + { + impl::call_factory([&](ICalendarDatePickerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CalendarViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = CalendarView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CalendarViewT() + { + impl::call_factory([&](ICalendarViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CalendarViewDayItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = CalendarViewDayItem; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CalendarViewDayItemT() + { + impl::call_factory([&](ICalendarViewDayItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CanvasT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Canvas; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CanvasT() + { + impl::call_factory([&](ICanvasFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CheckBoxT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonOverridesT, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = CheckBox; + friend impl::produce; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CheckBoxT() + { + impl::call_factory([&](ICheckBoxFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ColorPickerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ColorPicker; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ColorPickerT() + { + impl::call_factory([&](IColorPickerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ComboBoxT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IComboBoxOverridesT, winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ComboBox; + friend impl::produce; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ComboBoxT() + { + impl::call_factory([&](IComboBoxFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ComboBoxItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ComboBoxItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ComboBoxItemT() + { + impl::call_factory([&](IComboBoxItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CommandBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IAppBarOverridesT, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = CommandBar; + friend impl::produce; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CommandBarT() + { + impl::call_factory([&](ICommandBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CommandBarFlyoutT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT + { + using composable = CommandBarFlyout; + friend impl::produce; + protected: + CommandBarFlyoutT() + { + impl::call_factory([&](ICommandBarFlyoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct CommandBarOverflowPresenterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = CommandBarOverflowPresenter; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + CommandBarOverflowPresenterT() + { + impl::call_factory([&](ICommandBarOverflowPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ContentControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ContentControl; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ContentControlT() + { + impl::call_factory([&](IContentControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ContentDialogT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ContentDialog; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ContentDialogT() + { + impl::call_factory([&](IContentDialogFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ContentPresenterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ContentPresenter; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ContentPresenterT() + { + impl::call_factory([&](IContentPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Control; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ControlT() + { + impl::call_factory([&](IControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct DataTemplateSelectorT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IDataTemplateSelectorOverridesT + { + using composable = DataTemplateSelector; + friend impl::produce; + protected: + DataTemplateSelectorT() + { + impl::call_factory([&](IDataTemplateSelectorFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct DatePickerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = DatePicker; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + DatePickerT() + { + impl::call_factory([&](IDatePickerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct DropDownButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = DropDownButton; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + DropDownButtonT() + { + impl::call_factory([&](IDropDownButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ExpanderT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Expander; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ExpanderT() + { + impl::call_factory([&](IExpanderFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FlipViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = FlipView; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + FlipViewT() + { + impl::call_factory([&](IFlipViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FlipViewItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = FlipViewItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + FlipViewItemT() + { + impl::call_factory([&](IFlipViewItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FlyoutT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT + { + using composable = Flyout; + friend impl::produce; + protected: + FlyoutT() + { + impl::call_factory([&](IFlyoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FlyoutPresenterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = FlyoutPresenter; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + FlyoutPresenterT() + { + impl::call_factory([&](IFlyoutPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FontIconT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = FontIcon; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + FontIconT() + { + impl::call_factory([&](IFontIconFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FontIconSourceT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IIconSourceOverridesT + { + using composable = FontIconSource; + friend impl::produce; + protected: + FontIconSourceT() + { + impl::call_factory([&](IFontIconSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct FrameT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Frame; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + FrameT() + { + impl::call_factory([&](IFrameFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + using impl::consume_t::Navigate; + using impl::consume_t::Navigate; + }; + template + struct GridT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Grid; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + GridT() + { + impl::call_factory([&](IGridFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct GridViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = GridView; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + GridViewT() + { + impl::call_factory([&](IGridViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct GridViewHeaderItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = GridViewHeaderItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + GridViewHeaderItemT() + { + impl::call_factory([&](IGridViewHeaderItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct GridViewItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = GridViewItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + GridViewItemT() + { + impl::call_factory([&](IGridViewItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct GroupItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = GroupItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + GroupItemT() + { + impl::call_factory([&](IGroupItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct GroupStyleT : + implements, + impl::require, + impl::base + { + using composable = GroupStyle; + protected: + GroupStyleT() + { + impl::call_factory([&](IGroupStyleFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct GroupStyleSelectorT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IGroupStyleSelectorOverridesT + { + using composable = GroupStyleSelector; + friend impl::produce; + protected: + GroupStyleSelectorT() + { + impl::call_factory([&](IGroupStyleSelectorFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct HubT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Hub; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + HubT() + { + impl::call_factory([&](IHubFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct HubSectionT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = HubSection; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + HubSectionT() + { + impl::call_factory([&](IHubSectionFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct HyperlinkButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = HyperlinkButton; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + HyperlinkButtonT() + { + impl::call_factory([&](IHyperlinkButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct IconSourceElementT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = IconSourceElement; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + IconSourceElementT() + { + impl::call_factory([&](IIconSourceElementFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ImageIconT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ImageIcon; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ImageIconT() + { + impl::call_factory([&](IImageIconFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ImageIconSourceT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IIconSourceOverridesT + { + using composable = ImageIconSource; + friend impl::produce; + protected: + ImageIconSourceT() + { + impl::call_factory([&](IImageIconSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct InfoBadgeT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = InfoBadge; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + InfoBadgeT() + { + impl::call_factory([&](IInfoBadgeFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct InfoBadgeTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = InfoBadgeTemplateSettings; + protected: + InfoBadgeTemplateSettingsT() + { + impl::call_factory([&](IInfoBadgeTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct InfoBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = InfoBar; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + InfoBarT() + { + impl::call_factory([&](IInfoBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct InfoBarTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = InfoBarTemplateSettings; + protected: + InfoBarTemplateSettingsT() + { + impl::call_factory([&](IInfoBarTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ItemCollectionTransitionProviderT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemCollectionTransitionProviderOverridesT + { + using composable = ItemCollectionTransitionProvider; + friend impl::produce; + protected: + ItemCollectionTransitionProviderT() + { + impl::call_factory([&](IItemCollectionTransitionProviderFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ItemContainerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ItemContainer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ItemContainerT() + { + impl::call_factory([&](IItemContainerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ItemsControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ItemsControl; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ItemsControlT() + { + impl::call_factory([&](IItemsControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ItemsRepeaterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ItemsRepeater; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ItemsRepeaterT() + { + impl::call_factory([&](IItemsRepeaterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ItemsSourceViewT : + implements, + impl::require, + impl::base + { + using composable = ItemsSourceView; + protected: + ItemsSourceViewT(winrt::Windows::Foundation::IInspectable const& source) + { + impl::call_factory([&](IItemsSourceViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(source, *this, this->m_inner); }); + } + }; + template + struct ItemsViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ItemsView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ItemsViewT() + { + impl::call_factory([&](IItemsViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ItemsWrapGridT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ItemsWrapGrid; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ItemsWrapGridT() + { + impl::call_factory([&](IItemsWrapGridFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct LinedFlowLayoutT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingLayoutOverridesT, winrt::Microsoft::UI::Xaml::Controls::ILayoutOverridesT + { + using composable = LinedFlowLayout; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + LinedFlowLayoutT() + { + impl::call_factory([&](ILinedFlowLayoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct LinedFlowLayoutItemCollectionTransitionProviderT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemCollectionTransitionProviderOverridesT + { + using composable = LinedFlowLayoutItemCollectionTransitionProvider; + friend impl::produce; + protected: + LinedFlowLayoutItemCollectionTransitionProviderT() + { + impl::call_factory([&](ILinedFlowLayoutItemCollectionTransitionProviderFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ListBoxT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ListBox; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ListBoxT() + { + impl::call_factory([&](IListBoxFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ListBoxItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ListBoxItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ListBoxItemT() + { + impl::call_factory([&](IListBoxItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ListViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ListView; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ListViewT() + { + impl::call_factory([&](IListViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ListViewBaseT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ListViewBase; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ListViewBaseT() + { + impl::call_factory([&](IListViewBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ListViewHeaderItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ListViewHeaderItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ListViewHeaderItemT() + { + impl::call_factory([&](IListViewHeaderItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ListViewItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ListViewItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ListViewItemT() + { + impl::call_factory([&](IListViewItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MapControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MapControl; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MapControlT() + { + impl::call_factory([&](IMapControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MapElementsLayerT : + implements, + impl::require, + impl::base + { + using composable = MapElementsLayer; + protected: + MapElementsLayerT() + { + impl::call_factory([&](IMapElementsLayerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MapIconT : + implements, + impl::require, + impl::base + { + using composable = MapIcon; + protected: + MapIconT() + { + impl::call_factory([&](IMapIconFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MediaPlayerElementT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MediaPlayerElement; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MediaPlayerElementT() + { + impl::call_factory([&](IMediaPlayerElementFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MediaPlayerPresenterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MediaPlayerPresenter; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MediaPlayerPresenterT() + { + impl::call_factory([&](IMediaPlayerPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MediaTransportControlsT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MediaTransportControls; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MediaTransportControlsT() + { + impl::call_factory([&](IMediaTransportControlsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MenuBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MenuBar; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MenuBarT() + { + impl::call_factory([&](IMenuBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MenuBarItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MenuBarItem; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MenuBarItemT() + { + impl::call_factory([&](IMenuBarItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MenuBarItemFlyoutT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT + { + using composable = MenuBarItemFlyout; + friend impl::produce; + protected: + MenuBarItemFlyoutT() + { + impl::call_factory([&](IMenuBarItemFlyoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + using impl::consume_t::ShowAt; + using impl::consume_t::ShowAt; + }; + template + struct MenuFlyoutT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT + { + using composable = MenuFlyout; + friend impl::produce; + protected: + MenuFlyoutT() + { + impl::call_factory([&](IMenuFlyoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + using impl::consume_t::ShowAt; + using impl::consume_t::ShowAt; + }; + template + struct MenuFlyoutItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MenuFlyoutItem; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MenuFlyoutItemT() + { + impl::call_factory([&](IMenuFlyoutItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MenuFlyoutPresenterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MenuFlyoutPresenter; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MenuFlyoutPresenterT() + { + impl::call_factory([&](IMenuFlyoutPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct MenuFlyoutSeparatorT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = MenuFlyoutSeparator; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + MenuFlyoutSeparatorT() + { + impl::call_factory([&](IMenuFlyoutSeparatorFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NavigationViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = NavigationView; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + NavigationViewT() + { + impl::call_factory([&](INavigationViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NavigationViewItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = NavigationViewItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + NavigationViewItemT() + { + impl::call_factory([&](INavigationViewItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NavigationViewItemHeaderT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = NavigationViewItemHeader; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + NavigationViewItemHeaderT() + { + impl::call_factory([&](INavigationViewItemHeaderFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NavigationViewItemSeparatorT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = NavigationViewItemSeparator; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + NavigationViewItemSeparatorT() + { + impl::call_factory([&](INavigationViewItemSeparatorFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NavigationViewTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = NavigationViewTemplateSettings; + protected: + NavigationViewTemplateSettingsT() + { + impl::call_factory([&](INavigationViewTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NonVirtualizingLayoutT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::INonVirtualizingLayoutOverridesT, winrt::Microsoft::UI::Xaml::Controls::ILayoutOverridesT + { + using composable = NonVirtualizingLayout; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + NonVirtualizingLayoutT() + { + impl::call_factory([&](INonVirtualizingLayoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NonVirtualizingLayoutContextT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::INonVirtualizingLayoutContextOverridesT, winrt::Microsoft::UI::Xaml::Controls::ILayoutContextOverridesT + { + using composable = NonVirtualizingLayoutContext; + friend impl::produce; + friend impl::produce; + protected: + NonVirtualizingLayoutContextT() + { + impl::call_factory([&](INonVirtualizingLayoutContextFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct NumberBoxT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = NumberBox; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + NumberBoxT() + { + impl::call_factory([&](INumberBoxFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PageT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IPageOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Page; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PageT() + { + impl::call_factory([&](IPageFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PanelT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Panel; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PanelT() + { + impl::call_factory([&](IPanelFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ParallaxViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ParallaxView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ParallaxViewT() + { + impl::call_factory([&](IParallaxViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PathIconT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = PathIcon; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PathIconT() + { + impl::call_factory([&](IPathIconFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PathIconSourceT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IIconSourceOverridesT + { + using composable = PathIconSource; + friend impl::produce; + protected: + PathIconSourceT() + { + impl::call_factory([&](IPathIconSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PersonPictureT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = PersonPicture; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PersonPictureT() + { + impl::call_factory([&](IPersonPictureFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PipsPagerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = PipsPager; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PipsPagerT() + { + impl::call_factory([&](IPipsPagerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PivotT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Pivot; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PivotT() + { + impl::call_factory([&](IPivotFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct PivotItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = PivotItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + PivotItemT() + { + impl::call_factory([&](IPivotItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ProgressBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ProgressBar; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ProgressBarT() + { + impl::call_factory([&](IProgressBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ProgressRingT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ProgressRing; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ProgressRingT() + { + impl::call_factory([&](IProgressRingFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RadioButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IToggleButtonOverridesT, winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RadioButton; + friend impl::produce; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RadioButtonT() + { + impl::call_factory([&](IRadioButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RadioButtonsT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RadioButtons; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RadioButtonsT() + { + impl::call_factory([&](IRadioButtonsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RadioMenuFlyoutItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RadioMenuFlyoutItem; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RadioMenuFlyoutItemT() + { + impl::call_factory([&](IRadioMenuFlyoutItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RatingControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RatingControl; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RatingControlT() + { + impl::call_factory([&](IRatingControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RatingItemFontInfoT : + implements, + impl::require, + impl::base + { + using composable = RatingItemFontInfo; + protected: + RatingItemFontInfoT() + { + impl::call_factory([&](IRatingItemFontInfoFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RatingItemImageInfoT : + implements, + impl::require, + impl::base + { + using composable = RatingItemImageInfo; + protected: + RatingItemImageInfoT() + { + impl::call_factory([&](IRatingItemImageInfoFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RatingItemInfoT : + implements, + impl::require, + impl::base + { + using composable = RatingItemInfo; + protected: + RatingItemInfoT() + { + impl::call_factory([&](IRatingItemInfoFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RefreshContainerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RefreshContainer; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RefreshContainerT() + { + impl::call_factory([&](IRefreshContainerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RefreshVisualizerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RefreshVisualizer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RefreshVisualizerT() + { + impl::call_factory([&](IRefreshVisualizerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RelativePanelT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RelativePanel; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RelativePanelT() + { + impl::call_factory([&](IRelativePanelFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RevealListViewItemPresenterT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentPresenterOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RevealListViewItemPresenter; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RevealListViewItemPresenterT() + { + impl::call_factory([&](IRevealListViewItemPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct RichEditBoxT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = RichEditBox; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + RichEditBoxT() + { + impl::call_factory([&](IRichEditBoxFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ScrollViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ScrollView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ScrollViewT() + { + impl::call_factory([&](IScrollViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ScrollingScrollOptionsT : + implements, + impl::require, + impl::base + { + using composable = ScrollingScrollOptions; + protected: + ScrollingScrollOptionsT(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode) + { + impl::call_factory([&](IScrollingScrollOptionsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(animationMode, *this, this->m_inner); }); + } + ScrollingScrollOptionsT(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& snapPointsMode) + { + impl::call_factory([&](IScrollingScrollOptionsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(animationMode, snapPointsMode, *this, this->m_inner); }); + } + }; + template + struct ScrollingZoomOptionsT : + implements, + impl::require, + impl::base + { + using composable = ScrollingZoomOptions; + protected: + ScrollingZoomOptionsT(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode) + { + impl::call_factory([&](IScrollingZoomOptionsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(animationMode, *this, this->m_inner); }); + } + ScrollingZoomOptionsT(winrt::Microsoft::UI::Xaml::Controls::ScrollingAnimationMode const& animationMode, winrt::Microsoft::UI::Xaml::Controls::ScrollingSnapPointsMode const& snapPointsMode) + { + impl::call_factory([&](IScrollingZoomOptionsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(animationMode, snapPointsMode, *this, this->m_inner); }); + } + }; + template + struct SelectionChangedEventArgsT : + implements, + impl::require, + impl::base + { + using composable = SelectionChangedEventArgs; + protected: + SelectionChangedEventArgsT(param::vector const& removedItems, param::vector const& addedItems) + { + impl::call_factory([&](ISelectionChangedEventArgsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstanceWithRemovedItemsAndAddedItems(removedItems, addedItems, *this, this->m_inner); }); + } + }; + template + struct SelectorBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SelectorBar; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SelectorBarT() + { + impl::call_factory([&](ISelectorBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SelectorBarItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SelectorBarItem; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SelectorBarItemT() + { + impl::call_factory([&](ISelectorBarItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SliderT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IRangeBaseOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = Slider; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SliderT() + { + impl::call_factory([&](ISliderFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SplitButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SplitButton; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SplitButtonT() + { + impl::call_factory([&](ISplitButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SplitViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SplitView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SplitViewT() + { + impl::call_factory([&](ISplitViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct StackLayoutT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingLayoutOverridesT, winrt::Microsoft::UI::Xaml::Controls::ILayoutOverridesT + { + using composable = StackLayout; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + StackLayoutT() + { + impl::call_factory([&](IStackLayoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct StackPanelT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = StackPanel; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + StackPanelT() + { + impl::call_factory([&](IStackPanelFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct StyleSelectorT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IStyleSelectorOverridesT + { + using composable = StyleSelector; + friend impl::produce; + protected: + StyleSelectorT() + { + impl::call_factory([&](IStyleSelectorFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SwapChainBackgroundPanelT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SwapChainBackgroundPanel; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SwapChainBackgroundPanelT() + { + impl::call_factory([&](ISwapChainBackgroundPanelFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SwapChainPanelT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SwapChainPanel; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SwapChainPanelT() + { + impl::call_factory([&](ISwapChainPanelFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SwipeControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = SwipeControl; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + SwipeControlT() + { + impl::call_factory([&](ISwipeControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SwipeItemT : + implements, + impl::require, + impl::base + { + using composable = SwipeItem; + protected: + SwipeItemT() + { + impl::call_factory([&](ISwipeItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SwipeItemsT : + implements, + impl::require, winrt::Windows::Foundation::Collections::IVector, winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base + { + using composable = SwipeItems; + protected: + SwipeItemsT() + { + impl::call_factory([&](ISwipeItemsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct SymbolIconSourceT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IIconSourceOverridesT + { + using composable = SymbolIconSource; + friend impl::produce; + protected: + SymbolIconSourceT() + { + impl::call_factory([&](ISymbolIconSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TabViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TabView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TabViewT() + { + impl::call_factory([&](ITabViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TabViewItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TabViewItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TabViewItemT() + { + impl::call_factory([&](ITabViewItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TabViewItemTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = TabViewItemTemplateSettings; + protected: + TabViewItemTemplateSettingsT() + { + impl::call_factory([&](ITabViewItemTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TeachingTipT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TeachingTip; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TeachingTipT() + { + impl::call_factory([&](ITeachingTipFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TeachingTipTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = TeachingTipTemplateSettings; + protected: + TeachingTipTemplateSettingsT() + { + impl::call_factory([&](ITeachingTipTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TextBoxT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TextBox; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TextBoxT() + { + impl::call_factory([&](ITextBoxFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TextCommandBarFlyoutT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT + { + using composable = TextCommandBarFlyout; + friend impl::produce; + protected: + TextCommandBarFlyoutT() + { + impl::call_factory([&](ITextCommandBarFlyoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TimePickerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TimePicker; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TimePickerT() + { + impl::call_factory([&](ITimePickerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TitleBarT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TitleBar; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TitleBarT() + { + impl::call_factory([&](ITitleBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TitleBarAutomationPeerT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Automation::Peers::IAutomationPeerOverridesT + { + using composable = TitleBarAutomationPeer; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TitleBarAutomationPeerT(winrt::Microsoft::UI::Xaml::Controls::TitleBar const& owner) + { + impl::call_factory([&](ITitleBarAutomationPeerFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(owner, *this, this->m_inner); }); + } + }; + template + struct TitleBarTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = TitleBarTemplateSettings; + protected: + TitleBarTemplateSettingsT() + { + impl::call_factory([&](ITitleBarTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ToggleMenuFlyoutItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ToggleMenuFlyoutItem; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ToggleMenuFlyoutItemT() + { + impl::call_factory([&](IToggleMenuFlyoutItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ToggleSplitButtonT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ToggleSplitButton; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ToggleSplitButtonT() + { + impl::call_factory([&](IToggleSplitButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct ToolTipT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = ToolTip; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + ToolTipT() + { + impl::call_factory([&](IToolTipFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TreeViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TreeView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TreeViewT() + { + impl::call_factory([&](ITreeViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TreeViewItemT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IContentControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TreeViewItem; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TreeViewItemT() + { + impl::call_factory([&](ITreeViewItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TreeViewItemTemplateSettingsT : + implements, + impl::require, + impl::base + { + using composable = TreeViewItemTemplateSettings; + protected: + TreeViewItemTemplateSettingsT() + { + impl::call_factory([&](ITreeViewItemTemplateSettingsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TreeViewListT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IItemsControlOverridesT, winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TreeViewList; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TreeViewListT() + { + impl::call_factory([&](ITreeViewListFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TreeViewNodeT : + implements, + impl::require, + impl::base + { + using composable = TreeViewNode; + protected: + TreeViewNodeT() + { + impl::call_factory([&](ITreeViewNodeFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct TwoPaneViewT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = TwoPaneView; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + TwoPaneViewT() + { + impl::call_factory([&](ITwoPaneViewFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct UniformGridLayoutT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingLayoutOverridesT, winrt::Microsoft::UI::Xaml::Controls::ILayoutOverridesT + { + using composable = UniformGridLayout; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + UniformGridLayoutT() + { + impl::call_factory([&](IUniformGridLayoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct UserControlT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IControlOverridesT, winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = UserControl; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + UserControlT() + { + impl::call_factory([&](IUserControlFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct VirtualizingLayoutT : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingLayoutOverridesT, winrt::Microsoft::UI::Xaml::Controls::ILayoutOverridesT + { + using composable = VirtualizingLayout; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + VirtualizingLayoutT() + { + impl::call_factory([&](IVirtualizingLayoutFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct VirtualizingLayoutContextT : + implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Controls::IVirtualizingLayoutContextOverridesT, winrt::Microsoft::UI::Xaml::Controls::IVirtualizingLayoutContextOverrides2T, winrt::Microsoft::UI::Xaml::Controls::ILayoutContextOverridesT + { + using composable = VirtualizingLayoutContext; + friend impl::produce; + friend impl::produce; + friend impl::produce; + protected: + VirtualizingLayoutContextT() + { + impl::call_factory([&](IVirtualizingLayoutContextFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + }; + template + struct WebView2T : + implements, + impl::require, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, winrt::Microsoft::UI::Xaml::IUIElementOverridesT + { + using composable = WebView2; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + protected: + WebView2T() + { + impl::call_factory([&](IWebView2Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); + } + using impl::consume_t::EnsureCoreWebView2Async; + using impl::consume_t::EnsureCoreWebView2Async; + }; +} +namespace std +{ +#ifndef WINRT_LEAN_AND_MEAN + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; + template<> struct hash : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Data.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Data.h new file mode 100644 index 00000000..394774ea --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Data.h @@ -0,0 +1,4171 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Data_H +#define WINRT_Microsoft_UI_Xaml_Data_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Data.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.UI.Xaml.Interop.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Path() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Path(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Path(&value)); + } + return winrt::Microsoft::UI::Xaml::PropertyPath{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Path( + winrt::Microsoft::UI::Xaml::PropertyPath const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Path(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Path(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Mode() const { + winrt::Microsoft::UI::Xaml::Data::BindingMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Mode( + winrt::Microsoft::UI::Xaml::Data::BindingMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Source() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Source( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::RelativeSource() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RelativeSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RelativeSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Data::RelativeSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::RelativeSource( + winrt::Microsoft::UI::Xaml::Data::RelativeSource const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RelativeSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RelativeSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::ElementName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::ElementName( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ElementName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ElementName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Converter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Converter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Converter(&value)); + } + return winrt::Microsoft::UI::Xaml::Data::IValueConverter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::Converter( + winrt::Microsoft::UI::Xaml::Data::IValueConverter const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Converter(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Converter(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::ConverterParameter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConverterParameter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConverterParameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::ConverterParameter( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ConverterParameter(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ConverterParameter(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::ConverterLanguage() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ConverterLanguage(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ConverterLanguage(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::ConverterLanguage( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ConverterLanguage(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ConverterLanguage(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::FallbackValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::FallbackValue( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::TargetNullValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNullValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNullValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::TargetNullValue( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetNullValue(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetNullValue(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::UpdateSourceTrigger() const { + winrt::Microsoft::UI::Xaml::Data::UpdateSourceTrigger value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UpdateSourceTrigger( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UpdateSourceTrigger( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBinding::UpdateSourceTrigger( + winrt::Microsoft::UI::Xaml::Data::UpdateSourceTrigger const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBinding>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_UpdateSourceTrigger(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_UpdateSourceTrigger(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBindingBaseFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IBindingBaseFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IBindingBaseFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::BindingBase{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBindingExpression::DataItem() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IBindingExpression>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IBindingExpression, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataItem(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBindingExpression::ParentBinding() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IBindingExpression>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IBindingExpression, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ParentBinding(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ParentBinding(&value)); + } + return winrt::Microsoft::UI::Xaml::Data::Binding{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBindingExpression::UpdateSource() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IBindingExpression>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IBindingExpression, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UpdateSource()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->UpdateSource()); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IBindingFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IBindingFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IBindingFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::Binding{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IBindingOperationsStatics::SetBinding( + winrt::Microsoft::UI::Xaml::DependencyObject const& target, + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp, + winrt::Microsoft::UI::Xaml::Data::BindingBase const& binding) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IBindingOperationsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetBinding( + *(void**)(&target), *(void**)(&dp), *(void**)(&binding))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IBindingOperationsStatics>**)this; + check_hresult(_winrt_abi_type->SetBinding( + *(void**)(&target), *(void**)(&dp), *(void**)(&binding))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentItem() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentItem(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentItem(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentPosition() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentPosition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentPosition(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::IsCurrentAfterLast() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCurrentAfterLast(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCurrentAfterLast(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::IsCurrentBeforeFirst() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCurrentBeforeFirst(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCurrentBeforeFirst(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CollectionGroups() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CollectionGroups(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CollectionGroups(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector< + winrt::Windows::Foundation::IInspectable>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::HasMoreItems() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasMoreItems(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasMoreItems(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentChanged( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CurrentChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CurrentChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentChanged( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, CurrentChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CurrentChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CurrentChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentChanging( + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CurrentChanging(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CurrentChanging(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentChanging( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventHandler const& + handler) const { + return impl::make_event_revoker( + this, CurrentChanging(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::CurrentChanging( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CurrentChanging(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CurrentChanging(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::MoveCurrentTo( + winrt::Windows::Foundation::IInspectable const& item) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveCurrentTo(*(void**)(&item), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveCurrentTo(*(void**)(&item), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::MoveCurrentToPosition( + int32_t index) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveCurrentToPosition(index, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveCurrentToPosition(index, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::MoveCurrentToFirst() + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveCurrentToFirst(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveCurrentToFirst(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::MoveCurrentToLast() + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveCurrentToLast(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveCurrentToLast(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::MoveCurrentToNext() + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveCurrentToNext(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveCurrentToNext(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::MoveCurrentToPrevious() + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveCurrentToPrevious(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveCurrentToPrevious(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionView::LoadMoreItemsAsync( + uint32_t count) const { + void* operation{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadMoreItemsAsync(count, &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadMoreItemsAsync(count, &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Xaml::Data::LoadMoreItemsResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewFactory::CreateView() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateView(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateView(&result)); + } + return winrt::Microsoft::UI::Xaml::Data::ICollectionView{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewGroup::Group() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Group(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Group(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewGroup::GroupItems() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GroupItems(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GroupItems(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector< + winrt::Windows::Foundation::IInspectable>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::Source() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::Source( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::View() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_View(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_View(&value)); + } + return winrt::Microsoft::UI::Xaml::Data::ICollectionView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::IsSourceGrouped() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSourceGrouped(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSourceGrouped(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::IsSourceGrouped( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsSourceGrouped(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsSourceGrouped(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::ItemsPath() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsPath(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsPath(&value)); + } + return winrt::Microsoft::UI::Xaml::PropertyPath{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSource::ItemsPath( + winrt::Microsoft::UI::Xaml::PropertyPath const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ItemsPath(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ItemsPath(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSourceStatics< + D>::SourceProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSourceStatics< + D>::ViewProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ViewProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ViewProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSourceStatics< + D>::IsSourceGroupedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSourceGroupedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSourceGroupedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICollectionViewSourceStatics< + D>::ItemsPathProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICollectionViewSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemsPathProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemsPathProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICurrentChangingEventArgs::Cancel() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICurrentChangingEventArgs::Cancel( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs>**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICurrentChangingEventArgs::IsCancelable() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCancelable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs>**)this; + check_hresult(_winrt_abi_type->get_IsCancelable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICurrentChangingEventArgsFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICurrentChangingEventArgsFactory:: + CreateWithCancelableParameter( + bool isCancelable, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithCancelableParameter( + isCancelable, *(void**)(&baseInterface), impl::bind_out(innerInterface), + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithCancelableParameter( + isCancelable, *(void**)(&baseInterface), impl::bind_out(innerInterface), + &value)); + } + return winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::Type() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Type(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Type(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::Name() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::GetValue( + winrt::Windows::Foundation::IInspectable const& target) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetValue(*(void**)(&target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetValue(*(void**)(&target), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::SetValue( + winrt::Windows::Foundation::IInspectable const& target, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetValue(*(void**)(&target), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetValue(*(void**)(&target), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::GetIndexedValue( + winrt::Windows::Foundation::IInspectable const& target, + winrt::Windows::Foundation::IInspectable const& index) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIndexedValue(*(void**)(&target), + *(void**)(&index), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIndexedValue(*(void**)(&target), + *(void**)(&index), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::SetIndexedValue( + winrt::Windows::Foundation::IInspectable const& target, + winrt::Windows::Foundation::IInspectable const& value, + winrt::Windows::Foundation::IInspectable const& index) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetIndexedValue( + *(void**)(&target), *(void**)(&value), *(void**)(&index))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetIndexedValue( + *(void**)(&target), *(void**)(&value), *(void**)(&index))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::CanWrite() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanWrite(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanWrite(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomProperty::CanRead() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ICustomProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanRead(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanRead(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomPropertyProvider< + D>::GetCustomProperty(param::hstring const& name) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomPropertyProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetCustomProperty(*(void**)(&name), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetCustomProperty(*(void**)(&name), &result)); + } + return winrt::Microsoft::UI::Xaml::Data::ICustomProperty{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomPropertyProvider< + D>::GetIndexedProperty(param::hstring const& name, + winrt::Windows::UI::Xaml::Interop::TypeName const& + type) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomPropertyProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIndexedProperty( + *(void**)(&name), impl::bind_in(type), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetIndexedProperty( + *(void**)(&name), impl::bind_in(type), &result)); + } + return winrt::Microsoft::UI::Xaml::Data::ICustomProperty{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomPropertyProvider< + D>::GetStringRepresentation() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomPropertyProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetStringRepresentation(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetStringRepresentation(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ICustomPropertyProvider::Type() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ICustomPropertyProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Type(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Type(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IDataErrorsChangedEventArgs< + D>::PropertyName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IDataErrorsChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PropertyName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PropertyName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IDataErrorsChangedEventArgs< + D>::PropertyName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IDataErrorsChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_PropertyName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_PropertyName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IDataErrorsChangedEventArgsFactory< + D>::CreateInstance(param::hstring const& name) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IDataErrorsChangedEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&name), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&name), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IItemIndexRange::FirstIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IItemIndexRange>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IItemIndexRange, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FirstIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FirstIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IItemIndexRange::Length() const { + uint32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IItemIndexRange>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IItemIndexRange, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Length(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Length(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IItemIndexRange::LastIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IItemIndexRange>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IItemIndexRange, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LastIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LastIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IItemIndexRangeFactory::CreateInstance( + int32_t firstIndex, uint32_t length, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::IItemIndexRangeFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IItemIndexRangeFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + firstIndex, length, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + firstIndex, length, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::ItemIndexRange{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IItemsRangeInfo::RangesChanged( + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const& visibleRange, + param::vector_view const& + trackedItems) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IItemsRangeInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IItemsRangeInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RangesChanged(*(void**)(&visibleRange), + *(void**)(&trackedItems))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RangesChanged(*(void**)(&visibleRange), + *(void**)(&trackedItems))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyDataErrorInfo::HasErrors() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasErrors(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasErrors(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyDataErrorInfo::ErrorsChanged( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ErrorsChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ErrorsChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyDataErrorInfo::ErrorsChanged( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ErrorsChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyDataErrorInfo::ErrorsChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ErrorsChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ErrorsChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyDataErrorInfo::GetErrors( + param::hstring const& propertyName) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::INotifyDataErrorInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetErrors(*(void**)(&propertyName), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetErrors(*(void**)(&propertyName), &result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Windows::Foundation::IInspectable>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyPropertyChanged::PropertyChanged( + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::INotifyPropertyChanged>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::INotifyPropertyChanged, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PropertyChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_PropertyChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyPropertyChanged::PropertyChanged( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& + handler) const { + return impl::make_event_revoker( + this, PropertyChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Data_INotifyPropertyChanged::PropertyChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::INotifyPropertyChanged>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::INotifyPropertyChanged, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PropertyChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_PropertyChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IPropertyChangedEventArgs::PropertyName() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PropertyName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_PropertyName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IPropertyChangedEventArgsFactory:: + CreateInstance( + param::hstring const& name, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&name), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&name), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IRelativeSource::Mode() const { + winrt::Microsoft::UI::Xaml::Data::RelativeSourceMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IRelativeSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IRelativeSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IRelativeSource::Mode( + winrt::Microsoft::UI::Xaml::Data::RelativeSourceMode const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IRelativeSource>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IRelativeSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_IRelativeSourceFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Data::IRelativeSourceFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IRelativeSourceFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Data::RelativeSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ISelectionInfo::SelectRange( + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const& itemIndexRange) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ISelectionInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ISelectionInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SelectRange(*(void**)(&itemIndexRange))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SelectRange(*(void**)(&itemIndexRange))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ISelectionInfo::DeselectRange( + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const& itemIndexRange) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ISelectionInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ISelectionInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DeselectRange(*(void**)(&itemIndexRange))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->DeselectRange(*(void**)(&itemIndexRange))); + } +} +template +auto consume_Microsoft_UI_Xaml_Data_ISelectionInfo::IsSelected( + int32_t index) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ISelectionInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ISelectionInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->IsSelected(index, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->IsSelected(index, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Data_ISelectionInfo::GetSelectedRanges() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::ISelectionInfo>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ISelectionInfo, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetSelectedRanges(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetSelectedRanges(&result)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ISupportIncrementalLoading< + D>::LoadMoreItemsAsync(uint32_t count) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ISupportIncrementalLoading, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadMoreItemsAsync(count, &operation)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadMoreItemsAsync(count, &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Xaml::Data::LoadMoreItemsResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_ISupportIncrementalLoading< + D>::HasMoreItems() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::ISupportIncrementalLoading, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasMoreItems(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasMoreItems(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Data_IValueConverter::Convert( + winrt::Windows::Foundation::IInspectable const& value, + winrt::Windows::UI::Xaml::Interop::TypeName const& targetType, + winrt::Windows::Foundation::IInspectable const& parameter, + param::hstring const& language) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IValueConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IValueConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Convert( + *(void**)(&value), impl::bind_in(targetType), *(void**)(¶meter), + *(void**)(&language), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Convert( + *(void**)(&value), impl::bind_in(targetType), *(void**)(¶meter), + *(void**)(&language), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Data_IValueConverter::ConvertBack( + winrt::Windows::Foundation::IInspectable const& value, + winrt::Windows::UI::Xaml::Interop::TypeName const& targetType, + winrt::Windows::Foundation::IInspectable const& parameter, + param::hstring const& language) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Data::IValueConverter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Data::IValueConverter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertBack( + *(void**)(&value), impl::bind_in(targetType), *(void**)(¶meter), + *(void**)(&language), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ConvertBack( + *(void**)(&value), impl::bind_in(targetType), *(void**)(¶meter), + *(void**)(&language), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +struct delegate + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Path(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Path()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Path(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Path( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Mode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Mode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Source(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Source( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RelativeSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RelativeSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RelativeSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RelativeSource( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::RelativeSource const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ElementName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ElementName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ElementName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Converter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Converter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Converter(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Converter( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::IValueConverter const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ConverterParameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ConverterParameter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ConverterParameter(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConverterParameter( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ConverterLanguage(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ConverterLanguage()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ConverterLanguage(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ConverterLanguage(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FallbackValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FallbackValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FallbackValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackValue( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetNullValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNullValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetNullValue(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetNullValue( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UpdateSourceTrigger(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UpdateSourceTrigger()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UpdateSourceTrigger(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UpdateSourceTrigger( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::UpdateSourceTrigger const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DataItem(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DataItem()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ParentBinding(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ParentBinding()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall UpdateSource() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UpdateSource(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::IBindingExpressionBaseFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::IBindingExpressionFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::IBindingOperationsStatics> { + int32_t __stdcall SetBinding(void* target, void* dp, + void* binding) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetBinding( + *reinterpret_cast( + &target), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp), + *reinterpret_cast( + &binding)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_CurrentItem(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CurrentItem()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurrentPosition(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentPosition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCurrentAfterLast(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCurrentAfterLast()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCurrentBeforeFirst(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCurrentBeforeFirst()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CollectionGroups(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from>( + this->shim().CollectionGroups()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasMoreItems(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasMoreItems()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_CurrentChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CurrentChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CurrentChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CurrentChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CurrentChanging( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CurrentChanging( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CurrentChanging( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CurrentChanging( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall MoveCurrentTo(void* item, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveCurrentTo( + *reinterpret_cast( + &item))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveCurrentToPosition(int32_t index, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveCurrentToPosition(index)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveCurrentToFirst(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveCurrentToFirst()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveCurrentToLast(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveCurrentToLast()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveCurrentToNext(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveCurrentToNext()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveCurrentToPrevious(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveCurrentToPrevious()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LoadMoreItemsAsync(uint32_t count, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().LoadMoreItemsAsync(count)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall CreateView(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateView()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_Group(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Group()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GroupItems(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from>( + this->shim().GroupItems()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Source(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Source( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_View(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().View()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSourceGrouped(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSourceGrouped()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsSourceGrouped(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsSourceGrouped(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemsPath(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemsPath()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ItemsPath(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ItemsPath( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::ICollectionViewSourceStatics> { + int32_t __stdcall get_SourceProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ViewProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ViewProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsSourceGroupedProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsSourceGroupedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemsPathProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemsPathProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs> { + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCancelable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCancelable()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgsFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgsFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventArgs>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithCancelableParameter(bool isCancelable, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventArgs>( + this->shim().CreateWithCancelableParameter( + isCancelable, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_Type( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetValue(void* target, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetValue( + *reinterpret_cast( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetValue(void* target, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetValue( + *reinterpret_cast( + &target), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIndexedValue(void* target, void* index, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetIndexedValue( + *reinterpret_cast( + &target), + *reinterpret_cast( + &index))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIndexedValue(void* target, void* value, + void* index) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIndexedValue( + *reinterpret_cast( + &target), + *reinterpret_cast( + &value), + *reinterpret_cast( + &index)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanWrite(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanWrite()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanRead(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanRead()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall GetCustomProperty(void* name, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCustomProperty( + *reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIndexedProperty( + void* name, struct struct_Windows_UI_Xaml_Interop_TypeName type, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetIndexedProperty( + *reinterpret_cast(&name), + *reinterpret_cast< + winrt::Windows::UI::Xaml::Interop::TypeName const*>(&type))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStringRepresentation(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStringRepresentation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Type( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::IDataErrorsChangedEventArgs> { + int32_t __stdcall get_PropertyName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PropertyName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_PropertyName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PropertyName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Data::IDataErrorsChangedEventArgsFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* name, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs>( + this->shim().CreateInstance(*reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FirstIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FirstIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Length(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Length()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LastIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LastIndex()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(int32_t firstIndex, uint32_t length, + void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + firstIndex, length, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall RangesChanged(void* visibleRange, + void* trackedItems) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RangesChanged( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const*>( + &visibleRange), + *reinterpret_cast const*>( + &trackedItems)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_HasErrors(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasErrors()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ErrorsChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ErrorsChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ErrorsChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ErrorsChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetErrors(void* propertyName, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetErrors( + *reinterpret_cast(&propertyName))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall add_PropertyChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PropertyChanged( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PropertyChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PropertyChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgs> { + int32_t __stdcall get_PropertyName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PropertyName()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgsFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgsFactory> { + int32_t __stdcall CreateInstance(void* name, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventArgs>( + this->shim().CreateInstance( + *reinterpret_cast(&name), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Mode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Mode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Mode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::RelativeSourceMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall SelectRange(void* itemIndexRange) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SelectRange( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const*>( + &itemIndexRange)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall DeselectRange(void* itemIndexRange) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DeselectRange( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Data::ItemIndexRange const*>( + &itemIndexRange)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IsSelected(int32_t index, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().IsSelected(index)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSelectedRanges(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetSelectedRanges()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Data::ISupportIncrementalLoading> { + int32_t __stdcall LoadMoreItemsAsync(uint32_t count, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().LoadMoreItemsAsync(count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasMoreItems(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasMoreItems()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall Convert( + void* value, struct struct_Windows_UI_Xaml_Interop_TypeName targetType, + void* parameter, void* language, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Windows::Foundation::IInspectable>(this->shim().Convert( + *reinterpret_cast( + &value), + *reinterpret_cast( + &targetType), + *reinterpret_cast( + ¶meter), + *reinterpret_cast(&language))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertBack( + void* value, struct struct_Windows_UI_Xaml_Interop_TypeName targetType, + void* parameter, void* language, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Windows::Foundation::IInspectable>(this->shim().ConvertBack( + *reinterpret_cast( + &value), + *reinterpret_cast( + &targetType), + *reinterpret_cast( + ¶meter), + *reinterpret_cast(&language))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Data { + inline Binding::Binding() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IBindingFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline BindingBase::BindingBase() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IBindingBaseFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto BindingOperations::SetBinding( + winrt::Microsoft::UI::Xaml::DependencyObject const& target, + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp, + winrt::Microsoft::UI::Xaml::Data::BindingBase const& binding) { + impl::call_factory( + [&](IBindingOperationsStatics const& f) { + return f.SetBinding(target, dp, binding); + }); + } + inline CollectionViewSource::CollectionViewSource() + : CollectionViewSource( + impl::call_factory_cast< + CollectionViewSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CollectionViewSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto CollectionViewSource::SourceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICollectionViewSourceStatics const&), + CollectionViewSource, ICollectionViewSourceStatics>( + [](ICollectionViewSourceStatics const& f) { + return f.SourceProperty(); + }); + } + inline auto CollectionViewSource::ViewProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICollectionViewSourceStatics const&), + CollectionViewSource, ICollectionViewSourceStatics>( + [](ICollectionViewSourceStatics const& f) { return f.ViewProperty(); }); + } + inline auto CollectionViewSource::IsSourceGroupedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICollectionViewSourceStatics const&), + CollectionViewSource, ICollectionViewSourceStatics>( + [](ICollectionViewSourceStatics const& f) { + return f.IsSourceGroupedProperty(); + }); + } + inline auto CollectionViewSource::ItemsPathProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICollectionViewSourceStatics const&), + CollectionViewSource, ICollectionViewSourceStatics>( + [](ICollectionViewSourceStatics const& f) { + return f.ItemsPathProperty(); + }); + } + inline CurrentChangingEventArgs::CurrentChangingEventArgs() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICurrentChangingEventArgsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline CurrentChangingEventArgs::CurrentChangingEventArgs(bool isCancelable) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICurrentChangingEventArgsFactory const& f) { + return f.CreateWithCancelableParameter(isCancelable, baseInterface, + innerInterface); + }); + } + inline DataErrorsChangedEventArgs::DataErrorsChangedEventArgs( + param::hstring const& name) + : DataErrorsChangedEventArgs( + impl::call_factory( + [&](IDataErrorsChangedEventArgsFactory const& f) { + return f.CreateInstance(name); + })) {} + inline ItemIndexRange::ItemIndexRange(int32_t firstIndex, uint32_t length) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IItemIndexRangeFactory const& f) { + return f.CreateInstance(firstIndex, length, baseInterface, + innerInterface); + }); + } + inline PropertyChangedEventArgs::PropertyChangedEventArgs( + param::hstring const& name) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPropertyChangedEventArgsFactory const& f) { + return f.CreateInstance(name, baseInterface, innerInterface); + }); + } + inline RelativeSource::RelativeSource() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRelativeSourceFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + template + CurrentChangingEventHandler::CurrentChangingEventHandler(L handler) + : CurrentChangingEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + CurrentChangingEventHandler::CurrentChangingEventHandler(F * handler) + : CurrentChangingEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + CurrentChangingEventHandler::CurrentChangingEventHandler(O * object, M method) + : CurrentChangingEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + CurrentChangingEventHandler::CurrentChangingEventHandler(com_ptr && object, + M method) + : CurrentChangingEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + CurrentChangingEventHandler::CurrentChangingEventHandler( + weak_ref && object, LM && lambda_or_method) + : CurrentChangingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + CurrentChangingEventHandler::CurrentChangingEventHandler( + std::shared_ptr && object, M method) + : CurrentChangingEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + CurrentChangingEventHandler::CurrentChangingEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : CurrentChangingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto CurrentChangingEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Data::CurrentChangingEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + PropertyChangedEventHandler::PropertyChangedEventHandler(L handler) + : PropertyChangedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + PropertyChangedEventHandler::PropertyChangedEventHandler(F * handler) + : PropertyChangedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + PropertyChangedEventHandler::PropertyChangedEventHandler(O * object, M method) + : PropertyChangedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + PropertyChangedEventHandler::PropertyChangedEventHandler(com_ptr && object, + M method) + : PropertyChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + PropertyChangedEventHandler::PropertyChangedEventHandler( + weak_ref && object, LM && lambda_or_method) + : PropertyChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + PropertyChangedEventHandler::PropertyChangedEventHandler( + std::shared_ptr && object, M method) + : PropertyChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + PropertyChangedEventHandler::PropertyChangedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : PropertyChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto PropertyChangedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + struct BindingT + : implements, + impl::require, + impl::base { + using composable = Binding; + + protected: + BindingT() { + impl::call_factory( + [&](IBindingFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct BindingBaseT + : implements, + impl::require, + impl::base { + using composable = BindingBase; + + protected: + BindingBaseT() { + impl::call_factory( + [&](IBindingBaseFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct CurrentChangingEventArgsT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Data::ICurrentChangingEventArgs>, + impl::base { + using composable = CurrentChangingEventArgs; + + protected: + CurrentChangingEventArgsT() { + impl::call_factory( + [&](ICurrentChangingEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + CurrentChangingEventArgsT(bool isCancelable) { + impl::call_factory( + [&](ICurrentChangingEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateWithCancelableParameter(isCancelable, *this, + this->m_inner); + }); + } + }; + template + struct ItemIndexRangeT + : implements, + impl::require, + impl::base { + using composable = ItemIndexRange; + + protected: + ItemIndexRangeT(int32_t firstIndex, uint32_t length) { + impl::call_factory( + [&](IItemIndexRangeFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(firstIndex, length, *this, this->m_inner); + }); + } + }; + template + struct PropertyChangedEventArgsT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Data::IPropertyChangedEventArgs>, + impl::base { + using composable = PropertyChangedEventArgs; + + protected: + PropertyChangedEventArgsT(param::hstring const& name) { + impl::call_factory( + [&](IPropertyChangedEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(name, *this, this->m_inner); + }); + } + }; + template + struct RelativeSourceT + : implements, + impl::require, + impl::base { + using composable = RelativeSource; + + protected: + RelativeSourceT() { + impl::call_factory( + [&](IRelativeSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Data::IDataErrorsChangedEventArgsFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Documents.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Documents.h new file mode 100644 index 00000000..b8acc75c --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Documents.h @@ -0,0 +1,12382 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Documents_H +#define WINRT_Microsoft_UI_Xaml_Documents_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Documents.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Input.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.UI.Text.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::TextAlignment() const { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_TextAlignment(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::TextAlignment( + winrt::Microsoft::UI::Xaml::TextAlignment const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TextAlignment(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TextAlignment(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::HorizontalTextAlignment() + const { + winrt::Microsoft::UI::Xaml::TextAlignment value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::HorizontalTextAlignment( + winrt::Microsoft::UI::Xaml::TextAlignment const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalTextAlignment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::LineHeight() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::LineHeight( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LineHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::LineStackingStrategy() + const { + winrt::Microsoft::UI::Xaml::LineStackingStrategy value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::LineStackingStrategy( + winrt::Microsoft::UI::Xaml::LineStackingStrategy const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_LineStackingStrategy(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::Margin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Margin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Margin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlock::Margin( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlock>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Margin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Margin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlockFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlockFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IBlockFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Documents::Block{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlockStatics< + D>::TextAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlockStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IBlockStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlockStatics< + D>::HorizontalTextAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlockStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IBlockStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalTextAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlockStatics::LineHeightProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlockStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IBlockStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlockStatics< + D>::LineStackingStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlockStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IBlockStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LineStackingStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IBlockStatics::MarginProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IBlockStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IBlockStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::UnicodeString() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnicodeString(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnicodeString(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::UnicodeString( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UnicodeString(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UnicodeString(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::Indices() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Indices(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Indices(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::Indices( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Indices(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Indices(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::FontUri() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::FontUri( + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontUri(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontUri(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::StyleSimulations() const { + winrt::Microsoft::UI::Xaml::Media::StyleSimulations value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleSimulations( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleSimulations( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::StyleSimulations( + winrt::Microsoft::UI::Xaml::Media::StyleSimulations const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StyleSimulations(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_StyleSimulations(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::FontRenderingEmSize() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontRenderingEmSize(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontRenderingEmSize(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::FontRenderingEmSize( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontRenderingEmSize(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontRenderingEmSize(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::OriginX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OriginX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OriginX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::OriginX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OriginX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OriginX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::OriginY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OriginY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OriginY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::OriginY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OriginY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OriginY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::Fill() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Fill(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Fill(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::Fill( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::IsColorFontEnabled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::IsColorFontEnabled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsColorFontEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::ColorFontPaletteIndex() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorFontPaletteIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorFontPaletteIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphs::ColorFontPaletteIndex( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ColorFontPaletteIndex(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ColorFontPaletteIndex(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics< + D>::UnicodeStringProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnicodeStringProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnicodeStringProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics::IndicesProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IndicesProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IndicesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics::FontUriProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontUriProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontUriProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics< + D>::StyleSimulationsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleSimulationsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleSimulationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics< + D>::FontRenderingEmSizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontRenderingEmSizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontRenderingEmSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics::OriginXProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OriginXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OriginXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics::OriginYProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OriginYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OriginYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics::FillProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics< + D>::IsColorFontEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsColorFontEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IGlyphsStatics< + D>::ColorFontPaletteIndexProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IGlyphsStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorFontPaletteIndexProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorFontPaletteIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::NavigateUri() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigateUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigateUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::NavigateUri( + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NavigateUri(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NavigateUri(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::UnderlineStyle() const { + winrt::Microsoft::UI::Xaml::Documents::UnderlineStyle value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnderlineStyle( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnderlineStyle( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::UnderlineStyle( + winrt::Microsoft::UI::Xaml::Documents::UnderlineStyle const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_UnderlineStyle(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_UnderlineStyle(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusLeft() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusLeft(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusLeft(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusLeft( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusLeft(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusLeft(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusRight() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusRight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusRight(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusRight( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusRight(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusRight(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusUp() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusUp(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusUp(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusUp( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusUp(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusUp(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusDown() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusDown(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusDown(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::XYFocusDown( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusDown(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusDown(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::ElementSoundMode() + const { + winrt::Microsoft::UI::Xaml::ElementSoundMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementSoundMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementSoundMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::ElementSoundMode( + winrt::Microsoft::UI::Xaml::ElementSoundMode const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ElementSoundMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ElementSoundMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::FocusState() const { + winrt::Microsoft::UI::Xaml::FocusState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink< + D>::XYFocusUpNavigationStrategy() const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusUpNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusUpNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink:: + XYFocusUpNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusUpNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusUpNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink< + D>::XYFocusDownNavigationStrategy() const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusDownNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusDownNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink:: + XYFocusDownNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusDownNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusDownNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink< + D>::XYFocusLeftNavigationStrategy() const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusLeftNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusLeftNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink:: + XYFocusLeftNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusLeftNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusLeftNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink< + D>::XYFocusRightNavigationStrategy() const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusRightNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusRightNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink:: + XYFocusRightNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusRightNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusRightNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::IsTabStop() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTabStop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTabStop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::IsTabStop( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTabStop(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTabStop(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::TabIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::TabIndex( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabIndex(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabIndex(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::Click( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::Hyperlink, + winrt::Microsoft::UI::Xaml::Documents::HyperlinkClickEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::Click( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::Hyperlink, + winrt::Microsoft::UI::Xaml::Documents::HyperlinkClickEventArgs> const& + handler) const { + return impl::make_event_revoker(this, Click(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::Click( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Click(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::GotFocus( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::GotFocus( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, GotFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::GotFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::LostFocus( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::LostFocus( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, + LostFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::LostFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlink::Focus( + winrt::Microsoft::UI::Xaml::FocusState const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlink>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlink, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Focus(static_cast(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Focus(static_cast(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::NavigateUriProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigateUriProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigateUriProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::UnderlineStyleProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnderlineStyleProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_UnderlineStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusLeftProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusLeftProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusLeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusRightProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusRightProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusRightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusUpProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusUpProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusUpProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusDownProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusDownProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusDownProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::ElementSoundModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::FocusStateProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusStateProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusUpNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusUpNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusUpNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusDownNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusDownNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusDownNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusLeftNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusLeftNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusLeftNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::XYFocusRightNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusRightNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusRightNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::IsTabStopProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTabStopProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTabStopProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IHyperlinkStatics< + D>::TabIndexProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IHyperlinkStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabIndexProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_TabIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IInlineFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IInlineFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IInlineFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Documents::Inline{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IInlineUIContainer::Child() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IInlineUIContainer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Child(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Child(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IInlineUIContainer::Child( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IInlineUIContainer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IParagraph::Inlines() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IParagraph>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IParagraph, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Inlines(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Inlines(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::InlineCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IParagraph::TextIndent() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IParagraph>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IParagraph, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextIndent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextIndent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IParagraph::TextIndent( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IParagraph>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IParagraph, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TextIndent(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TextIndent(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IParagraphStatics< + D>::TextIndentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::IParagraphStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IParagraphStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextIndentProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_TextIndentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IRun::Text() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Text(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Text(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IRun::Text( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Text(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IRun::FlowDirection() const { + winrt::Microsoft::UI::Xaml::FlowDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FlowDirection(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FlowDirection(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_IRun::FlowDirection( + winrt::Microsoft::UI::Xaml::FlowDirection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FlowDirection(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FlowDirection(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_IRunStatics::FlowDirectionProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::IRunStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::IRunStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlowDirectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlowDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ISpan::Inlines() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Inlines(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Inlines(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::InlineCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ISpan::Inlines( + winrt::Microsoft::UI::Xaml::Documents::InlineCollection const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Inlines(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Inlines(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ISpanFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ISpanFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ISpanFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Documents::Span{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::Name() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontSize() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontSize(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontSize( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontSize(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontFamily() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontFamily( + winrt::Microsoft::UI::Xaml::Media::FontFamily const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontFamily(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontWeight() const { + winrt::Windows::UI::Text::FontWeight value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FontWeight(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontWeight( + winrt::Windows::UI::Text::FontWeight const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontWeight(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontStyle() const { + winrt::Windows::UI::Text::FontStyle value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FontStyle(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontStyle( + winrt::Windows::UI::Text::FontStyle const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FontStyle(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontStretch() const { + winrt::Windows::UI::Text::FontStretch value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FontStretch(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FontStretch( + winrt::Windows::UI::Text::FontStretch const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FontStretch(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FontStretch(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::CharacterSpacing() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacing(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::CharacterSpacing( + int32_t value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CharacterSpacing(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::Foreground() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::Foreground( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::Language() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Language(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Language(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::Language( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Language(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Language(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::IsTextScaleFactorEnabled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTextScaleFactorEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::IsTextScaleFactorEnabled(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTextScaleFactorEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::TextDecorations() + const { + winrt::Windows::UI::Text::TextDecorations value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDecorations( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TextDecorations( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::TextDecorations( + winrt::Windows::UI::Text::TextDecorations const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TextDecorations(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TextDecorations(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::ContentStart() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::ContentEnd() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::ElementStart() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementStart(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementStart(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::ElementEnd() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ElementEnd(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ElementEnd(&value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::AllowFocusOnInteraction() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::AllowFocusOnInteraction(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKey() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKey(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKey(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKey( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AccessKey(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AccessKey(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::ExitDisplayModeOnAccessKeyInvoked() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvoked(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvoked(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::ExitDisplayModeOnAccessKeyInvoked(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ExitDisplayModeOnAccessKeyInvoked(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ExitDisplayModeOnAccessKeyInvoked(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::IsAccessKeyScope() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAccessKeyScope(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAccessKeyScope(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::IsAccessKeyScope( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAccessKeyScope(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAccessKeyScope(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKeyScopeOwner() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwner(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwner(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKeyScopeOwner( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AccessKeyScopeOwner(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AccessKeyScopeOwner(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::KeyTipPlacementMode() + const { + winrt::Microsoft::UI::Xaml::Input::KeyTipPlacementMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipPlacementMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipPlacementMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::KeyTipPlacementMode( + winrt::Microsoft::UI::Xaml::Input::KeyTipPlacementMode const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_KeyTipPlacementMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_KeyTipPlacementMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::KeyTipHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement< + D>::KeyTipHorizontalOffset(double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTipHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTipHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::KeyTipVerticalOffset() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::KeyTipVerticalOffset( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTipVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTipVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::XamlRoot() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XamlRoot(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XamlRoot(&value)); + } + return winrt::Microsoft::UI::Xaml::XamlRoot{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::XamlRoot( + winrt::Microsoft::UI::Xaml::XamlRoot const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement:: + AccessKeyDisplayRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::TextElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayRequestedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement:: + AccessKeyDisplayRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::TextElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayRequestedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, AccessKeyDisplayRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement:: + AccessKeyDisplayRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AccessKeyDisplayRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AccessKeyDisplayRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement:: + AccessKeyDisplayDismissed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::TextElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayDismissedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayDismissed( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayDismissed( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement:: + AccessKeyDisplayDismissed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::TextElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayDismissedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, AccessKeyDisplayDismissed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement:: + AccessKeyDisplayDismissed(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AccessKeyDisplayDismissed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AccessKeyDisplayDismissed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKeyInvoked( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::TextElement, + winrt::Microsoft::UI::Xaml::Input::AccessKeyInvokedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AccessKeyInvoked(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AccessKeyInvoked(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKeyInvoked( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Documents::TextElement, + winrt::Microsoft::UI::Xaml::Input::AccessKeyInvokedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, AccessKeyInvoked(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::AccessKeyInvoked( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AccessKeyInvoked(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AccessKeyInvoked(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElement::FindName( + param::hstring const& name) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElement, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindName(*(void**)(&name), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindName(*(void**)(&name), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementOverrides< + D>::OnDisconnectVisualChildren() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDisconnectVisualChildren()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDisconnectVisualChildren()); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::FontSizeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_FontSizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::FontFamilyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_FontFamilyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::FontWeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_FontWeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::FontStyleProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_FontStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::FontStretchProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_FontStretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::CharacterSpacingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_CharacterSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::ForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::LanguageProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LanguageProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_LanguageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::IsTextScaleFactorEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult( + _winrt_abi_type->get_IsTextScaleFactorEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::TextDecorationsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TextDecorationsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_TextDecorationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::AllowFocusOnInteractionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::AccessKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::ExitDisplayModeOnAccessKeyInvokedProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvokedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvokedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::IsAccessKeyScopeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAccessKeyScopeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_IsAccessKeyScopeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::AccessKeyScopeOwnerProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwnerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwnerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::KeyTipPlacementModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipPlacementModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_KeyTipPlacementModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::KeyTipHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextElementStatics< + D>::KeyTipVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Documents::ITextElementStatics>**)this; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighter::Ranges() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Ranges(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Ranges(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Documents::TextRange>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighter::Foreground() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Foreground(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighter::Foreground( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Foreground(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighter::Background() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Background(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Background(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighter::Background( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighter, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Background(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighterFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextHighlighter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighterStatics< + D>::ForegroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ForegroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextHighlighterStatics< + D>::BackgroundProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BackgroundProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextPointer::Parent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextPointer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextPointer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextPointer::VisualParent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextPointer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextPointer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VisualParent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VisualParent(&value)); + } + return winrt::Microsoft::UI::Xaml::FrameworkElement{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextPointer::LogicalDirection() + const { + winrt::Microsoft::UI::Xaml::Documents::LogicalDirection value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextPointer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextPointer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LogicalDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LogicalDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextPointer::Offset() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextPointer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextPointer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextPointer::GetCharacterRect( + winrt::Microsoft::UI::Xaml::Documents::LogicalDirection const& direction) + const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextPointer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextPointer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCharacterRect( + static_cast(direction), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCharacterRect( + static_cast(direction), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITextPointer::GetPositionAtOffset( + int32_t offset, + winrt::Microsoft::UI::Xaml::Documents::LogicalDirection const& direction) + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Documents::ITextPointer>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITextPointer, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPositionAtOffset( + offset, static_cast(direction), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPositionAtOffset( + offset, static_cast(direction), &result)); + } + return winrt::Microsoft::UI::Xaml::Documents::TextPointer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::AnnotationAlternatesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnnotationAlternatesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AnnotationAlternatesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetAnnotationAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAnnotationAlternates(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetAnnotationAlternates(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetAnnotationAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetAnnotationAlternates(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetAnnotationAlternates(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::EastAsianExpertFormsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EastAsianExpertFormsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_EastAsianExpertFormsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetEastAsianExpertForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetEastAsianExpertForms(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetEastAsianExpertForms(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetEastAsianExpertForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetEastAsianExpertForms(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetEastAsianExpertForms(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::EastAsianLanguageProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EastAsianLanguageProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_EastAsianLanguageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetEastAsianLanguage(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::FontEastAsianLanguage result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetEastAsianLanguage( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetEastAsianLanguage( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetEastAsianLanguage( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontEastAsianLanguage const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetEastAsianLanguage( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetEastAsianLanguage( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::EastAsianWidthsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EastAsianWidthsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_EastAsianWidthsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetEastAsianWidths(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::FontEastAsianWidths result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetEastAsianWidths( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetEastAsianWidths( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetEastAsianWidths( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontEastAsianWidths const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetEastAsianWidths( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetEastAsianWidths( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StandardLigaturesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StandardLigaturesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StandardLigaturesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStandardLigatures(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStandardLigatures(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStandardLigatures(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStandardLigatures(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStandardLigatures(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStandardLigatures(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::ContextualLigaturesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContextualLigaturesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ContextualLigaturesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetContextualLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetContextualLigatures(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetContextualLigatures(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetContextualLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetContextualLigatures(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetContextualLigatures(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::DiscretionaryLigaturesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DiscretionaryLigaturesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DiscretionaryLigaturesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetDiscretionaryLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDiscretionaryLigatures( + *(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetDiscretionaryLigatures( + *(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetDiscretionaryLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetDiscretionaryLigatures(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetDiscretionaryLigatures(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::HistoricalLigaturesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HistoricalLigaturesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_HistoricalLigaturesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetHistoricalLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetHistoricalLigatures(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetHistoricalLigatures(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetHistoricalLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetHistoricalLigatures(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetHistoricalLigatures(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StandardSwashesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StandardSwashesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StandardSwashesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStandardSwashes(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStandardSwashes(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStandardSwashes(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStandardSwashes(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStandardSwashes(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStandardSwashes(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::ContextualSwashesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContextualSwashesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ContextualSwashesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetContextualSwashes(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetContextualSwashes(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetContextualSwashes(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetContextualSwashes(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetContextualSwashes(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetContextualSwashes(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::ContextualAlternatesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContextualAlternatesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ContextualAlternatesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetContextualAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetContextualAlternates(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetContextualAlternates(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetContextualAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetContextualAlternates(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetContextualAlternates(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticAlternatesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticAlternatesProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticAlternatesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetStylisticAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticAlternates(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticAlternates(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetStylisticAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticAlternates(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticAlternates(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet1Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet1Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet1Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet1(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet1(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet1(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet1(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet1(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet1(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet2Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet2Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet2Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet2(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet2(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet2(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet2(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet2(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet2(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet3Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet3Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet3Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet3(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet3(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet3(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet3(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet3(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet3(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet4Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet4Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet4Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet4(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet4(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet4(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet4(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet4(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet4(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet5Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet5Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet5Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet5(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet5(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet5(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet5(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet5(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet5(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet6Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet6Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet6Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet6(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet6(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet6(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet6(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet6(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet6(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet7Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet7Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet7Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet7(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet7(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet7(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet7(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet7(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet7(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet8Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet8Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet8Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet8(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet8(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet8(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet8(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet8(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet8(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet9Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet9Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet9Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet9(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet9(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet9(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet9(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet9(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet9(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet10Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet10Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet10Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet10(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet10(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet10(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet10(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet10(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet10(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet11Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet11Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet11Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet11(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet11(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet11(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet11(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet11(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet11(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet12Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet12Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet12Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet12(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet12(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet12(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet12(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet12(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet12(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet13Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet13Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet13Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet13(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet13(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet13(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet13(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet13(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet13(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet14Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet14Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet14Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet14(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet14(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet14(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet14(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet14(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet14(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet15Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet15Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet15Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet15(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet15(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet15(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet15(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet15(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet15(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet16Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet16Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet16Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet16(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet16(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet16(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet16(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet16(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet16(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet17Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet17Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet17Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet17(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet17(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet17(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet17(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet17(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet17(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet18Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet18Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet18Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet18(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet18(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet18(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet18(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet18(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet18(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet19Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet19Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet19Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet19(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet19(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet19(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet19(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet19(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet19(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::StylisticSet20Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StylisticSet20Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_StylisticSet20Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetStylisticSet20(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetStylisticSet20(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetStylisticSet20(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetStylisticSet20(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetStylisticSet20(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetStylisticSet20(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::CapitalsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CapitalsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CapitalsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::GetCapitals( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + winrt::Microsoft::UI::Xaml::FontCapitals result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCapitals( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetCapitals( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::SetCapitals( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontCapitals const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetCapitals(*(void**)(&element), + static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetCapitals(*(void**)(&element), + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::CapitalSpacingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CapitalSpacingProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CapitalSpacingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetCapitalSpacing(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetCapitalSpacing(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetCapitalSpacing(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetCapitalSpacing(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetCapitalSpacing(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetCapitalSpacing(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::KerningProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KerningProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_KerningProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::GetKerning( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetKerning(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetKerning(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::SetKerning( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetKerning(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetKerning(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::CaseSensitiveFormsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CaseSensitiveFormsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CaseSensitiveFormsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + GetCaseSensitiveForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetCaseSensitiveForms(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetCaseSensitiveForms(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetCaseSensitiveForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetCaseSensitiveForms(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetCaseSensitiveForms(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::HistoricalFormsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HistoricalFormsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_HistoricalFormsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetHistoricalForms(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetHistoricalForms(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetHistoricalForms(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetHistoricalForms(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetHistoricalForms(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetHistoricalForms(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::FractionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FractionProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_FractionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::GetFraction( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + winrt::Microsoft::UI::Xaml::FontFraction result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFraction( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetFraction( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::SetFraction( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontFraction const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetFraction(*(void**)(&element), + static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetFraction(*(void**)(&element), + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::NumeralStyleProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumeralStyleProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NumeralStyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::GetNumeralStyle( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + winrt::Microsoft::UI::Xaml::FontNumeralStyle result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetNumeralStyle( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetNumeralStyle( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::SetNumeralStyle( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontNumeralStyle const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetNumeralStyle( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetNumeralStyle( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::NumeralAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NumeralAlignmentProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NumeralAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetNumeralAlignment(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + winrt::Microsoft::UI::Xaml::FontNumeralAlignment result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetNumeralAlignment( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetNumeralAlignment( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics:: + SetNumeralAlignment( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontNumeralAlignment const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetNumeralAlignment( + *(void**)(&element), static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetNumeralAlignment( + *(void**)(&element), static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SlashedZeroProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SlashedZeroProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_SlashedZeroProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::GetSlashedZero( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetSlashedZero(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetSlashedZero(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::SetSlashedZero( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetSlashedZero(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetSlashedZero(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::MathematicalGreekProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MathematicalGreekProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_MathematicalGreekProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::GetMathematicalGreek(winrt::Microsoft::UI::Xaml::DependencyObject const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetMathematicalGreek(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetMathematicalGreek(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::SetMathematicalGreek(winrt::Microsoft::UI::Xaml::DependencyObject const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetMathematicalGreek(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetMathematicalGreek(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics< + D>::VariantsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VariantsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_VariantsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::GetVariants( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + winrt::Microsoft::UI::Xaml::FontVariants result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetVariants( + *(void**)(&element), reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetVariants( + *(void**)(&element), reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Documents_ITypographyStatics::SetVariants( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontVariants const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Documents::ITypographyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetVariants(*(void**)(&element), + static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetVariants(*(void**)(&element), + static_cast(value))); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TextAlignment(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TextAlignment(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TextAlignment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalTextAlignment(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalTextAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalTextAlignment(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalTextAlignment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LineHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LineHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LineHeight(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LineStackingStrategy(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LineStackingStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LineStackingStrategy(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LineStackingStrategy( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::LineStackingStrategy const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Margin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Margin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Margin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Margin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TextAlignmentProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalTextAlignmentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalTextAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LineHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LineHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LineStackingStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LineStackingStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MarginProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_UnicodeString(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UnicodeString()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UnicodeString(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UnicodeString(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Indices(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Indices()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Indices(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Indices(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().FontUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontUri(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontUri( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleSimulations(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StyleSimulations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StyleSimulations(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StyleSimulations( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::StyleSimulations const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontRenderingEmSize(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontRenderingEmSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontRenderingEmSize(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontRenderingEmSize(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OriginX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OriginX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OriginX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OriginX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OriginY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OriginY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OriginY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OriginY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Fill(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Fill()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Fill(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Fill( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsColorFontEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsColorFontEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsColorFontEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsColorFontEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColorFontPaletteIndex(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ColorFontPaletteIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ColorFontPaletteIndex(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ColorFontPaletteIndex(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_UnicodeStringProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UnicodeStringProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IndicesProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IndicesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontUriProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontUriProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleSimulationsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StyleSimulationsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontRenderingEmSizeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontRenderingEmSizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OriginXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OriginXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OriginYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OriginYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsColorFontEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsColorFontEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColorFontPaletteIndexProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorFontPaletteIndexProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_NavigateUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NavigateUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NavigateUri(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NavigateUri( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UnderlineStyle(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UnderlineStyle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UnderlineStyle(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UnderlineStyle( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Documents::UnderlineStyle const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeft(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusLeft()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusLeft(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusLeft( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRight(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusRight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusRight(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusRight( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUp(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusUp()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusUp(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusUp( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDown(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusDown()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusDown(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusDown( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementSoundMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementSoundMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ElementSoundMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ElementSoundMode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUpNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusUpNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusUpNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusUpNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDownNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusDownNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusDownNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusDownNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeftNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusLeftNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusLeftNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusLeftNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRightNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusRightNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusRightNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusRightNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTabStop(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTabStop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsTabStop(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsTabStop(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TabIndex(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TabIndex(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Click(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Click( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Click(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Click(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_GotFocus(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GotFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GotFocus(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LostFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LostFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LostFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LostFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Focus(int32_t value, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Focus( + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Documents::IHyperlinkClickEventArgs> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_NavigateUriProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NavigateUriProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UnderlineStyleProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UnderlineStyleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeftProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusLeftProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusRightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUpProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusUpProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDownProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusDownProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementSoundModeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementSoundModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusStateProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUpNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusUpNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDownNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusDownNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeftNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusLeftNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRightNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusRightNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTabStopProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsTabStopProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabIndexProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TabIndexProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Child(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Child()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Child(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Child( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Inlines(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Inlines()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TextIndent(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TextIndent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TextIndent(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TextIndent(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TextIndentProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextIndentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Text(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Text()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Text(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Text(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlowDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FlowDirection(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FlowDirection( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FlowDirectionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlowDirectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Inlines(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Inlines()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Inlines(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Inlines( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Documents::InlineCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontSize(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FontSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontSize(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontSize(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontFamily(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontFamily()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontFamily(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontFamily( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontWeight( + struct struct_Windows_UI_Text_FontWeight* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontWeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontWeight( + struct struct_Windows_UI_Text_FontWeight value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontWeight( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontStyle(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontStyle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontStyle(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontStyle( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontStretch(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontStretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FontStretch(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FontStretch( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CharacterSpacing(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CharacterSpacing()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CharacterSpacing(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterSpacing(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Foreground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Foreground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Foreground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Language(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Language()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Language(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Language(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTextScaleFactorEnabled(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTextScaleFactorEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsTextScaleFactorEnabled(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextScaleFactorEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TextDecorations(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextDecorations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TextDecorations(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TextDecorations( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentStart(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentStart()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentEnd(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentEnd()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementStart(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementStart()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ElementEnd(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ElementEnd()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusOnInteraction(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowFocusOnInteraction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowFocusOnInteraction(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowFocusOnInteraction(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKey(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AccessKey()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AccessKey(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKey(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitDisplayModeOnAccessKeyInvoked( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ExitDisplayModeOnAccessKeyInvoked()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitDisplayModeOnAccessKeyInvoked( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitDisplayModeOnAccessKeyInvoked(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAccessKeyScope(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAccessKeyScope()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsAccessKeyScope(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsAccessKeyScope(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyScopeOwner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyScopeOwner()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AccessKeyScopeOwner(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyScopeOwner( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipPlacementMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().KeyTipPlacementMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipPlacementMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipPlacementMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyTipPlacementMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipHorizontalOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyTipHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipHorizontalOffset(double value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyTipVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XamlRoot(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XamlRoot()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XamlRoot(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XamlRoot( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_AccessKeyDisplayRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().AccessKeyDisplayRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AccessKeyDisplayRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyDisplayRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AccessKeyDisplayDismissed( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().AccessKeyDisplayDismissed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AccessKeyDisplayDismissed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyDisplayDismissed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AccessKeyInvoked( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AccessKeyInvoked( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AccessKeyInvoked( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyInvoked( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall FindName(void* name, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindName(*reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides> { + int32_t __stdcall OnDisconnectVisualChildren() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnDisconnectVisualChildren(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FontSizeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontSizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontFamilyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontFamilyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontWeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontWeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontStyleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontStyleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FontStretchProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FontStretchProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CharacterSpacingProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CharacterSpacingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LanguageProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LanguageProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTextScaleFactorEnabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsTextScaleFactorEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TextDecorationsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TextDecorationsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusOnInteractionProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllowFocusOnInteractionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitDisplayModeOnAccessKeyInvokedProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitDisplayModeOnAccessKeyInvokedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAccessKeyScopeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsAccessKeyScopeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyScopeOwnerProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyScopeOwnerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipPlacementModeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipPlacementModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipVerticalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Ranges(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().Ranges()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Foreground(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Foreground()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Foreground(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Foreground( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Background(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Background()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Background(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Background( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterBase> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterBaseFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterBaseFactory> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Documents::TextHighlighter>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Documents::ITextHighlighterStatics> { + int32_t __stdcall get_ForegroundProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ForegroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BackgroundProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BackgroundProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VisualParent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VisualParent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LogicalDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LogicalDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCharacterRect( + int32_t direction, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCharacterRect( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Documents::LogicalDirection const*>( + &direction))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPositionAtOffset(int32_t offset, int32_t direction, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetPositionAtOffset( + offset, + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Documents::LogicalDirection const*>( + &direction))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AnnotationAlternatesProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AnnotationAlternatesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnnotationAlternates(void* element, + int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetAnnotationAlternates( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAnnotationAlternates(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAnnotationAlternates( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EastAsianExpertFormsProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EastAsianExpertFormsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetEastAsianExpertForms(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetEastAsianExpertForms( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetEastAsianExpertForms(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetEastAsianExpertForms( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EastAsianLanguageProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EastAsianLanguageProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetEastAsianLanguage(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetEastAsianLanguage( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetEastAsianLanguage(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetEastAsianLanguage( + *reinterpret_cast( + &element), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FontEastAsianLanguage const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EastAsianWidthsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EastAsianWidthsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetEastAsianWidths(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetEastAsianWidths( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetEastAsianWidths(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetEastAsianWidths( + *reinterpret_cast( + &element), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FontEastAsianWidths const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StandardLigaturesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StandardLigaturesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStandardLigatures(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStandardLigatures( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStandardLigatures(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStandardLigatures( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContextualLigaturesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContextualLigaturesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetContextualLigatures(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetContextualLigatures( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContextualLigatures(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContextualLigatures( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DiscretionaryLigaturesProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DiscretionaryLigaturesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDiscretionaryLigatures(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetDiscretionaryLigatures( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDiscretionaryLigatures(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDiscretionaryLigatures( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HistoricalLigaturesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HistoricalLigaturesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHistoricalLigatures(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHistoricalLigatures( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHistoricalLigatures(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHistoricalLigatures( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StandardSwashesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StandardSwashesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStandardSwashes(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStandardSwashes( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStandardSwashes(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStandardSwashes( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContextualSwashesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContextualSwashesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetContextualSwashes(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetContextualSwashes( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContextualSwashes(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContextualSwashes( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContextualAlternatesProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContextualAlternatesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetContextualAlternates(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetContextualAlternates( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContextualAlternates(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContextualAlternates( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticAlternatesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticAlternatesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticAlternates(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticAlternates( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticAlternates(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticAlternates( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet1Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet1Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet1(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet1( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet1(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet1( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet2Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet2Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet2(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet2( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet2(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet2( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet3Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet3Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet3(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet3( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet3(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet3( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet4Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet4Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet4(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet4( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet4(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet4( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet5Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet5Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet5(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet5( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet5(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet5( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet6Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet6Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet6(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet6( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet6(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet6( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet7Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet7Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet7(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet7( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet7(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet7( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet8Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet8Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet8(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet8( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet8(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet8( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet9Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet9Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet9(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet9( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet9(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet9( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet10Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet10Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet10(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet10( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet10(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet10( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet11Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet11Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet11(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet11( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet11(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet11( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet12Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet12Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet12(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet12( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet12(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet12( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet13Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet13Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet13(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet13( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet13(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet13( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet14Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet14Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet14(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet14( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet14(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet14( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet15Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet15Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet15(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet15( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet15(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet15( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet16Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet16Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet16(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet16( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet16(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet16( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet17Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet17Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet17(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet17( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet17(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet17( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet18Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet18Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet18(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet18( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet18(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet18( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet19Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet19Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet19(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet19( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet19(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet19( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StylisticSet20Property(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StylisticSet20Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetStylisticSet20(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetStylisticSet20( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetStylisticSet20(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetStylisticSet20( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CapitalsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CapitalsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCapitals(void* element, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::FontCapitals>(this->shim().GetCapitals( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetCapitals(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetCapitals( + *reinterpret_cast( + &element), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CapitalSpacingProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CapitalSpacingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCapitalSpacing(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetCapitalSpacing( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetCapitalSpacing(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetCapitalSpacing( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KerningProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KerningProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetKerning(void* element, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetKerning( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetKerning(void* element, bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetKerning( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CaseSensitiveFormsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CaseSensitiveFormsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCaseSensitiveForms(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetCaseSensitiveForms( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetCaseSensitiveForms(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetCaseSensitiveForms( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HistoricalFormsProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HistoricalFormsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHistoricalForms(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHistoricalForms( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetHistoricalForms(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetHistoricalForms( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FractionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FractionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFraction(void* element, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::FontFraction>(this->shim().GetFraction( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetFraction(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetFraction( + *reinterpret_cast( + &element), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NumeralStyleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NumeralStyleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetNumeralStyle(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetNumeralStyle( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetNumeralStyle(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetNumeralStyle( + *reinterpret_cast( + &element), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NumeralAlignmentProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NumeralAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetNumeralAlignment(void* element, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetNumeralAlignment( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetNumeralAlignment(void* element, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetNumeralAlignment( + *reinterpret_cast( + &element), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FontNumeralAlignment const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SlashedZeroProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SlashedZeroProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetSlashedZero(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetSlashedZero( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetSlashedZero(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetSlashedZero( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MathematicalGreekProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MathematicalGreekProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetMathematicalGreek(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetMathematicalGreek( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetMathematicalGreek(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetMathematicalGreek( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VariantsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VariantsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetVariants(void* element, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::FontVariants>(this->shim().GetVariants( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetVariants(void* element, int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetVariants( + *reinterpret_cast( + &element), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides> { + auto OnDisconnectVisualChildren() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnDisconnectVisualChildren(); + } + + return this->shim().OnDisconnectVisualChildren(); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Documents { + inline auto Block::TextAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBlockStatics const&), + Block, IBlockStatics>( + [](IBlockStatics const& f) { return f.TextAlignmentProperty(); }); + } + inline auto Block::HorizontalTextAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBlockStatics const&), + Block, IBlockStatics>([](IBlockStatics const& f) { + return f.HorizontalTextAlignmentProperty(); + }); + } + inline auto Block::LineHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBlockStatics const&), + Block, IBlockStatics>( + [](IBlockStatics const& f) { return f.LineHeightProperty(); }); + } + inline auto Block::LineStackingStrategyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBlockStatics const&), + Block, IBlockStatics>([](IBlockStatics const& f) { + return f.LineStackingStrategyProperty(); + }); + } + inline auto Block::MarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBlockStatics const&), + Block, IBlockStatics>( + [](IBlockStatics const& f) { return f.MarginProperty(); }); + } + inline Bold::Bold() + : Bold(impl::call_factory_cast< + Bold (*)(winrt::Windows::Foundation::IActivationFactory const&), + Bold>([](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline Glyphs::Glyphs() + : Glyphs(impl::call_factory_cast< + Glyphs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Glyphs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Glyphs::UnicodeStringProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.UnicodeStringProperty(); }); + } + inline auto Glyphs::IndicesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.IndicesProperty(); }); + } + inline auto Glyphs::FontUriProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.FontUriProperty(); }); + } + inline auto Glyphs::StyleSimulationsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.StyleSimulationsProperty(); }); + } + inline auto Glyphs::FontRenderingEmSizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>([](IGlyphsStatics const& f) { + return f.FontRenderingEmSizeProperty(); + }); + } + inline auto Glyphs::OriginXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.OriginXProperty(); }); + } + inline auto Glyphs::OriginYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.OriginYProperty(); }); + } + inline auto Glyphs::FillProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.FillProperty(); }); + } + inline auto Glyphs::IsColorFontEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>( + [](IGlyphsStatics const& f) { return f.IsColorFontEnabledProperty(); }); + } + inline auto Glyphs::ColorFontPaletteIndexProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGlyphsStatics const&), + Glyphs, IGlyphsStatics>([](IGlyphsStatics const& f) { + return f.ColorFontPaletteIndexProperty(); + }); + } + inline Hyperlink::Hyperlink() + : Hyperlink(impl::call_factory_cast< + Hyperlink (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Hyperlink>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Hyperlink::NavigateUriProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.NavigateUriProperty(); }); + } + inline auto Hyperlink::UnderlineStyleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.UnderlineStyleProperty(); }); + } + inline auto Hyperlink::XYFocusLeftProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.XYFocusLeftProperty(); }); + } + inline auto Hyperlink::XYFocusRightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.XYFocusRightProperty(); }); + } + inline auto Hyperlink::XYFocusUpProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.XYFocusUpProperty(); }); + } + inline auto Hyperlink::XYFocusDownProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.XYFocusDownProperty(); }); + } + inline auto Hyperlink::ElementSoundModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>([](IHyperlinkStatics const& f) { + return f.ElementSoundModeProperty(); + }); + } + inline auto Hyperlink::FocusStateProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.FocusStateProperty(); }); + } + inline auto Hyperlink::XYFocusUpNavigationStrategyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>([](IHyperlinkStatics const& f) { + return f.XYFocusUpNavigationStrategyProperty(); + }); + } + inline auto Hyperlink::XYFocusDownNavigationStrategyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>([](IHyperlinkStatics const& f) { + return f.XYFocusDownNavigationStrategyProperty(); + }); + } + inline auto Hyperlink::XYFocusLeftNavigationStrategyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>([](IHyperlinkStatics const& f) { + return f.XYFocusLeftNavigationStrategyProperty(); + }); + } + inline auto Hyperlink::XYFocusRightNavigationStrategyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>([](IHyperlinkStatics const& f) { + return f.XYFocusRightNavigationStrategyProperty(); + }); + } + inline auto Hyperlink::IsTabStopProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.IsTabStopProperty(); }); + } + inline auto Hyperlink::TabIndexProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IHyperlinkStatics const&), + Hyperlink, IHyperlinkStatics>( + [](IHyperlinkStatics const& f) { return f.TabIndexProperty(); }); + } + inline InlineUIContainer::InlineUIContainer() + : InlineUIContainer( + impl::call_factory_cast< + InlineUIContainer (*)( + winrt::Windows::Foundation::IActivationFactory const&), + InlineUIContainer>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline Italic::Italic() + : Italic(impl::call_factory_cast< + Italic (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Italic>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline LineBreak::LineBreak() + : LineBreak(impl::call_factory_cast< + LineBreak (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LineBreak>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline Paragraph::Paragraph() + : Paragraph(impl::call_factory_cast< + Paragraph (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Paragraph>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Paragraph::TextIndentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IParagraphStatics const&), + Paragraph, IParagraphStatics>( + [](IParagraphStatics const& f) { return f.TextIndentProperty(); }); + } + inline Run::Run() + : Run(impl::call_factory_cast< + Run (*)(winrt::Windows::Foundation::IActivationFactory const&), + Run>([](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Run::FlowDirectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)(IRunStatics const&), + Run, IRunStatics>( + [](IRunStatics const& f) { return f.FlowDirectionProperty(); }); + } + inline Span::Span() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](ISpanFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto TextElement::FontSizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.FontSizeProperty(); }); + } + inline auto TextElement::FontFamilyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.FontFamilyProperty(); }); + } + inline auto TextElement::FontWeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.FontWeightProperty(); }); + } + inline auto TextElement::FontStyleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.FontStyleProperty(); }); + } + inline auto TextElement::FontStretchProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.FontStretchProperty(); }); + } + inline auto TextElement::CharacterSpacingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.CharacterSpacingProperty(); + }); + } + inline auto TextElement::ForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.ForegroundProperty(); }); + } + inline auto TextElement::LanguageProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.LanguageProperty(); }); + } + inline auto TextElement::IsTextScaleFactorEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.IsTextScaleFactorEnabledProperty(); + }); + } + inline auto TextElement::TextDecorationsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.TextDecorationsProperty(); + }); + } + inline auto TextElement::AllowFocusOnInteractionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.AllowFocusOnInteractionProperty(); + }); + } + inline auto TextElement::AccessKeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>( + [](ITextElementStatics const& f) { return f.AccessKeyProperty(); }); + } + inline auto TextElement::ExitDisplayModeOnAccessKeyInvokedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.ExitDisplayModeOnAccessKeyInvokedProperty(); + }); + } + inline auto TextElement::IsAccessKeyScopeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.IsAccessKeyScopeProperty(); + }); + } + inline auto TextElement::AccessKeyScopeOwnerProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.AccessKeyScopeOwnerProperty(); + }); + } + inline auto TextElement::KeyTipPlacementModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.KeyTipPlacementModeProperty(); + }); + } + inline auto TextElement::KeyTipHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.KeyTipHorizontalOffsetProperty(); + }); + } + inline auto TextElement::KeyTipVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextElementStatics const&), + TextElement, ITextElementStatics>([](ITextElementStatics const& f) { + return f.KeyTipVerticalOffsetProperty(); + }); + } + inline TextHighlighter::TextHighlighter() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ITextHighlighterFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto TextHighlighter::ForegroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextHighlighterStatics const&), + TextHighlighter, ITextHighlighterStatics>( + [](ITextHighlighterStatics const& f) { + return f.ForegroundProperty(); + }); + } + inline auto TextHighlighter::BackgroundProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITextHighlighterStatics const&), + TextHighlighter, ITextHighlighterStatics>( + [](ITextHighlighterStatics const& f) { + return f.BackgroundProperty(); + }); + } + inline auto Typography::AnnotationAlternatesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.AnnotationAlternatesProperty(); + }); + } + inline auto Typography::GetAnnotationAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetAnnotationAlternates(element); + }); + } + inline auto Typography::SetAnnotationAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetAnnotationAlternates(element, value); + }); + } + inline auto Typography::EastAsianExpertFormsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.EastAsianExpertFormsProperty(); + }); + } + inline auto Typography::GetEastAsianExpertForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetEastAsianExpertForms(element); + }); + } + inline auto Typography::SetEastAsianExpertForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetEastAsianExpertForms(element, value); + }); + } + inline auto Typography::EastAsianLanguageProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.EastAsianLanguageProperty(); + }); + } + inline auto Typography::GetEastAsianLanguage( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetEastAsianLanguage(element); + }); + } + inline auto Typography::SetEastAsianLanguage( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontEastAsianLanguage const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetEastAsianLanguage(element, value); + }); + } + inline auto Typography::EastAsianWidthsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.EastAsianWidthsProperty(); + }); + } + inline auto Typography::GetEastAsianWidths( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetEastAsianWidths(element); + }); + } + inline auto Typography::SetEastAsianWidths( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontEastAsianWidths const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetEastAsianWidths(element, value); + }); + } + inline auto Typography::StandardLigaturesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.StandardLigaturesProperty(); + }); + } + inline auto Typography::GetStandardLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStandardLigatures(element); + }); + } + inline auto Typography::SetStandardLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStandardLigatures(element, value); + }); + } + inline auto Typography::ContextualLigaturesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.ContextualLigaturesProperty(); + }); + } + inline auto Typography::GetContextualLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetContextualLigatures(element); + }); + } + inline auto Typography::SetContextualLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetContextualLigatures(element, value); + }); + } + inline auto Typography::DiscretionaryLigaturesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.DiscretionaryLigaturesProperty(); + }); + } + inline auto Typography::GetDiscretionaryLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetDiscretionaryLigatures(element); + }); + } + inline auto Typography::SetDiscretionaryLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetDiscretionaryLigatures(element, value); + }); + } + inline auto Typography::HistoricalLigaturesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.HistoricalLigaturesProperty(); + }); + } + inline auto Typography::GetHistoricalLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetHistoricalLigatures(element); + }); + } + inline auto Typography::SetHistoricalLigatures( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetHistoricalLigatures(element, value); + }); + } + inline auto Typography::StandardSwashesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.StandardSwashesProperty(); + }); + } + inline auto Typography::GetStandardSwashes( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStandardSwashes(element); + }); + } + inline auto Typography::SetStandardSwashes( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStandardSwashes(element, value); + }); + } + inline auto Typography::ContextualSwashesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.ContextualSwashesProperty(); + }); + } + inline auto Typography::GetContextualSwashes( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetContextualSwashes(element); + }); + } + inline auto Typography::SetContextualSwashes( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetContextualSwashes(element, value); + }); + } + inline auto Typography::ContextualAlternatesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.ContextualAlternatesProperty(); + }); + } + inline auto Typography::GetContextualAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetContextualAlternates(element); + }); + } + inline auto Typography::SetContextualAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetContextualAlternates(element, value); + }); + } + inline auto Typography::StylisticAlternatesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.StylisticAlternatesProperty(); + }); + } + inline auto Typography::GetStylisticAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticAlternates(element); + }); + } + inline auto Typography::SetStylisticAlternates( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + int32_t value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticAlternates(element, value); + }); + } + inline auto Typography::StylisticSet1Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet1Property(); }); + } + inline auto Typography::GetStylisticSet1( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet1(element); + }); + } + inline auto Typography::SetStylisticSet1( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet1(element, value); + }); + } + inline auto Typography::StylisticSet2Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet2Property(); }); + } + inline auto Typography::GetStylisticSet2( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet2(element); + }); + } + inline auto Typography::SetStylisticSet2( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet2(element, value); + }); + } + inline auto Typography::StylisticSet3Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet3Property(); }); + } + inline auto Typography::GetStylisticSet3( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet3(element); + }); + } + inline auto Typography::SetStylisticSet3( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet3(element, value); + }); + } + inline auto Typography::StylisticSet4Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet4Property(); }); + } + inline auto Typography::GetStylisticSet4( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet4(element); + }); + } + inline auto Typography::SetStylisticSet4( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet4(element, value); + }); + } + inline auto Typography::StylisticSet5Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet5Property(); }); + } + inline auto Typography::GetStylisticSet5( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet5(element); + }); + } + inline auto Typography::SetStylisticSet5( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet5(element, value); + }); + } + inline auto Typography::StylisticSet6Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet6Property(); }); + } + inline auto Typography::GetStylisticSet6( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet6(element); + }); + } + inline auto Typography::SetStylisticSet6( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet6(element, value); + }); + } + inline auto Typography::StylisticSet7Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet7Property(); }); + } + inline auto Typography::GetStylisticSet7( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet7(element); + }); + } + inline auto Typography::SetStylisticSet7( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet7(element, value); + }); + } + inline auto Typography::StylisticSet8Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet8Property(); }); + } + inline auto Typography::GetStylisticSet8( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet8(element); + }); + } + inline auto Typography::SetStylisticSet8( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet8(element, value); + }); + } + inline auto Typography::StylisticSet9Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet9Property(); }); + } + inline auto Typography::GetStylisticSet9( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet9(element); + }); + } + inline auto Typography::SetStylisticSet9( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet9(element, value); + }); + } + inline auto Typography::StylisticSet10Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet10Property(); }); + } + inline auto Typography::GetStylisticSet10( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet10(element); + }); + } + inline auto Typography::SetStylisticSet10( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet10(element, value); + }); + } + inline auto Typography::StylisticSet11Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet11Property(); }); + } + inline auto Typography::GetStylisticSet11( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet11(element); + }); + } + inline auto Typography::SetStylisticSet11( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet11(element, value); + }); + } + inline auto Typography::StylisticSet12Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet12Property(); }); + } + inline auto Typography::GetStylisticSet12( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet12(element); + }); + } + inline auto Typography::SetStylisticSet12( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet12(element, value); + }); + } + inline auto Typography::StylisticSet13Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet13Property(); }); + } + inline auto Typography::GetStylisticSet13( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet13(element); + }); + } + inline auto Typography::SetStylisticSet13( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet13(element, value); + }); + } + inline auto Typography::StylisticSet14Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet14Property(); }); + } + inline auto Typography::GetStylisticSet14( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet14(element); + }); + } + inline auto Typography::SetStylisticSet14( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet14(element, value); + }); + } + inline auto Typography::StylisticSet15Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet15Property(); }); + } + inline auto Typography::GetStylisticSet15( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet15(element); + }); + } + inline auto Typography::SetStylisticSet15( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet15(element, value); + }); + } + inline auto Typography::StylisticSet16Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet16Property(); }); + } + inline auto Typography::GetStylisticSet16( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet16(element); + }); + } + inline auto Typography::SetStylisticSet16( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet16(element, value); + }); + } + inline auto Typography::StylisticSet17Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet17Property(); }); + } + inline auto Typography::GetStylisticSet17( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet17(element); + }); + } + inline auto Typography::SetStylisticSet17( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet17(element, value); + }); + } + inline auto Typography::StylisticSet18Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet18Property(); }); + } + inline auto Typography::GetStylisticSet18( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet18(element); + }); + } + inline auto Typography::SetStylisticSet18( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet18(element, value); + }); + } + inline auto Typography::StylisticSet19Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet19Property(); }); + } + inline auto Typography::GetStylisticSet19( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet19(element); + }); + } + inline auto Typography::SetStylisticSet19( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet19(element, value); + }); + } + inline auto Typography::StylisticSet20Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.StylisticSet20Property(); }); + } + inline auto Typography::GetStylisticSet20( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetStylisticSet20(element); + }); + } + inline auto Typography::SetStylisticSet20( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetStylisticSet20(element, value); + }); + } + inline auto Typography::CapitalsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.CapitalsProperty(); }); + } + inline auto Typography::GetCapitals( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { return f.GetCapitals(element); }); + } + inline auto Typography::SetCapitals( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontCapitals const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetCapitals(element, value); + }); + } + inline auto Typography::CapitalSpacingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.CapitalSpacingProperty(); }); + } + inline auto Typography::GetCapitalSpacing( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetCapitalSpacing(element); + }); + } + inline auto Typography::SetCapitalSpacing( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetCapitalSpacing(element, value); + }); + } + inline auto Typography::KerningProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.KerningProperty(); }); + } + inline auto Typography::GetKerning( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { return f.GetKerning(element); }); + } + inline auto Typography::SetKerning( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetKerning(element, value); + }); + } + inline auto Typography::CaseSensitiveFormsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.CaseSensitiveFormsProperty(); + }); + } + inline auto Typography::GetCaseSensitiveForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetCaseSensitiveForms(element); + }); + } + inline auto Typography::SetCaseSensitiveForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetCaseSensitiveForms(element, value); + }); + } + inline auto Typography::HistoricalFormsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.HistoricalFormsProperty(); + }); + } + inline auto Typography::GetHistoricalForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetHistoricalForms(element); + }); + } + inline auto Typography::SetHistoricalForms( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetHistoricalForms(element, value); + }); + } + inline auto Typography::FractionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.FractionProperty(); }); + } + inline auto Typography::GetFraction( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { return f.GetFraction(element); }); + } + inline auto Typography::SetFraction( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontFraction const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetFraction(element, value); + }); + } + inline auto Typography::NumeralStyleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.NumeralStyleProperty(); }); + } + inline auto Typography::GetNumeralStyle( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetNumeralStyle(element); + }); + } + inline auto Typography::SetNumeralStyle( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontNumeralStyle const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetNumeralStyle(element, value); + }); + } + inline auto Typography::NumeralAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.NumeralAlignmentProperty(); + }); + } + inline auto Typography::GetNumeralAlignment( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetNumeralAlignment(element); + }); + } + inline auto Typography::SetNumeralAlignment( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontNumeralAlignment const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetNumeralAlignment(element, value); + }); + } + inline auto Typography::SlashedZeroProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.SlashedZeroProperty(); }); + } + inline auto Typography::GetSlashedZero( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { return f.GetSlashedZero(element); }); + } + inline auto Typography::SetSlashedZero( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetSlashedZero(element, value); + }); + } + inline auto Typography::MathematicalGreekProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>([](ITypographyStatics const& f) { + return f.MathematicalGreekProperty(); + }); + } + inline auto Typography::GetMathematicalGreek( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { + return f.GetMathematicalGreek(element); + }); + } + inline auto Typography::SetMathematicalGreek( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, bool value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetMathematicalGreek(element, value); + }); + } + inline auto Typography::VariantsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITypographyStatics const&), + Typography, ITypographyStatics>( + [](ITypographyStatics const& f) { return f.VariantsProperty(); }); + } + inline auto Typography::GetVariants( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](ITypographyStatics const& f) { return f.GetVariants(element); }); + } + inline auto Typography::SetVariants( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FontVariants const& value) { + impl::call_factory( + [&](ITypographyStatics const& f) { + return f.SetVariants(element, value); + }); + } + inline Underline::Underline() + : Underline(impl::call_factory_cast< + Underline (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Underline>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + template + auto ITextElementOverridesT::OnDisconnectVisualChildren() const { + return shim() + .template try_as() + .OnDisconnectVisualChildren(); + } + template + struct BlockT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Documents::ITextElementOverridesT { + using composable = Block; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides>; + + protected: + BlockT() { + impl::call_factory([&](IBlockFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct InlineT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Documents::ITextElementOverridesT { + using composable = Inline; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides>; + + protected: + InlineT() { + impl::call_factory([&](IInlineFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct SpanT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Documents::ITextElementOverridesT { + using composable = Span; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Documents::ITextElementOverrides>; + + protected: + SpanT() { + impl::call_factory([&](ISpanFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct TextHighlighterT + : implements, + impl::require, + impl::base { + using composable = TextHighlighter; + + protected: + TextHighlighterT() { + impl::call_factory( + [&](ITextHighlighterFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Hosting.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Hosting.h new file mode 100644 index 00000000..27a6fae0 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Hosting.h @@ -0,0 +1,1797 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Hosting_H +#define WINRT_Microsoft_UI_Xaml_Hosting_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.2.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Content.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Hosting.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::Content() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::Content( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::HasFocus() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasFocus(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasFocus(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource< + D>::SystemBackdrop() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource< + D>::SystemBackdrop(winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::SiteBridge() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SiteBridge(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SiteBridge(&value)); + } + return winrt::Microsoft::UI::Content::DesktopChildSiteBridge{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource:: + TakeFocusRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Hosting::DesktopWindowXamlSource, + winrt::Microsoft::UI::Xaml::Hosting:: + DesktopWindowXamlSourceTakeFocusRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_TakeFocusRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_TakeFocusRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource:: + TakeFocusRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Hosting::DesktopWindowXamlSource, + winrt::Microsoft::UI::Xaml::Hosting:: + DesktopWindowXamlSourceTakeFocusRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, TakeFocusRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource< + D>::TakeFocusRequested(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_TakeFocusRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_TakeFocusRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::GotFocus( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Hosting::DesktopWindowXamlSource, + winrt::Microsoft::UI::Xaml::Hosting:: + DesktopWindowXamlSourceGotFocusEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::GotFocus( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Hosting::DesktopWindowXamlSource, + winrt::Microsoft::UI::Xaml::Hosting:: + DesktopWindowXamlSourceGotFocusEventArgs> const& handler) const { + return impl::make_event_revoker(this, GotFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::GotFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource:: + NavigateFocus(winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationRequest const& request) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NavigateFocus(*(void**)(&request), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->NavigateFocus(*(void**)(&request), &result)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationResult{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource::Initialize( + winrt::Microsoft::UI::WindowId const& parentWindowId) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Initialize(impl::bind_in(parentWindowId))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Initialize(impl::bind_in(parentWindowId))); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource2< + D>::ShouldConstrainPopupsToWorkArea() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShouldConstrainPopupsToWorkArea(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShouldConstrainPopupsToWorkArea(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSource2< + D>::ShouldConstrainPopupsToWorkArea(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ShouldConstrainPopupsToWorkArea(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ShouldConstrainPopupsToWorkArea(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSourceFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSourceFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::DesktopWindowXamlSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSourceGotFocusEventArgs< + D>::Request() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Hosting:: + IDesktopWindowXamlSourceGotFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IDesktopWindowXamlSourceGotFocusEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Request(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Request(&value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IDesktopWindowXamlSourceTakeFocusRequestedEventArgs< + D>::Request() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Hosting:: + IDesktopWindowXamlSourceTakeFocusRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting:: + IDesktopWindowXamlSourceTakeFocusRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IDesktopWindowXamlSourceTakeFocusRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Request(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Request(&value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics< + D>::GetElementVisual(winrt::Microsoft::UI::Xaml::UIElement const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetElementVisual(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetElementVisual(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Composition::Visual{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics< + D>::GetElementChildVisual(winrt::Microsoft::UI::Xaml::UIElement const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetElementChildVisual(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetElementChildVisual(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Composition::Visual{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics:: + SetElementChildVisual( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Composition::Visual const& visual) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetElementChildVisual(*(void**)(&element), + *(void**)(&visual))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetElementChildVisual(*(void**)(&element), + *(void**)(&visual))); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics:: + GetScrollViewerManipulationPropertySet( + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const& scrollViewer) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetScrollViewerManipulationPropertySet( + *(void**)(&scrollViewer), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetScrollViewerManipulationPropertySet( + *(void**)(&scrollViewer), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionPropertySet{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics:: + SetImplicitShowAnimation( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetImplicitShowAnimation( + *(void**)(&element), *(void**)(&animation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetImplicitShowAnimation( + *(void**)(&element), *(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics:: + SetImplicitHideAnimation( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetImplicitHideAnimation( + *(void**)(&element), *(void**)(&animation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetImplicitHideAnimation( + *(void**)(&element), *(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics< + D>::SetIsTranslationEnabled(winrt::Microsoft::UI::Xaml::UIElement const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsTranslationEnabled(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsTranslationEnabled(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IElementCompositionPreviewStatics:: + GetPointerPositionPropertySet( + winrt::Microsoft::UI::Xaml::UIElement const& targetElement) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPointerPositionPropertySet( + *(void**)(&targetElement), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPointerPositionPropertySet( + *(void**)(&targetElement), &result)); + } + return winrt::Microsoft::UI::Composition::CompositionPropertySet{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IWindowsXamlManager2:: + XamlShutdownCompletedOnThread( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Hosting::WindowsXamlManager, + winrt::Microsoft::UI::Xaml::Hosting:: + XamlShutdownCompletedOnThreadEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IWindowsXamlManager2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_XamlShutdownCompletedOnThread( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_XamlShutdownCompletedOnThread( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IWindowsXamlManager2:: + XamlShutdownCompletedOnThread( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Hosting::WindowsXamlManager, + winrt::Microsoft::UI::Xaml::Hosting:: + XamlShutdownCompletedOnThreadEventArgs> const& handler) const { + return impl::make_event_revoker( + this, XamlShutdownCompletedOnThread(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IWindowsXamlManager2< + D>::XamlShutdownCompletedOnThread(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IWindowsXamlManager2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_XamlShutdownCompletedOnThread(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_XamlShutdownCompletedOnThread(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IWindowsXamlManagerStatics< + D>::InitializeForCurrentThread() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IWindowsXamlManagerStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InitializeForCurrentThread(&result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->InitializeForCurrentThread(&result)); + } + return winrt::Microsoft::UI::Xaml::Hosting::WindowsXamlManager{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IWindowsXamlManagerStatics2< + D>::GetForCurrentThread() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IWindowsXamlManagerStatics2, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForCurrentThread(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForCurrentThread(&result)); + } + return winrt::Microsoft::UI::Xaml::Hosting::WindowsXamlManager{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlShutdownCompletedOnThreadEventArgs< + D>::GetDispatcherQueueDeferral() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IXamlShutdownCompletedOnThreadEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDispatcherQueueDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDispatcherQueueDeferral(&result)); + } + return winrt::Windows::Foundation::Deferral{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequest< + D>::Reason() const { + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationReason value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Reason(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequest< + D>::HintRect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HintRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HintRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequest< + D>::CorrelationId() const { + winrt::guid value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequestFactory< + D>::CreateInstance(winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationReason const& reason) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IXamlSourceFocusNavigationRequestFactory>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(static_cast(reason), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(static_cast(reason), &value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequestFactory< + D>::CreateInstanceWithHintRect(winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationReason const& + reason, + winrt::Windows::Foundation::Rect const& + hintRect) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IXamlSourceFocusNavigationRequestFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithHintRect( + static_cast(reason), impl::bind_in(hintRect), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithHintRect( + static_cast(reason), impl::bind_in(hintRect), &value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequestFactory< + D>:: + CreateInstanceWithHintRectAndCorrelationId( + winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect, + winrt::guid const& correlationId) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IXamlSourceFocusNavigationRequestFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithHintRectAndCorrelationId( + static_cast(reason), impl::bind_in(hintRect), + impl::bind_in(correlationId), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithHintRectAndCorrelationId( + static_cast(reason), impl::bind_in(hintRect), + impl::bind_in(correlationId), &value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationResult< + D>::WasFocusMoved() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationResult, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WasFocusMoved(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WasFocusMoved(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Hosting_IXamlSourceFocusNavigationResultFactory< + D>::CreateInstance(bool focusMoved) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Hosting:: + IXamlSourceFocusNavigationResultFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(focusMoved, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(focusMoved, &value)); + } + return winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationResult{ + value, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource> { + int32_t __stdcall get_Content(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Content()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Content(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Content( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasFocus(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasFocus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SiteBridge(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SiteBridge()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_TakeFocusRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().TakeFocusRequested( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_TakeFocusRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().TakeFocusRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_GotFocus(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GotFocus( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GotFocus(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall NavigateFocus(void* request, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationResult>( + this->shim().NavigateFocus( + *reinterpret_cast( + &request))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Initialize( + struct struct_Microsoft_UI_WindowId parentWindowId) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Initialize( + *reinterpret_cast( + &parentWindowId)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource2> { + int32_t __stdcall get_ShouldConstrainPopupsToWorkArea( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ShouldConstrainPopupsToWorkArea()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ShouldConstrainPopupsToWorkArea( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ShouldConstrainPopupsToWorkArea(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSourceFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::DesktopWindowXamlSource>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Request(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest>( + this->shim().Request()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Request(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest>( + this->shim().Request()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreview> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics> + : produce_base { + int32_t __stdcall GetElementVisual(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetElementVisual( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetElementChildVisual(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetElementChildVisual( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetElementChildVisual(void* element, + void* visual) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetElementChildVisual( + *reinterpret_cast( + &element), + *reinterpret_cast( + &visual)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetScrollViewerManipulationPropertySet( + void* scrollViewer, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetScrollViewerManipulationPropertySet( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const*>( + &scrollViewer))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetImplicitShowAnimation(void* element, + void* animation) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetImplicitShowAnimation( + *reinterpret_cast( + &element), + *reinterpret_cast(&animation)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetImplicitHideAnimation(void* element, + void* animation) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetImplicitHideAnimation( + *reinterpret_cast( + &element), + *reinterpret_cast(&animation)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsTranslationEnabled(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsTranslationEnabled( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPointerPositionPropertySet(void* targetElement, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetPointerPositionPropertySet( + *reinterpret_cast( + &targetElement))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall add_XamlShutdownCompletedOnThread( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().XamlShutdownCompletedOnThread( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_XamlShutdownCompletedOnThread( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().XamlShutdownCompletedOnThread( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Hosting::IWindowsXamlManagerStatics> { + int32_t __stdcall InitializeForCurrentThread(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().InitializeForCurrentThread()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Hosting::IWindowsXamlManagerStatics2> { + int32_t __stdcall GetForCurrentThread(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetForCurrentThread()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetDispatcherQueueDeferral(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDispatcherQueueDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest> + : produce_base { + int32_t __stdcall get_Reason(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationReason>( + this->shim().Reason()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HintRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().HintRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(int32_t reason, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest>( + this->shim().CreateInstance( + *reinterpret_cast( + &reason))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithHintRect( + int32_t reason, winrt::Windows::Foundation::Rect hintRect, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest>( + this->shim().CreateInstanceWithHintRect( + *reinterpret_cast( + &reason), + *reinterpret_cast( + &hintRect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithHintRectAndCorrelationId( + int32_t reason, winrt::Windows::Foundation::Rect hintRect, + winrt::guid correlationId, void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest>( + this->shim().CreateInstanceWithHintRectAndCorrelationId( + *reinterpret_cast( + &reason), + *reinterpret_cast( + &hintRect), + *reinterpret_cast(&correlationId))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationResult> + : produce_base { + int32_t __stdcall get_WasFocusMoved(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().WasFocusMoved()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(bool focusMoved, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationResult>( + this->shim().CreateInstance(focusMoved)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Hosting { + inline DesktopWindowXamlSource::DesktopWindowXamlSource() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDesktopWindowXamlSourceFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ElementCompositionPreview::GetElementVisual( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.GetElementVisual(element); + }); + } + inline auto ElementCompositionPreview::GetElementChildVisual( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.GetElementChildVisual(element); + }); + } + inline auto ElementCompositionPreview::SetElementChildVisual( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Composition::Visual const& visual) { + impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.SetElementChildVisual(element, visual); + }); + } + inline auto ElementCompositionPreview::GetScrollViewerManipulationPropertySet( + winrt::Microsoft::UI::Xaml::Controls::ScrollViewer const& scrollViewer) { + return impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.GetScrollViewerManipulationPropertySet(scrollViewer); + }); + } + inline auto ElementCompositionPreview::SetImplicitShowAnimation( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) { + impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.SetImplicitShowAnimation(element, animation); + }); + } + inline auto ElementCompositionPreview::SetImplicitHideAnimation( + winrt::Microsoft::UI::Xaml::UIElement const& element, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) { + impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.SetImplicitHideAnimation(element, animation); + }); + } + inline auto ElementCompositionPreview::SetIsTranslationEnabled( + winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) { + impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.SetIsTranslationEnabled(element, value); + }); + } + inline auto ElementCompositionPreview::GetPointerPositionPropertySet( + winrt::Microsoft::UI::Xaml::UIElement const& targetElement) { + return impl::call_factory( + [&](IElementCompositionPreviewStatics const& f) { + return f.GetPointerPositionPropertySet(targetElement); + }); + } + inline auto WindowsXamlManager::InitializeForCurrentThread() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Hosting::WindowsXamlManager (*)( + IWindowsXamlManagerStatics const&), + WindowsXamlManager, IWindowsXamlManagerStatics>( + [](IWindowsXamlManagerStatics const& f) { + return f.InitializeForCurrentThread(); + }); + } + inline auto WindowsXamlManager::GetForCurrentThread() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Hosting::WindowsXamlManager (*)( + IWindowsXamlManagerStatics2 const&), + WindowsXamlManager, IWindowsXamlManagerStatics2>( + [](IWindowsXamlManagerStatics2 const& f) { + return f.GetForCurrentThread(); + }); + } + inline XamlSourceFocusNavigationRequest::XamlSourceFocusNavigationRequest( + winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationReason const& reason) + : XamlSourceFocusNavigationRequest( + impl::call_factory( + [&](IXamlSourceFocusNavigationRequestFactory const& f) { + return f.CreateInstance(reason); + })) {} + inline XamlSourceFocusNavigationRequest::XamlSourceFocusNavigationRequest( + winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect) + : XamlSourceFocusNavigationRequest( + impl::call_factory( + [&](IXamlSourceFocusNavigationRequestFactory const& f) { + return f.CreateInstanceWithHintRect(reason, hintRect); + })) {} + inline XamlSourceFocusNavigationRequest::XamlSourceFocusNavigationRequest( + winrt::Microsoft::UI::Xaml::Hosting:: + XamlSourceFocusNavigationReason const& reason, + winrt::Windows::Foundation::Rect const& hintRect, + winrt::guid const& correlationId) + : XamlSourceFocusNavigationRequest( + impl::call_factory( + [&](IXamlSourceFocusNavigationRequestFactory const& f) { + return f.CreateInstanceWithHintRectAndCorrelationId( + reason, hintRect, correlationId); + })) {} + inline XamlSourceFocusNavigationResult::XamlSourceFocusNavigationResult( + bool focusMoved) + : XamlSourceFocusNavigationResult( + impl::call_factory( + [&](IXamlSourceFocusNavigationResultFactory const& f) { + return f.CreateInstance(focusMoved); + })) {} + template + struct DesktopWindowXamlSourceT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource, + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSource2, + winrt::Windows::Foundation::IClosable>, + impl::base { + using composable = DesktopWindowXamlSource; + + protected: + DesktopWindowXamlSourceT() { + impl::call_factory( + [&](IDesktopWindowXamlSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::IDesktopWindowXamlSourceFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::IElementCompositionPreviewStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::IXamlSourceFocusNavigationResult> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::XamlShutdownCompletedOnThreadEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Hosting::XamlSourceFocusNavigationResult> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Input.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Input.h new file mode 100644 index 00000000..e0524d26 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Input.h @@ -0,0 +1,10186 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Input_H +#define WINRT_Microsoft_UI_Xaml_Input_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Input.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.System.2.h" +#include "winrt/impl/Windows.UI.Core.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyDisplayRequestedEventArgs< + D>::PressedKeys() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyDisplayRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PressedKeys(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PressedKeys(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyInvokedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyInvokedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyInvokedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyInvokedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics< + D>::IsDisplayModeEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDisplayModeEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>**)this; + check_hresult(_winrt_abi_type->get_IsDisplayModeEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics< + D>::AreKeyTipsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AreKeyTipsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>**)this; + check_hresult(_winrt_abi_type->get_AreKeyTipsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics< + D>::AreKeyTipsEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AreKeyTipsEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>**)this; + check_hresult(_winrt_abi_type->put_AreKeyTipsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics:: + IsDisplayModeEnabledChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_IsDisplayModeEnabledChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>**)this; + check_hresult(_winrt_abi_type->add_IsDisplayModeEnabledChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics:: + IsDisplayModeEnabledChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, IsDisplayModeEnabledChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics< + D>::IsDisplayModeEnabledChanged(winrt::event_token const& token) + const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_IsDisplayModeEnabledChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>**)this; + _winrt_abi_type->remove_IsDisplayModeEnabledChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics< + D>::ExitDisplayMode() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ExitDisplayMode()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>**)this; + check_hresult(_winrt_abi_type->ExitDisplayMode()); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IAccessKeyManagerStatics2< + D>::EnterDisplayMode(winrt::Microsoft::UI::Xaml::XamlRoot const& XamlRoot) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->EnterDisplayModeForXamlRoot(*(void**)(&XamlRoot))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->EnterDisplayModeForXamlRoot(*(void**)(&XamlRoot))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ICanExecuteRequestedEventArgs< + D>::Parameter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICanExecuteRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICanExecuteRequestedEventArgs< + D>::CanExecute() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICanExecuteRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanExecute(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanExecute(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICanExecuteRequestedEventArgs< + D>::CanExecute(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICanExecuteRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanExecute(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanExecute(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ICharacterReceivedRoutedEventArgs< + D>::Character() const { + char16_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICharacterReceivedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Character(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Character(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICharacterReceivedRoutedEventArgs< + D>::KeyStatus() const { + winrt::Windows::UI::Core::CorePhysicalKeyStatus value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICharacterReceivedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICharacterReceivedRoutedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICharacterReceivedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICharacterReceivedRoutedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ICharacterReceivedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ICommand::CanExecuteChanged( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CanExecuteChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CanExecuteChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICommand::CanExecuteChanged( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, CanExecuteChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_ICommand::CanExecuteChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CanExecuteChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CanExecuteChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ICommand::CanExecute( + winrt::Windows::Foundation::IInspectable const& parameter) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CanExecute(*(void**)(¶meter), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CanExecute(*(void**)(¶meter), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_ICommand::Execute( + winrt::Windows::Foundation::IInspectable const& parameter) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Execute(*(void**)(¶meter))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Execute(*(void**)(¶meter))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IContextRequestedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IContextRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IContextRequestedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IContextRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IContextRequestedEventArgs< + D>::TryGetPosition(winrt::Microsoft::UI::Xaml::UIElement const& relativeTo, + winrt::Windows::Foundation::Point& point) const { + bool returnValue{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IContextRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryGetPosition( + *(void**)(&relativeTo), impl::bind_out(point), &returnValue)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryGetPosition( + *(void**)(&relativeTo), impl::bind_out(point), &returnValue)); + } + return returnValue; +} +template +auto consume_Microsoft_UI_Xaml_Input_IDoubleTappedRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IDoubleTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IDoubleTappedRoutedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IDoubleTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IDoubleTappedRoutedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IDoubleTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IDoubleTappedRoutedEventArgs:: + GetPosition(winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IDoubleTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IExecuteRequestedEventArgs::Parameter() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IExecuteRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions::SearchRoot() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SearchRoot(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->get_SearchRoot(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions::SearchRoot( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SearchRoot(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->put_SearchRoot(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions::ExclusionRect() + const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExclusionRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->get_ExclusionRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions::ExclusionRect( + winrt::Windows::Foundation::Rect const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExclusionRect(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->put_ExclusionRect(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions::HintRect() + const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HintRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->get_HintRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions::HintRect( + winrt::Windows::Foundation::Rect const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HintRect(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->put_HintRect(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions< + D>::XYFocusNavigationStrategyOverride() const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategyOverride value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusNavigationStrategyOverride( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->get_XYFocusNavigationStrategyOverride( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFindNextElementOptions:: + XYFocusNavigationStrategyOverride( + winrt::Microsoft::UI::Xaml::Input:: + XYFocusNavigationStrategyOverride const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusNavigationStrategyOverride( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IFindNextElementOptions>**)this; + check_hresult(_winrt_abi_type->put_XYFocusNavigationStrategyOverride( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerGotFocusEventArgs< + D>::NewFocusedElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerGotFocusEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewFocusedElement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewFocusedElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerGotFocusEventArgs< + D>::CorrelationId() const { + winrt::guid value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerGotFocusEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerLostFocusEventArgs< + D>::OldFocusedElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerLostFocusEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldFocusedElement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldFocusedElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerLostFocusEventArgs< + D>::CorrelationId() const { + winrt::guid value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerLostFocusEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GotFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::FocusManagerGotFocusEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GotFocus( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::FocusManagerGotFocusEventArgs> const& + handler) const { + return impl::make_event_revoker(this, GotFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GotFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::LostFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input:: + FocusManagerLostFocusEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::LostFocus( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input:: + FocusManagerLostFocusEventArgs> const& handler) const { + return impl::make_event_revoker(this, + LostFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::LostFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GettingFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::GettingFocusEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GettingFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GettingFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GettingFocus( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::GettingFocusEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, GettingFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GettingFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GettingFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GettingFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::LosingFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::LosingFocusEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_LosingFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_LosingFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::LosingFocus( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::LosingFocusEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + LosingFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::LosingFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LosingFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LosingFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::TryFocusAsync( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FocusState const& value) const { + void* operation{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryFocusAsync( + *(void**)(&element), static_cast(value), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryFocusAsync( + *(void**)(&element), static_cast(value), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Xaml::Input::FocusMovementResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::TryMoveFocusAsync( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) const { + void* operation{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryMoveFocusAsync( + static_cast(focusNavigationDirection), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryMoveFocusAsync( + static_cast(focusNavigationDirection), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Xaml::Input::FocusMovementResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::TryMoveFocusAsync( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const& + focusNavigationOptions) const { + void* operation{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryMoveFocusWithOptionsAsync( + static_cast(focusNavigationDirection), + *(void**)(&focusNavigationOptions), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryMoveFocusWithOptionsAsync( + static_cast(focusNavigationDirection), + *(void**)(&focusNavigationOptions), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Xaml::Input::FocusMovementResult>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::TryMoveFocus( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const& + focusNavigationOptions) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryMoveFocusWithOptions( + static_cast(focusNavigationDirection), + *(void**)(&focusNavigationOptions), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryMoveFocusWithOptions( + static_cast(focusNavigationDirection), + *(void**)(&focusNavigationOptions), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::FindNextElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindNextElement( + static_cast(focusNavigationDirection), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindNextElement( + static_cast(focusNavigationDirection), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics:: + FindFirstFocusableElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& searchScope) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindFirstFocusableElement( + *(void**)(&searchScope), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindFirstFocusableElement( + *(void**)(&searchScope), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics:: + FindLastFocusableElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& searchScope) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindLastFocusableElement( + *(void**)(&searchScope), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindLastFocusableElement( + *(void**)(&searchScope), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::FindNextElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const& + focusNavigationOptions) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindNextElementWithOptions( + static_cast(focusNavigationDirection), + *(void**)(&focusNavigationOptions), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindNextElementWithOptions( + static_cast(focusNavigationDirection), + *(void**)(&focusNavigationOptions), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics:: + FindNextFocusableElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindNextFocusableElement( + static_cast(focusNavigationDirection), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindNextFocusableElement( + static_cast(focusNavigationDirection), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics:: + FindNextFocusableElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Windows::Foundation::Rect const& hintRect) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindNextFocusableElementWithHint( + static_cast(focusNavigationDirection), impl::bind_in(hintRect), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindNextFocusableElementWithHint( + static_cast(focusNavigationDirection), impl::bind_in(hintRect), + &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::TryMoveFocus( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryMoveFocus( + static_cast(focusNavigationDirection), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryMoveFocus( + static_cast(focusNavigationDirection), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics< + D>::GetFocusedElement() const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFocusedElement(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFocusedElement(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusManagerStatics::GetFocusedElement( + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetFocusedElementWithRoot( + *(void**)(&xamlRoot), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetFocusedElementWithRoot( + *(void**)(&xamlRoot), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IFocusMovementResult::Succeeded() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusMovementResult>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IFocusMovementResult, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Succeeded(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Succeeded(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs< + D>::OldFocusedElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldFocusedElement(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_OldFocusedElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs< + D>::NewFocusedElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewFocusedElement(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NewFocusedElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs< + D>::NewFocusedElement(winrt::Microsoft::UI::Xaml::DependencyObject const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NewFocusedElement(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_NewFocusedElement(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::FocusState() + const { + winrt::Microsoft::UI::Xaml::FocusState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::Direction() + const { + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::InputDevice() + const { + winrt::Microsoft::UI::Xaml::Input::FocusInputDeviceKind value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_InputDevice(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_InputDevice(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::Cancel() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::Cancel( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::CorrelationId() + const { + winrt::guid value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs::TryCancel() + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryCancel(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->TryCancel(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IGettingFocusEventArgs:: + TrySetNewFocusedElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IGettingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TrySetNewFocusedElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->TrySetNewFocusedElement(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IHoldingRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IHoldingRoutedEventArgs::HoldingState() + const { + winrt::Microsoft::UI::Input::HoldingState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_HoldingState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs>**)this; + check_hresult( + _winrt_abi_type->get_HoldingState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IHoldingRoutedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IHoldingRoutedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IHoldingRoutedEventArgs::GetPosition( + winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IHoldingRoutedEventArgs>**)this; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaExpansionBehavior< + D>::DesiredDeceleration() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaExpansionBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredDeceleration(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredDeceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaExpansionBehavior< + D>::DesiredDeceleration(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaExpansionBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredDeceleration(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DesiredDeceleration(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaExpansionBehavior< + D>::DesiredExpansion() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaExpansionBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredExpansion(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredExpansion(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaExpansionBehavior< + D>::DesiredExpansion(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaExpansionBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredExpansion(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DesiredExpansion(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaRotationBehavior< + D>::DesiredDeceleration() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredDeceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior>**)this; + check_hresult(_winrt_abi_type->get_DesiredDeceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaRotationBehavior< + D>::DesiredDeceleration(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredDeceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior>**)this; + check_hresult(_winrt_abi_type->put_DesiredDeceleration(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaRotationBehavior< + D>::DesiredRotation() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredRotation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior>**)this; + check_hresult(_winrt_abi_type->get_DesiredRotation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaRotationBehavior< + D>::DesiredRotation(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredRotation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior>**)this; + check_hresult(_winrt_abi_type->put_DesiredRotation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaTranslationBehavior< + D>::DesiredDeceleration() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaTranslationBehavior, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredDeceleration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredDeceleration(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaTranslationBehavior< + D>::DesiredDeceleration(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaTranslationBehavior, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredDeceleration(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DesiredDeceleration(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaTranslationBehavior< + D>::DesiredDisplacement() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaTranslationBehavior, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredDisplacement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredDisplacement(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInertiaTranslationBehavior< + D>::DesiredDisplacement(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInertiaTranslationBehavior, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DesiredDisplacement(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DesiredDisplacement(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInputScope::Names() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IInputScope>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Names(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Names(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Input::InputScopeName>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInputScopeName::NameValue() const { + winrt::Microsoft::UI::Xaml::Input::InputScopeNameValue value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IInputScopeName>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInputScopeName, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_NameValue(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_NameValue(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IInputScopeName::NameValue( + winrt::Microsoft::UI::Xaml::Input::InputScopeNameValue const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IInputScopeName>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInputScopeName, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NameValue(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_NameValue(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IInputScopeNameFactory::CreateInstance( + winrt::Microsoft::UI::Xaml::Input::InputScopeNameValue const& nameValue) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IInputScopeNameFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + static_cast(nameValue), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + static_cast(nameValue), &value)); + } + return winrt::Microsoft::UI::Xaml::Input::InputScopeName{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyRoutedEventArgs::Key() const { + winrt::Windows::System::VirtualKey value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Key(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Key(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyRoutedEventArgs::KeyStatus() const { + winrt::Windows::UI::Core::CorePhysicalKeyStatus value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyStatus(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyRoutedEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyRoutedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyRoutedEventArgs::OriginalKey() + const { + winrt::Windows::System::VirtualKey value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_OriginalKey(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_OriginalKey(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyRoutedEventArgs::DeviceId() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DeviceId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DeviceId(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Key() const { + winrt::Windows::System::VirtualKey value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Key(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Key(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Key( + winrt::Windows::System::VirtualKey const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Key(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Key(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Modifiers() + const { + winrt::Windows::System::VirtualKeyModifiers value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Modifiers( + winrt::Windows::System::VirtualKeyModifiers const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Modifiers(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Modifiers(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::IsEnabled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::IsEnabled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::ScopeOwner() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScopeOwner(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScopeOwner(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::ScopeOwner( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScopeOwner(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScopeOwner(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Invoked( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator, + winrt::Microsoft::UI::Xaml::Input:: + KeyboardAcceleratorInvokedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Invoked(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Invoked(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Invoked( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator, + winrt::Microsoft::UI::Xaml::Input:: + KeyboardAcceleratorInvokedEventArgs> const& handler) const { + return impl::make_event_revoker(this, Invoked(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAccelerator::Invoked( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAccelerator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Invoked(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Invoked(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorInvokedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorInvokedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorInvokedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorInvokedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorInvokedEventArgs< + D>::Element() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorInvokedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorInvokedEventArgs< + D>::KeyboardAccelerator() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorInvokedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAccelerator(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAccelerator(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorStatics< + D>::KeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorStatics< + D>::ModifiersProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ModifiersProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ModifiersProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorStatics< + D>::IsEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IKeyboardAcceleratorStatics< + D>::ScopeOwnerProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScopeOwnerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScopeOwnerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs< + D>::OldFocusedElement() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldFocusedElement(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_OldFocusedElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs< + D>::NewFocusedElement() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewFocusedElement(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NewFocusedElement(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs< + D>::NewFocusedElement(winrt::Microsoft::UI::Xaml::DependencyObject const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NewFocusedElement(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_NewFocusedElement(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::FocusState() + const { + winrt::Microsoft::UI::Xaml::FocusState value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::Direction() + const { + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::InputDevice() + const { + winrt::Microsoft::UI::Xaml::Input::FocusInputDeviceKind value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_InputDevice(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->get_InputDevice(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::Cancel() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::Cancel( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::CorrelationId() + const { + winrt::guid value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CorrelationId(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs::TryCancel() + const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryCancel(&result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->TryCancel(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_ILosingFocusEventArgs:: + TrySetNewFocusedElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ILosingFocusEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TrySetNewFocusedElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->TrySetNewFocusedElement(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::Container() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::IsInertial() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::Cumulative() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::Velocities() const { + winrt::Microsoft::UI::Input::ManipulationVelocities value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationCompletedRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationCompletedRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Container() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::IsInertial() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInertial(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Delta() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Cumulative() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Velocities() const { + winrt::Microsoft::UI::Input::ManipulationVelocities value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationDeltaRoutedEventArgs< + D>::Complete() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::Container() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::ExpansionBehavior() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExpansionBehavior(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExpansionBehavior(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::InertiaExpansionBehavior{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::ExpansionBehavior(winrt::Microsoft::UI::Xaml::Input:: + InertiaExpansionBehavior const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExpansionBehavior(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExpansionBehavior(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::RotationBehavior() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationBehavior(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationBehavior(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::InertiaRotationBehavior{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::RotationBehavior(winrt::Microsoft::UI::Xaml::Input:: + InertiaRotationBehavior const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationBehavior(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationBehavior(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::TranslationBehavior() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslationBehavior(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslationBehavior(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::InertiaTranslationBehavior{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::TranslationBehavior(winrt::Microsoft::UI::Xaml::Input:: + InertiaTranslationBehavior const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TranslationBehavior(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TranslationBehavior(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::Delta() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Delta(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::Cumulative() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationInertiaStartingRoutedEventArgs< + D>::Velocities() const { + winrt::Microsoft::UI::Input::ManipulationVelocities value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationInertiaStartingRoutedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Velocities(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationPivot::Center() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationPivot>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationPivot, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationPivot::Center( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationPivot>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationPivot, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationPivot::Radius() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationPivot>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationPivot, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Radius(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Radius(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationPivot::Radius( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationPivot>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationPivot, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Radius(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Radius(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationPivotFactory:: + CreateInstanceWithCenterAndRadius( + winrt::Windows::Foundation::Point const& center, double radius) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationPivotFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithCenterAndRadius( + impl::bind_in(center), radius, &value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithCenterAndRadius( + impl::bind_in(center), radius, &value)); + } + return winrt::Microsoft::UI::Xaml::Input::ManipulationPivot{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::Container() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::Position() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Position(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::Cumulative() const { + winrt::Microsoft::UI::Input::ManipulationDelta value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cumulative(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgs< + D>::Complete() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartedRoutedEventArgsFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input:: + IManipulationStartedRoutedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input:: + IManipulationStartedRoutedEventArgsFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Input::ManipulationStartedRoutedEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Mode() const { + winrt::Microsoft::UI::Xaml::Input::ManipulationModes value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Mode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Mode(winrt::Microsoft::UI::Xaml::Input::ManipulationModes const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Mode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Container() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Container(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Container(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Container(winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Container(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Container(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Pivot() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pivot(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Pivot(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ManipulationPivot{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Pivot(winrt::Microsoft::UI::Xaml::Input::ManipulationPivot const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Pivot(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Pivot(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IManipulationStartingRoutedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_INoFocusCandidateFoundEventArgs< + D>::Direction() const { + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::INoFocusCandidateFoundEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_INoFocusCandidateFoundEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::INoFocusCandidateFoundEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_INoFocusCandidateFoundEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::INoFocusCandidateFoundEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_INoFocusCandidateFoundEventArgs< + D>::InputDevice() const { + winrt::Microsoft::UI::Xaml::Input::FocusInputDeviceKind value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::INoFocusCandidateFoundEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_InputDevice(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_InputDevice(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointer::PointerId() const { + uint32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerId(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerId(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointer::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointer::IsInContact() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInContact(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInContact(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointer::IsInRange() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsInRange(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsInRange(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs::Pointer() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Pointer(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Pointer(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::Pointer{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs::KeyModifiers() + const { + winrt::Windows::System::VirtualKeyModifiers value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeyModifiers(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult( + _winrt_abi_type->get_KeyModifiers(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs::IsGenerated() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGenerated(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->get_IsGenerated(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs< + D>::GetCurrentPoint(winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetCurrentPoint(*(void**)(&relativeTo), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult( + _winrt_abi_type->GetCurrentPoint(*(void**)(&relativeTo), &result)); + } + return winrt::Microsoft::UI::Input::PointerPoint{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IPointerRoutedEventArgs< + D>::GetIntermediatePoints(winrt::Microsoft::UI::Xaml::UIElement const& + relativeTo) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIntermediatePoints(*(void**)(&relativeTo), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Input::IPointerRoutedEventArgs>**)this; + check_hresult(_winrt_abi_type->GetIntermediatePoints(*(void**)(&relativeTo), + &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Input::PointerPoint>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IProcessKeyboardAcceleratorEventArgs< + D>::Key() const { + winrt::Windows::System::VirtualKey value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IProcessKeyboardAcceleratorEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Key(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Key(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IProcessKeyboardAcceleratorEventArgs< + D>::Modifiers() const { + winrt::Windows::System::VirtualKeyModifiers value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IProcessKeyboardAcceleratorEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IProcessKeyboardAcceleratorEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IProcessKeyboardAcceleratorEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IProcessKeyboardAcceleratorEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IProcessKeyboardAcceleratorEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IRightTappedRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IRightTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IRightTappedRoutedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IRightTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IRightTappedRoutedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IRightTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IRightTappedRoutedEventArgs:: + GetPosition(winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IRightTappedRoutedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IStandardUICommand::Kind() const { + winrt::Microsoft::UI::Xaml::Input::StandardUICommandKind value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IStandardUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IStandardUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_IStandardUICommand::Kind( + winrt::Microsoft::UI::Xaml::Input::StandardUICommandKind const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IStandardUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IStandardUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IStandardUICommandFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IStandardUICommandFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Input::StandardUICommand{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IStandardUICommandFactory:: + CreateInstanceWithKind( + winrt::Microsoft::UI::Xaml::Input::StandardUICommandKind const& kind, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IStandardUICommandFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithKind( + static_cast(kind), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithKind( + static_cast(kind), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Input::StandardUICommand{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IStandardUICommandStatics< + D>::KindProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IStandardUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KindProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KindProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_ITappedRoutedEventArgs< + D>::PointerDeviceType() const { + winrt::Microsoft::UI::Input::PointerDeviceType value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ITappedRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerDeviceType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ITappedRoutedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ITappedRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Input_ITappedRoutedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ITappedRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_ITappedRoutedEventArgs::GetPosition( + winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::ITappedRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::Label() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Label(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Label(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::Label( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Label(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Label(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::IconSource() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::IconSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::IconSource( + winrt::Microsoft::UI::Xaml::Controls::IconSource const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IconSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::KeyboardAccelerators() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAccelerators(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAccelerators(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::AccessKey() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKey(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKey(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::AccessKey( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AccessKey(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AccessKey(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::Description() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Description(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Description(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::Description( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Description(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::Command() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Command(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Command(&value)); + } + return winrt::Microsoft::UI::Xaml::Input::ICommand{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::Command( + winrt::Microsoft::UI::Xaml::Input::ICommand const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::ExecuteRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Input::XamlUICommand, + winrt::Microsoft::UI::Xaml::Input::ExecuteRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ExecuteRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ExecuteRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::ExecuteRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Input::XamlUICommand, + winrt::Microsoft::UI::Xaml::Input::ExecuteRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ExecuteRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::ExecuteRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ExecuteRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ExecuteRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::CanExecuteRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Input::XamlUICommand, + winrt::Microsoft::UI::Xaml::Input::CanExecuteRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CanExecuteRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CanExecuteRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::CanExecuteRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Input::XamlUICommand, + winrt::Microsoft::UI::Xaml::Input::CanExecuteRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, CanExecuteRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand::CanExecuteRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CanExecuteRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CanExecuteRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommand< + D>::NotifyCanExecuteChanged() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Input::IXamlUICommand>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommand, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->NotifyCanExecuteChanged()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->NotifyCanExecuteChanged()); + } +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Input::XamlUICommand{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandStatics::LabelProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LabelProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_LabelProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandStatics< + D>::IconSourceProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IconSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandStatics< + D>::KeyboardAcceleratorsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandStatics< + D>::AccessKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandStatics< + D>::DescriptionProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DescriptionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Input_IXamlUICommandStatics::CommandProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Input::IXamlUICommandStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CommandProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +struct delegate + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::DoubleTappedEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::DoubleTappedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::HoldingEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::HoldingEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::HoldingRoutedEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const*>(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedEventHandler, + H> { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaEventHandler, + H>(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationInertiaStartingEventHandler, + H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input:: + ManipulationInertiaStartingRoutedEventArgs const*>(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedEventHandler, + H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedEventHandler, + H>(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartingEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartingEventHandler, + H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartingEventHandler, + H>(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::RightTappedEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::RightTappedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Input::TappedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::TappedRoutedEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IAccessKeyDisplayDismissedEventArgs> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IAccessKeyDisplayRequestedEventArgs> + : produce_base { + int32_t __stdcall get_PressedKeys(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PressedKeys()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IAccessKeyInvokedEventArgs> { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics> { + int32_t __stdcall get_IsDisplayModeEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDisplayModeEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AreKeyTipsEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AreKeyTipsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AreKeyTipsEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AreKeyTipsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_IsDisplayModeEnabledChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().IsDisplayModeEnabledChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_IsDisplayModeEnabledChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().IsDisplayModeEnabledChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall ExitDisplayMode() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitDisplayMode(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics2> { + int32_t __stdcall EnterDisplayModeForXamlRoot(void* XamlRoot) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnterDisplayMode( + *reinterpret_cast( + &XamlRoot)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::ICanExecuteRequestedEventArgs> { + int32_t __stdcall get_Parameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parameter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanExecute(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanExecute()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanExecute(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanExecute(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::ICharacterReceivedRoutedEventArgs> + : produce_base { + int32_t __stdcall get_Character(char16_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Character()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyStatus( + struct struct_Windows_UI_Core_CorePhysicalKeyStatus* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyStatus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall add_CanExecuteChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CanExecuteChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CanExecuteChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CanExecuteChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall CanExecute(void* parameter, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CanExecute( + *reinterpret_cast( + ¶meter))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Execute(void* parameter) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Execute( + *reinterpret_cast( + ¶meter)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IContextRequestedEventArgs> { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryGetPosition(void* relativeTo, + winrt::Windows::Foundation::Point* point, + bool* returnValue) noexcept final try { + zero_abi(point); + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().TryGetPosition( + *reinterpret_cast( + &relativeTo), + *reinterpret_cast(point))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IDoubleTappedRoutedEventArgs> { + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPosition( + void* relativeTo, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().GetPosition( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IExecuteRequestedEventArgs> { + int32_t __stdcall get_Parameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parameter()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SearchRoot(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SearchRoot()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SearchRoot(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SearchRoot( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExclusionRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExclusionRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExclusionRect( + winrt::Windows::Foundation::Rect value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExclusionRect( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HintRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().HintRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HintRect( + winrt::Windows::Foundation::Rect value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HintRect( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusNavigationStrategyOverride( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategyOverride>( + this->shim().XYFocusNavigationStrategyOverride()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusNavigationStrategyOverride( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusNavigationStrategyOverride( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IFocusManagerGotFocusEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerGotFocusEventArgs> { + int32_t __stdcall get_NewFocusedElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IFocusManagerLostFocusEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerLostFocusEventArgs> { + int32_t __stdcall get_OldFocusedElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall add_GotFocus(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GotFocus( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GotFocus(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LostFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LostFocus( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LostFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LostFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_GettingFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GettingFocus( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GettingFocus( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GettingFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LosingFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LosingFocus( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LosingFocus( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LosingFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall TryFocusAsync(void* element, int32_t value, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().TryFocusAsync( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>(&element), + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryMoveFocusAsync(int32_t focusNavigationDirection, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().TryMoveFocusAsync( + *reinterpret_cast( + &focusNavigationDirection))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryMoveFocusWithOptionsAsync( + int32_t focusNavigationDirection, void* focusNavigationOptions, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().TryMoveFocusAsync( + *reinterpret_cast( + &focusNavigationDirection), + *reinterpret_cast( + &focusNavigationOptions))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryMoveFocusWithOptions(int32_t focusNavigationDirection, + void* focusNavigationOptions, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryMoveFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const*>( + &focusNavigationDirection), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const*>( + &focusNavigationOptions))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindNextElement(int32_t focusNavigationDirection, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindNextElement( + *reinterpret_cast( + &focusNavigationDirection))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindFirstFocusableElement(void* searchScope, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindFirstFocusableElement( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &searchScope))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindLastFocusableElement(void* searchScope, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindLastFocusableElement( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &searchScope))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindNextElementWithOptions(int32_t focusNavigationDirection, + void* focusNavigationOptions, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().FindNextElement( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const*>( + &focusNavigationDirection), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const*>( + &focusNavigationOptions))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindNextFocusableElement(int32_t focusNavigationDirection, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindNextFocusableElement( + *reinterpret_cast( + &focusNavigationDirection))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindNextFocusableElementWithHint( + int32_t focusNavigationDirection, + winrt::Windows::Foundation::Rect hintRect, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindNextFocusableElement( + *reinterpret_cast( + &focusNavigationDirection), + *reinterpret_cast( + &hintRect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryMoveFocus(int32_t focusNavigationDirection, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryMoveFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const*>( + &focusNavigationDirection))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFocusedElement(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetFocusedElementWithRoot(void* xamlRoot, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetFocusedElement( + *reinterpret_cast( + &xamlRoot))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Succeeded(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Succeeded()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OldFocusedElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewFocusedElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NewFocusedElement(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NewFocusedElement( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Direction(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection>( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InputDevice(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().InputDevice()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryCancel(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryCancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TrySetNewFocusedElement(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TrySetNewFocusedElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HoldingState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HoldingState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPosition( + void* relativeTo, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().GetPosition( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IInertiaExpansionBehavior> { + int32_t __stdcall get_DesiredDeceleration(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredDeceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredDeceleration(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredDeceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DesiredExpansion(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredExpansion()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredExpansion(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredExpansion(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IInertiaRotationBehavior> { + int32_t __stdcall get_DesiredDeceleration(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredDeceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredDeceleration(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredDeceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DesiredRotation(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredRotation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredRotation(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredRotation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IInertiaTranslationBehavior> { + int32_t __stdcall get_DesiredDeceleration(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredDeceleration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredDeceleration(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredDeceleration(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DesiredDisplacement(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DesiredDisplacement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DesiredDisplacement(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DesiredDisplacement(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Names(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().Names()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_NameValue(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().NameValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NameValue(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NameValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::InputScopeNameValue const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(int32_t nameValue, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::InputScopeNameValue const*>( + &nameValue))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Key(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Key()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyStatus( + struct struct_Windows_UI_Core_CorePhysicalKeyStatus* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyStatus()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OriginalKey(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OriginalKey()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DeviceId(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DeviceId()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Key(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Key()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Key(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Key( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Modifiers(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Modifiers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Modifiers(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Modifiers( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScopeOwner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScopeOwner()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScopeOwner(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScopeOwner( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Invoked(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Invoked( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Invoked(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Invoked(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorInvokedEventArgs> + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Element(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Element()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAccelerator(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().KeyboardAccelerator()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorStatics> { + int32_t __stdcall get_KeyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ModifiersProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ModifiersProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEnabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScopeOwnerProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScopeOwnerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OldFocusedElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewFocusedElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewFocusedElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NewFocusedElement(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NewFocusedElement( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Direction(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection>( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InputDevice(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().InputDevice()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CorrelationId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryCancel(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryCancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TrySetNewFocusedElement(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TrySetNewFocusedElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationCompletedRoutedEventArgs> + : produce_base { + int32_t __stdcall get_Container(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Container()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInertial(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInertial()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Velocities( + struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Velocities()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs> + : produce_base { + int32_t __stdcall get_Container(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Container()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInertial(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInertial()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Delta( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Delta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Velocities( + struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Velocities()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Complete() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Container(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Container()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExpansionBehavior(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::InertiaExpansionBehavior>( + this->shim().ExpansionBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExpansionBehavior(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExpansionBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::InertiaExpansionBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationBehavior(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().RotationBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationBehavior(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::InertiaRotationBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslationBehavior(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::InertiaTranslationBehavior>( + this->shim().TranslationBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslationBehavior(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslationBehavior( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Delta( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Delta()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Velocities( + struct struct_Microsoft_UI_Input_ManipulationVelocities* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Velocities()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Center( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Center()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Center( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Center( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Radius(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Radius()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Radius(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Radius(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationPivotFactory> { + int32_t __stdcall CreateInstanceWithCenterAndRadius( + winrt::Windows::Foundation::Point center, double radius, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithCenterAndRadius( + *reinterpret_cast( + ¢er), + radius)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs> + : produce_base { + int32_t __stdcall get_Container(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Container()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Position( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Position()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Cumulative( + struct struct_Microsoft_UI_Input_ManipulationDelta* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Cumulative()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Complete() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedRoutedEventArgs>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs> + : produce_base { + int32_t __stdcall get_Mode(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Mode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Mode(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Mode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::ManipulationModes const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Container(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Container()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Container(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Container( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Pivot(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Pivot()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Pivot(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Pivot( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::ManipulationPivot const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::INoFocusCandidateFoundEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Input::INoFocusCandidateFoundEventArgs> { + int32_t __stdcall get_Direction(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection>( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InputDevice(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().InputDevice()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerId(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PointerId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInContact(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInContact()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsInRange(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsInRange()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Pointer(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Pointer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyModifiers(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyModifiers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsGenerated(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGenerated()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCurrentPoint(void* relativeTo, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCurrentPoint( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIntermediatePoints(void* relativeTo, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetIntermediatePoints( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Input::IProcessKeyboardAcceleratorEventArgs> + : produce_base { + int32_t __stdcall get_Key(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Key()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Modifiers(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Modifiers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IRightTappedRoutedEventArgs> { + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPosition( + void* relativeTo, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().GetPosition( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Kind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Kind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Kind(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Kind( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::StandardUICommandKind const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IStandardUICommandFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithKind(int32_t kind, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithKind( + *reinterpret_cast(&kind), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Input::IStandardUICommandStatics> { + int32_t __stdcall get_KindProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KindProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointerDeviceType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerDeviceType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPosition( + void* relativeTo, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().GetPosition( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Label(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Label()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Label(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Label(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IconSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IconSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IconSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IconSource( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::IconSource const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAccelerators(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().KeyboardAccelerators()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKey(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AccessKey()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AccessKey(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKey(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Description(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Description()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Description(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Description(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Command(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Command()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Command(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Command( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ExecuteRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ExecuteRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ExecuteRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ExecuteRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CanExecuteRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CanExecuteRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CanExecuteRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CanExecuteRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall NotifyCanExecuteChanged() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NotifyCanExecuteChanged(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_LabelProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LabelProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IconSourceProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IconSourceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAcceleratorsProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyboardAcceleratorsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DescriptionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DescriptionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CommandProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CommandProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Input { + constexpr auto operator|(ManipulationModes const left, + ManipulationModes const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(ManipulationModes& left, + ManipulationModes const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(ManipulationModes const left, + ManipulationModes const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(ManipulationModes& left, + ManipulationModes const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(ManipulationModes const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(ManipulationModes const left, + ManipulationModes const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(ManipulationModes& left, + ManipulationModes const right) noexcept { + left = left ^ right; + return left; + } + inline AccessKeyDisplayDismissedEventArgs:: + AccessKeyDisplayDismissedEventArgs() + : AccessKeyDisplayDismissedEventArgs( + impl::call_factory_cast< + AccessKeyDisplayDismissedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AccessKeyDisplayDismissedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AccessKeyDisplayDismissedEventArgs>(); + })) {} + inline AccessKeyDisplayRequestedEventArgs:: + AccessKeyDisplayRequestedEventArgs() + : AccessKeyDisplayRequestedEventArgs( + impl::call_factory_cast< + AccessKeyDisplayRequestedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AccessKeyDisplayRequestedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + AccessKeyDisplayRequestedEventArgs>(); + })) {} + inline AccessKeyInvokedEventArgs::AccessKeyInvokedEventArgs() + : AccessKeyInvokedEventArgs( + impl::call_factory_cast< + AccessKeyInvokedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AccessKeyInvokedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto AccessKeyManager::IsDisplayModeEnabled() { + return impl::call_factory_cast( + [](IAccessKeyManagerStatics const& f) { + return f.IsDisplayModeEnabled(); + }); + } + inline auto AccessKeyManager::AreKeyTipsEnabled() { + return impl::call_factory_cast( + [](IAccessKeyManagerStatics const& f) { + return f.AreKeyTipsEnabled(); + }); + } + inline auto AccessKeyManager::AreKeyTipsEnabled(bool value) { + impl::call_factory( + [&](IAccessKeyManagerStatics const& f) { + return f.AreKeyTipsEnabled(value); + }); + } + inline auto AccessKeyManager::IsDisplayModeEnabledChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Windows::Foundation::IInspectable> const& handler) { + return impl::call_factory( + [&](IAccessKeyManagerStatics const& f) { + return f.IsDisplayModeEnabledChanged(handler); + }); + } + inline auto AccessKeyManager::IsDisplayModeEnabledChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Windows::Foundation::IInspectable> const& handler) { + auto f = get_activation_factory< + AccessKeyManager, + winrt::Microsoft::UI::Xaml::Input::IAccessKeyManagerStatics>(); + return AccessKeyManager::IsDisplayModeEnabledChanged_revoker{ + f, f.IsDisplayModeEnabledChanged(handler)}; + } + inline auto AccessKeyManager::IsDisplayModeEnabledChanged( + winrt::event_token const& token) { + impl::call_factory( + [&](IAccessKeyManagerStatics const& f) { + return f.IsDisplayModeEnabledChanged(token); + }); + } + inline auto AccessKeyManager::ExitDisplayMode() { + impl::call_factory_cast( + [](IAccessKeyManagerStatics const& f) { return f.ExitDisplayMode(); }); + } + inline auto AccessKeyManager::EnterDisplayMode( + winrt::Microsoft::UI::Xaml::XamlRoot const& XamlRoot) { + impl::call_factory( + [&](IAccessKeyManagerStatics2 const& f) { + return f.EnterDisplayMode(XamlRoot); + }); + } + inline ContextRequestedEventArgs::ContextRequestedEventArgs() + : ContextRequestedEventArgs( + impl::call_factory_cast< + ContextRequestedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ContextRequestedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline DoubleTappedRoutedEventArgs::DoubleTappedRoutedEventArgs() + : DoubleTappedRoutedEventArgs( + impl::call_factory_cast< + DoubleTappedRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DoubleTappedRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline FindNextElementOptions::FindNextElementOptions() + : FindNextElementOptions( + impl::call_factory_cast< + FindNextElementOptions (*)( + winrt::Windows::Foundation::IActivationFactory const&), + FindNextElementOptions>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto FocusManager::GotFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input:: + FocusManagerGotFocusEventArgs> const& handler) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.GotFocus(handler); }); + } + inline auto FocusManager::GotFocus( + auto_revoke_t, winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input:: + FocusManagerGotFocusEventArgs> const& handler) { + auto f = get_activation_factory< + FocusManager, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>(); + return FocusManager::GotFocus_revoker{f, f.GotFocus(handler)}; + } + inline auto FocusManager::GotFocus(winrt::event_token const& token) { + impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.GotFocus(token); }); + } + inline auto FocusManager::LostFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input:: + FocusManagerLostFocusEventArgs> const& handler) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.LostFocus(handler); }); + } + inline auto FocusManager::LostFocus( + auto_revoke_t, winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input:: + FocusManagerLostFocusEventArgs> const& handler) { + auto f = get_activation_factory< + FocusManager, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>(); + return FocusManager::LostFocus_revoker{f, f.LostFocus(handler)}; + } + inline auto FocusManager::LostFocus(winrt::event_token const& token) { + impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.LostFocus(token); }); + } + inline auto FocusManager::GettingFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::GettingFocusEventArgs> const& + handler) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.GettingFocus(handler); }); + } + inline auto FocusManager::GettingFocus( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::GettingFocusEventArgs> const& + handler) { + auto f = get_activation_factory< + FocusManager, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>(); + return FocusManager::GettingFocus_revoker{f, f.GettingFocus(handler)}; + } + inline auto FocusManager::GettingFocus(winrt::event_token const& token) { + impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.GettingFocus(token); }); + } + inline auto FocusManager::LosingFocus( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::LosingFocusEventArgs> const& + handler) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.LosingFocus(handler); }); + } + inline auto FocusManager::LosingFocus( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Input::LosingFocusEventArgs> const& + handler) { + auto f = get_activation_factory< + FocusManager, + winrt::Microsoft::UI::Xaml::Input::IFocusManagerStatics>(); + return FocusManager::LosingFocus_revoker{f, f.LosingFocus(handler)}; + } + inline auto FocusManager::LosingFocus(winrt::event_token const& token) { + impl::call_factory( + [&](IFocusManagerStatics const& f) { return f.LosingFocus(token); }); + } + inline auto FocusManager::TryFocusAsync( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::FocusState const& value) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.TryFocusAsync(element, value); + }); + } + inline auto FocusManager::TryMoveFocusAsync( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.TryMoveFocusAsync(focusNavigationDirection); + }); + } + inline auto FocusManager::TryMoveFocusAsync( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const& + focusNavigationOptions) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.TryMoveFocusAsync(focusNavigationDirection, + focusNavigationOptions); + }); + } + inline auto FocusManager::TryMoveFocus( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const& + focusNavigationOptions) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.TryMoveFocus(focusNavigationDirection, + focusNavigationOptions); + }); + } + inline auto FocusManager::FindNextElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.FindNextElement(focusNavigationDirection); + }); + } + inline auto FocusManager::FindFirstFocusableElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& searchScope) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.FindFirstFocusableElement(searchScope); + }); + } + inline auto FocusManager::FindLastFocusableElement( + winrt::Microsoft::UI::Xaml::DependencyObject const& searchScope) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.FindLastFocusableElement(searchScope); + }); + } + inline auto FocusManager::FindNextElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Microsoft::UI::Xaml::Input::FindNextElementOptions const& + focusNavigationOptions) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.FindNextElement(focusNavigationDirection, + focusNavigationOptions); + }); + } + inline auto FocusManager::FindNextFocusableElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.FindNextFocusableElement(focusNavigationDirection); + }); + } + inline auto FocusManager::FindNextFocusableElement( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection, + winrt::Windows::Foundation::Rect const& hintRect) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.FindNextFocusableElement(focusNavigationDirection, hintRect); + }); + } + inline auto FocusManager::TryMoveFocus( + winrt::Microsoft::UI::Xaml::Input::FocusNavigationDirection const& + focusNavigationDirection) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.TryMoveFocus(focusNavigationDirection); + }); + } + inline auto FocusManager::GetFocusedElement() { + return impl::call_factory_cast( + [](IFocusManagerStatics const& f) { return f.GetFocusedElement(); }); + } + inline auto FocusManager::GetFocusedElement( + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) { + return impl::call_factory( + [&](IFocusManagerStatics const& f) { + return f.GetFocusedElement(xamlRoot); + }); + } + inline HoldingRoutedEventArgs::HoldingRoutedEventArgs() + : HoldingRoutedEventArgs( + impl::call_factory_cast< + HoldingRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + HoldingRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline InputScope::InputScope() + : InputScope(impl::call_factory_cast< + InputScope (*)( + winrt::Windows::Foundation::IActivationFactory const&), + InputScope>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline InputScopeName::InputScopeName() + : InputScopeName( + impl::call_factory_cast< + InputScopeName (*)( + winrt::Windows::Foundation::IActivationFactory const&), + InputScopeName>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline InputScopeName::InputScopeName( + winrt::Microsoft::UI::Xaml::Input::InputScopeNameValue const& nameValue) + : InputScopeName( + impl::call_factory( + [&](IInputScopeNameFactory const& f) { + return f.CreateInstance(nameValue); + })) {} + inline KeyboardAccelerator::KeyboardAccelerator() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IKeyboardAcceleratorFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto KeyboardAccelerator::KeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IKeyboardAcceleratorStatics const&), + KeyboardAccelerator, IKeyboardAcceleratorStatics>( + [](IKeyboardAcceleratorStatics const& f) { return f.KeyProperty(); }); + } + inline auto KeyboardAccelerator::ModifiersProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IKeyboardAcceleratorStatics const&), + KeyboardAccelerator, IKeyboardAcceleratorStatics>( + [](IKeyboardAcceleratorStatics const& f) { + return f.ModifiersProperty(); + }); + } + inline auto KeyboardAccelerator::IsEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IKeyboardAcceleratorStatics const&), + KeyboardAccelerator, IKeyboardAcceleratorStatics>( + [](IKeyboardAcceleratorStatics const& f) { + return f.IsEnabledProperty(); + }); + } + inline auto KeyboardAccelerator::ScopeOwnerProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IKeyboardAcceleratorStatics const&), + KeyboardAccelerator, IKeyboardAcceleratorStatics>( + [](IKeyboardAcceleratorStatics const& f) { + return f.ScopeOwnerProperty(); + }); + } + inline ManipulationCompletedRoutedEventArgs:: + ManipulationCompletedRoutedEventArgs() + : ManipulationCompletedRoutedEventArgs( + impl::call_factory_cast< + ManipulationCompletedRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ManipulationCompletedRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ManipulationCompletedRoutedEventArgs>(); + })) {} + inline ManipulationDeltaRoutedEventArgs::ManipulationDeltaRoutedEventArgs() + : ManipulationDeltaRoutedEventArgs( + impl::call_factory_cast< + ManipulationDeltaRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ManipulationDeltaRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ManipulationDeltaRoutedEventArgs>(); + })) {} + inline ManipulationInertiaStartingRoutedEventArgs:: + ManipulationInertiaStartingRoutedEventArgs() + : ManipulationInertiaStartingRoutedEventArgs( + impl::call_factory_cast< + ManipulationInertiaStartingRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ManipulationInertiaStartingRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ManipulationInertiaStartingRoutedEventArgs>(); + })) {} + inline ManipulationPivot::ManipulationPivot() + : ManipulationPivot( + impl::call_factory_cast< + ManipulationPivot (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ManipulationPivot>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ManipulationPivot::ManipulationPivot( + winrt::Windows::Foundation::Point const& center, double radius) + : ManipulationPivot( + impl::call_factory( + [&](IManipulationPivotFactory const& f) { + return f.CreateInstanceWithCenterAndRadius(center, radius); + })) {} + inline ManipulationStartedRoutedEventArgs:: + ManipulationStartedRoutedEventArgs() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IManipulationStartedRoutedEventArgsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline ManipulationStartingRoutedEventArgs:: + ManipulationStartingRoutedEventArgs() + : ManipulationStartingRoutedEventArgs( + impl::call_factory_cast< + ManipulationStartingRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ManipulationStartingRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ManipulationStartingRoutedEventArgs>(); + })) {} + inline RightTappedRoutedEventArgs::RightTappedRoutedEventArgs() + : RightTappedRoutedEventArgs( + impl::call_factory_cast< + RightTappedRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RightTappedRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline StandardUICommand::StandardUICommand() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IStandardUICommandFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline StandardUICommand::StandardUICommand( + winrt::Microsoft::UI::Xaml::Input::StandardUICommandKind const& kind) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IStandardUICommandFactory const& f) { + return f.CreateInstanceWithKind(kind, baseInterface, innerInterface); + }); + } + inline auto StandardUICommand::KindProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IStandardUICommandStatics const&), + StandardUICommand, IStandardUICommandStatics>( + [](IStandardUICommandStatics const& f) { return f.KindProperty(); }); + } + inline TappedRoutedEventArgs::TappedRoutedEventArgs() + : TappedRoutedEventArgs( + impl::call_factory_cast< + TappedRoutedEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TappedRoutedEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline XamlUICommand::XamlUICommand() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IXamlUICommandFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto XamlUICommand::LabelProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlUICommandStatics const&), + XamlUICommand, IXamlUICommandStatics>( + [](IXamlUICommandStatics const& f) { return f.LabelProperty(); }); + } + inline auto XamlUICommand::IconSourceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlUICommandStatics const&), + XamlUICommand, IXamlUICommandStatics>( + [](IXamlUICommandStatics const& f) { return f.IconSourceProperty(); }); + } + inline auto XamlUICommand::KeyboardAcceleratorsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlUICommandStatics const&), + XamlUICommand, IXamlUICommandStatics>( + [](IXamlUICommandStatics const& f) { + return f.KeyboardAcceleratorsProperty(); + }); + } + inline auto XamlUICommand::AccessKeyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlUICommandStatics const&), + XamlUICommand, IXamlUICommandStatics>( + [](IXamlUICommandStatics const& f) { return f.AccessKeyProperty(); }); + } + inline auto XamlUICommand::DescriptionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlUICommandStatics const&), + XamlUICommand, IXamlUICommandStatics>( + [](IXamlUICommandStatics const& f) { return f.DescriptionProperty(); }); + } + inline auto XamlUICommand::CommandProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlUICommandStatics const&), + XamlUICommand, IXamlUICommandStatics>( + [](IXamlUICommandStatics const& f) { return f.CommandProperty(); }); + } + template + DoubleTappedEventHandler::DoubleTappedEventHandler(L handler) + : DoubleTappedEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + DoubleTappedEventHandler::DoubleTappedEventHandler(F * handler) + : DoubleTappedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + DoubleTappedEventHandler::DoubleTappedEventHandler(O * object, M method) + : DoubleTappedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + DoubleTappedEventHandler::DoubleTappedEventHandler(com_ptr && object, + M method) + : DoubleTappedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DoubleTappedEventHandler::DoubleTappedEventHandler(weak_ref && object, + LM && lambda_or_method) + : DoubleTappedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + DoubleTappedEventHandler::DoubleTappedEventHandler( + std::shared_ptr && object, M method) + : DoubleTappedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DoubleTappedEventHandler::DoubleTappedEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : DoubleTappedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto DoubleTappedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::DoubleTappedRoutedEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + HoldingEventHandler::HoldingEventHandler(L handler) + : HoldingEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + HoldingEventHandler::HoldingEventHandler(F * handler) + : HoldingEventHandler([=](auto&&... args) { return handler(args...); }) {} + template + HoldingEventHandler::HoldingEventHandler(O * object, M method) + : HoldingEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + HoldingEventHandler::HoldingEventHandler(com_ptr && object, M method) + : HoldingEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + HoldingEventHandler::HoldingEventHandler(weak_ref && object, + LM && lambda_or_method) + : HoldingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + HoldingEventHandler::HoldingEventHandler(std::shared_ptr && object, + M method) + : HoldingEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + HoldingEventHandler::HoldingEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : HoldingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto HoldingEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::HoldingRoutedEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + KeyEventHandler::KeyEventHandler(L handler) + : KeyEventHandler( + impl::make_delegate(std::forward(handler))) {} + template + KeyEventHandler::KeyEventHandler(F * handler) + : KeyEventHandler([=](auto&&... args) { return handler(args...); }) {} + template + KeyEventHandler::KeyEventHandler(O * object, M method) + : KeyEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + KeyEventHandler::KeyEventHandler(com_ptr && object, M method) + : KeyEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + KeyEventHandler::KeyEventHandler(weak_ref && object, + LM && lambda_or_method) + : KeyEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + KeyEventHandler::KeyEventHandler(std::shared_ptr && object, M method) + : KeyEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + KeyEventHandler::KeyEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : KeyEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto KeyEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::KeyRoutedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler( + L handler) + : ManipulationCompletedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler(F * + handler) + : ManipulationCompletedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler( + O * object, M method) + : ManipulationCompletedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler( + com_ptr && object, M method) + : ManipulationCompletedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler( + weak_ref && object, LM && lambda_or_method) + : ManipulationCompletedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler( + std::shared_ptr && object, M method) + : ManipulationCompletedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationCompletedEventHandler::ManipulationCompletedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : ManipulationCompletedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ManipulationCompletedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input:: + ManipulationCompletedRoutedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler(L handler) + : ManipulationDeltaEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler(F * handler) + : ManipulationDeltaEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler(O * object, + M method) + : ManipulationDeltaEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler( + com_ptr && object, M method) + : ManipulationDeltaEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler( + weak_ref && object, LM && lambda_or_method) + : ManipulationDeltaEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler( + std::shared_ptr && object, M method) + : ManipulationDeltaEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationDeltaEventHandler::ManipulationDeltaEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : ManipulationDeltaEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ManipulationDeltaEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const& + e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(L handler) + : ManipulationInertiaStartingEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(F * handler) + : ManipulationInertiaStartingEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(O * object, M method) + : ManipulationInertiaStartingEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(com_ptr && object, M method) + : ManipulationInertiaStartingEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(weak_ref && object, + LM && lambda_or_method) + : ManipulationInertiaStartingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(std::shared_ptr && object, + M method) + : ManipulationInertiaStartingEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationInertiaStartingEventHandler:: + ManipulationInertiaStartingEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : ManipulationInertiaStartingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ManipulationInertiaStartingEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input:: + ManipulationInertiaStartingRoutedEventArgs const& e) const { + check_hresult( + (*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler(L handler) + : ManipulationStartedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler(F * handler) + : ManipulationStartedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler(O * object, + M method) + : ManipulationStartedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler( + com_ptr && object, M method) + : ManipulationStartedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler( + weak_ref && object, LM && lambda_or_method) + : ManipulationStartedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler( + std::shared_ptr && object, M method) + : ManipulationStartedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationStartedEventHandler::ManipulationStartedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : ManipulationStartedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ManipulationStartedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input:: + ManipulationStartedRoutedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler(L handler) + : ManipulationStartingEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler(F * + handler) + : ManipulationStartingEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler(O * object, + M method) + : ManipulationStartingEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler( + com_ptr && object, M method) + : ManipulationStartingEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler( + weak_ref && object, LM && lambda_or_method) + : ManipulationStartingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler( + std::shared_ptr && object, M method) + : ManipulationStartingEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + ManipulationStartingEventHandler::ManipulationStartingEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : ManipulationStartingEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto ManipulationStartingEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input:: + ManipulationStartingRoutedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + PointerEventHandler::PointerEventHandler(L handler) + : PointerEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + PointerEventHandler::PointerEventHandler(F * handler) + : PointerEventHandler([=](auto&&... args) { return handler(args...); }) {} + template + PointerEventHandler::PointerEventHandler(O * object, M method) + : PointerEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + PointerEventHandler::PointerEventHandler(com_ptr && object, M method) + : PointerEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + PointerEventHandler::PointerEventHandler(weak_ref && object, + LM && lambda_or_method) + : PointerEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + PointerEventHandler::PointerEventHandler(std::shared_ptr && object, + M method) + : PointerEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + PointerEventHandler::PointerEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : PointerEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto PointerEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::PointerRoutedEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + RightTappedEventHandler::RightTappedEventHandler(L handler) + : RightTappedEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + RightTappedEventHandler::RightTappedEventHandler(F * handler) + : RightTappedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + RightTappedEventHandler::RightTappedEventHandler(O * object, M method) + : RightTappedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + RightTappedEventHandler::RightTappedEventHandler(com_ptr && object, + M method) + : RightTappedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + RightTappedEventHandler::RightTappedEventHandler(weak_ref && object, + LM && lambda_or_method) + : RightTappedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + RightTappedEventHandler::RightTappedEventHandler(std::shared_ptr && object, + M method) + : RightTappedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + RightTappedEventHandler::RightTappedEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : RightTappedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto RightTappedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::RightTappedRoutedEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + TappedEventHandler::TappedEventHandler(L handler) + : TappedEventHandler( + impl::make_delegate(std::forward(handler))) { + } + template + TappedEventHandler::TappedEventHandler(F * handler) + : TappedEventHandler([=](auto&&... args) { return handler(args...); }) {} + template + TappedEventHandler::TappedEventHandler(O * object, M method) + : TappedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + TappedEventHandler::TappedEventHandler(com_ptr && object, M method) + : TappedEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + TappedEventHandler::TappedEventHandler(weak_ref && object, + LM && lambda_or_method) + : TappedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + TappedEventHandler::TappedEventHandler(std::shared_ptr && object, M method) + : TappedEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + TappedEventHandler::TappedEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : TappedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto TappedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Input::TappedRoutedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + struct KeyboardAcceleratorT + : implements, + impl::require, + impl::base { + using composable = KeyboardAccelerator; + + protected: + KeyboardAcceleratorT() { + impl::call_factory( + [&](IKeyboardAcceleratorFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ManipulationStartedRoutedEventArgsT + : implements, + impl::require, + impl::base { + using composable = ManipulationStartedRoutedEventArgs; + + protected: + ManipulationStartedRoutedEventArgsT() { + impl::call_factory( + [&](IManipulationStartedRoutedEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct StandardUICommandT + : implements, + impl::require, + impl::base { + using composable = StandardUICommand; + + protected: + StandardUICommandT() { + impl::call_factory( + [&](IStandardUICommandFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + StandardUICommandT( + winrt::Microsoft::UI::Xaml::Input::StandardUICommandKind const& kind) { + impl::call_factory( + [&](IStandardUICommandFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithKind(kind, *this, this->m_inner); + }); + } + }; + template + struct XamlUICommandT + : implements, + impl::require, + impl::base { + using composable = XamlUICommand; + + protected: + XamlUICommandT() { + impl::call_factory( + [&](IXamlUICommandFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyDisplayDismissedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IAccessKeyDisplayRequestedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::ICharacterReceivedRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IKeyboardAcceleratorInvokedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IManipulationCompletedRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IManipulationDeltaRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartedRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IManipulationStartingRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::IProcessKeyboardAcceleratorEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::AccessKeyDisplayDismissedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::AccessKeyDisplayRequestedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::KeyboardAcceleratorInvokedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::ManipulationStartingRoutedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Interop.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Interop.h new file mode 100644 index 00000000..0e066c8b --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Interop.h @@ -0,0 +1,1206 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Interop_H +#define WINRT_Microsoft_UI_Xaml_Interop_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.Interop.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableIterable::First() const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableIterable>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableIterable, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->First(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->First(&result)); + } + return winrt::Microsoft::UI::Xaml::Interop::IBindableIterator{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableIterator::Current() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableIterator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableIterator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Current(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Current(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableIterator::HasCurrent() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableIterator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableIterator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HasCurrent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HasCurrent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableIterator::MoveNext() const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableIterator>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableIterator, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MoveNext(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MoveNext(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableObservableVector:: + VectorChanged(winrt::Microsoft::UI::Xaml::Interop:: + BindableVectorChangedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableObservableVector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_VectorChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_VectorChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableObservableVector:: + VectorChanged(auto_revoke_t, + winrt::Microsoft::UI::Xaml::Interop:: + BindableVectorChangedEventHandler const& handler) const { + return impl::make_event_revoker( + this, VectorChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableObservableVector< + D>::VectorChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableObservableVector, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_VectorChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_VectorChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::GetAt( + uint32_t index) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAt(index, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAt(index, &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::Size() const { + uint32_t value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::GetView() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetView(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetView(&result)); + } + return winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::IndexOf( + winrt::Windows::Foundation::IInspectable const& value, + uint32_t& index) const { + bool returnValue{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->IndexOf(*(void**)(&value), &index, &returnValue)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->IndexOf(*(void**)(&value), &index, &returnValue)); + } + return returnValue; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::SetAt( + uint32_t index, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAt(index, *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAt(index, *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::InsertAt( + uint32_t index, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InsertAt(index, *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InsertAt(index, *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::RemoveAt( + uint32_t index) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAt(index)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAt(index)); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::Append( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Append(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Append(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::RemoveAtEnd() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveAtEnd()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveAtEnd()); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVector::Clear() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableVector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Clear()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Clear()); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVectorView::GetAt( + uint32_t index) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAt(index, &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetAt(index, &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVectorView::Size() const { + uint32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Interop_IBindableVectorView::IndexOf( + winrt::Windows::Foundation::IInspectable const& value, + uint32_t& index) const { + bool returnValue{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::IBindableVectorView, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->IndexOf(*(void**)(&value), &index, &returnValue)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->IndexOf(*(void**)(&value), &index, &returnValue)); + } + return returnValue; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChanged< + D>::CollectionChanged(winrt::Microsoft::UI::Xaml::Interop:: + NotifyCollectionChangedEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChanged, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CollectionChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CollectionChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChanged< + D>::CollectionChanged(auto_revoke_t, + winrt::Microsoft::UI::Xaml::Interop:: + NotifyCollectionChangedEventHandler const& + handler) const { + return impl::make_event_revoker( + this, CollectionChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChanged< + D>::CollectionChanged(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChanged, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CollectionChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_CollectionChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChangedEventArgs< + D>::Action() const { + winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedAction value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Action(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Action(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChangedEventArgs< + D>::NewItems() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewItems(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewItems(&value)); + } + return winrt::Microsoft::UI::Xaml::Interop::IBindableVector{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChangedEventArgs< + D>::OldItems() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldItems(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldItems(&value)); + } + return winrt::Microsoft::UI::Xaml::Interop::IBindableVector{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChangedEventArgs< + D>::NewStartingIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewStartingIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewStartingIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChangedEventArgs< + D>::OldStartingIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldStartingIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldStartingIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Interop_INotifyCollectionChangedEventArgsFactory< + D>:: + CreateInstanceWithAllParameters( + winrt::Microsoft::UI::Xaml::Interop:: + NotifyCollectionChangedAction const& action, + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const& newItems, + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const& oldItems, + int32_t newIndex, int32_t oldIndex, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Interop:: + INotifyCollectionChangedEventArgsFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithAllParameters( + static_cast(action), *(void**)(&newItems), + *(void**)(&oldItems), newIndex, oldIndex, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithAllParameters( + static_cast(action), *(void**)(&newItems), + *(void**)(&oldItems), newIndex, oldIndex, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventArgs{ + value, take_ownership_from_abi}; +} +template +struct delegate< + winrt::Microsoft::UI::Xaml::Interop::BindableVectorChangedEventHandler, H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* vector, void* e) noexcept final try { + (*this)( + *reinterpret_cast(&vector), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventHandler, H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall First(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().First()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_Current(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Current()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HasCurrent(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HasCurrent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall MoveNext(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().MoveNext()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Interop::IBindableObservableVector> { + int32_t __stdcall add_VectorChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().VectorChanged( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_VectorChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().VectorChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +template +struct produce + : produce_base { + int32_t __stdcall GetAt(uint32_t index, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAt(index)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetView(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IndexOf(void* value, uint32_t* index, + bool* returnValue) noexcept final try { + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().IndexOf( + *reinterpret_cast( + &value), + *index)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAt(uint32_t index, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAt( + index, + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InsertAt(uint32_t index, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InsertAt( + index, + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAt(uint32_t index) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAt(index); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Append(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Append( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveAtEnd() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveAtEnd(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Clear() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Clear(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall GetAt(uint32_t index, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAt(index)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall IndexOf(void* value, uint32_t* index, + bool* returnValue) noexcept final try { + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().IndexOf( + *reinterpret_cast( + &value), + *index)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChanged> { + int32_t __stdcall add_CollectionChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CollectionChanged( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CollectionChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CollectionChanged( + *reinterpret_cast(&token)); + return 0; + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs> + : produce_base { + int32_t __stdcall get_Action(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedAction>( + this->shim().Action()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewItems(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewItems()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OldItems(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldItems()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewStartingIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().NewStartingIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OldStartingIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OldStartingIndex()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithAllParameters( + int32_t action, void* newItems, void* oldItems, int32_t newIndex, + int32_t oldIndex, void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventArgs>( + this->shim().CreateInstanceWithAllParameters( + *reinterpret_cast( + &action), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const*>( + &newItems), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const*>( + &oldItems), + newIndex, oldIndex, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Interop { + inline NotifyCollectionChangedEventArgs::NotifyCollectionChangedEventArgs( + winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedAction const& + action, + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const& newItems, + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const& oldItems, + int32_t newIndex, int32_t oldIndex) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](INotifyCollectionChangedEventArgsFactory const& f) { + return f.CreateInstanceWithAllParameters( + action, newItems, oldItems, newIndex, oldIndex, baseInterface, + innerInterface); + }); + } + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler( + L handler) + : BindableVectorChangedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler(F * + handler) + : BindableVectorChangedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler( + O * object, M method) + : BindableVectorChangedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler( + com_ptr && object, M method) + : BindableVectorChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler( + weak_ref && object, LM && lambda_or_method) + : BindableVectorChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler( + std::shared_ptr && object, M method) + : BindableVectorChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + BindableVectorChangedEventHandler::BindableVectorChangedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : BindableVectorChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto BindableVectorChangedEventHandler::operator()( + winrt::Microsoft::UI::Xaml::Interop::IBindableObservableVector const& + vector, + winrt::Windows::Foundation::IInspectable const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&vector), *(void**)(&e))); + } + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + L handler) + : NotifyCollectionChangedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + F * handler) + : NotifyCollectionChangedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + O * object, M method) + : NotifyCollectionChangedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + com_ptr && object, M method) + : NotifyCollectionChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + weak_ref && object, LM && lambda_or_method) + : NotifyCollectionChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + std::shared_ptr && object, M method) + : NotifyCollectionChangedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NotifyCollectionChangedEventHandler::NotifyCollectionChangedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : NotifyCollectionChangedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto NotifyCollectionChangedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Interop:: + NotifyCollectionChangedEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + struct NotifyCollectionChangedEventArgsT + : implements, + impl::require, + impl::base { + using composable = NotifyCollectionChangedEventArgs; + + protected: + NotifyCollectionChangedEventArgsT( + winrt::Microsoft::UI::Xaml::Interop:: + NotifyCollectionChangedAction const& action, + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const& newItems, + winrt::Microsoft::UI::Xaml::Interop::IBindableVector const& oldItems, + int32_t newIndex, int32_t oldIndex) { + impl::call_factory( + [&](INotifyCollectionChangedEventArgsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithAllParameters(action, newItems, oldItems, + newIndex, oldIndex, *this, + this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Interop::INotifyCollectionChangedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Interop::NotifyCollectionChangedEventArgs> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Markup.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Markup.h new file mode 100644 index 00000000..a9a07afd --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Markup.h @@ -0,0 +1,3129 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Markup_H +#define WINRT_Microsoft_UI_Xaml_Markup_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Markup.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Storage.Streams.2.h" +#include "winrt/impl/Windows.UI.Xaml.Interop.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Markup_IComponentConnector::Connect( + int32_t connectionId, + winrt::Windows::Foundation::IInspectable const& target) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IComponentConnector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IComponentConnector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Connect(connectionId, *(void**)(&target))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Connect(connectionId, *(void**)(&target))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IComponentConnector< + D>::GetBindingConnector(int32_t connectionId, + winrt::Windows::Foundation::IInspectable const& + target) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IComponentConnector>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IComponentConnector, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBindingConnector( + connectionId, *(void**)(&target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBindingConnector( + connectionId, *(void**)(&target), &result)); + } + return winrt::Microsoft::UI::Xaml::Markup::IComponentConnector{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IDataTemplateComponent::Recycle() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Recycle()); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent>**)this; + check_hresult(_winrt_abi_type->Recycle()); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IDataTemplateComponent< + D>::ProcessBindings(winrt::Windows::Foundation::IInspectable const& item, + int32_t itemIndex, int32_t phase, + int32_t& nextPhase) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessBindings(*(void**)(&item), itemIndex, + phase, &nextPhase)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent>**)this; + check_hresult(_winrt_abi_type->ProcessBindings(*(void**)(&item), itemIndex, + phase, &nextPhase)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IMarkupExtensionFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionFactory>**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Markup::MarkupExtension{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IMarkupExtensionOverrides< + D>::ProvideValue() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProvideValue(&result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ProvideValue(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IMarkupExtensionOverrides< + D>::ProvideValue(winrt::Microsoft::UI::Xaml::IXamlServiceProvider const& + serviceProvider) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProvideValueWithIXamlServiceProvider( + *(void**)(&serviceProvider), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ProvideValueWithIXamlServiceProvider( + *(void**)(&serviceProvider), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IProvideValueTarget::TargetObject() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTarget>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTarget, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetObject(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetObject(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IProvideValueTarget::TargetProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTarget>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTarget, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetProperty(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IProvideValueTargetProperty::Name() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTargetProperty, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IProvideValueTargetProperty::Type() + const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTargetProperty, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Type(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Type(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IProvideValueTargetProperty< + D>::DeclaringType() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IProvideValueTargetProperty, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DeclaringType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DeclaringType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IRootObjectProvider::RootObject() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IRootObjectProvider>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IRootObjectProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RootObject(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RootObject(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IUriContext::BaseUri() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IUriContext>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IUriContext, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBinaryWriterStatics::Write( + param::vector const& + inputStreams, + param::vector const& + outputStreams, + winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProvider const& + xamlMetadataProvider) const { + winrt::Microsoft::UI::Xaml::Markup::XamlBinaryWriterErrorInformation result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBinaryWriterStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Write( + *(void**)(&inputStreams), *(void**)(&outputStreams), + *(void**)(&xamlMetadataProvider), put_abi(result))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Write( + *(void**)(&inputStreams), *(void**)(&outputStreams), + *(void**)(&xamlMetadataProvider), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindScopeDiagnostics::Disable( + int32_t lineNumber, int32_t columnNumber) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindScopeDiagnostics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Disable(lineNumber, columnNumber)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Disable(lineNumber, columnNumber)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics< + D>::DataTemplateComponentProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataTemplateComponentProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataTemplateComponentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + GetDataTemplateComponent( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDataTemplateComponent(*(void**)(&element), + &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDataTemplateComponent(*(void**)(&element), + &result)); + } + return winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetDataTemplateComponent( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetDataTemplateComponent(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetDataTemplateComponent(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics< + D>::SuspendRendering(winrt::Microsoft::UI::Xaml::UIElement const& target) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SuspendRendering(*(void**)(&target))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SuspendRendering(*(void**)(&target))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + ResumeRendering(winrt::Microsoft::UI::Xaml::UIElement const& target) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ResumeRendering(*(void**)(&target))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ResumeRendering(*(void**)(&target))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + ConvertValue(winrt::Windows::UI::Xaml::Interop::TypeName const& type, + winrt::Windows::Foundation::IInspectable const& value) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ConvertValue(impl::bind_in(type), + *(void**)(&value), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->ConvertValue(impl::bind_in(type), + *(void**)(&value), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromString( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromString( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromString( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromBoolean( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromBoolean( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromBoolean( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromChar16( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + char16_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromChar16( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromChar16( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromDateTime( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::DateTime const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromDateTime( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromDateTime( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromDouble( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromDouble( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromDouble( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromInt32( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromInt32( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromInt32( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromUInt32( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + uint32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromUInt32( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromUInt32( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromInt64( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + int64_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromInt64( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromInt64( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromUInt64( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + uint64_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromUInt64( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromUInt64( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromSingle( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromSingle( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromSingle( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromPoint( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromPoint( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromPoint( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromRect( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Rect const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromRect( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromRect( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromSize( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Size const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromSize( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromSize( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromTimeSpan( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromTimeSpan( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromTimeSpan( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromByte( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + uint8_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromByte( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromByte( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromUri( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromUri( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromUri( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlBindingHelperStatics:: + SetPropertyFromObject( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPropertyFromObject( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPropertyFromObject( + *(void**)(&dependencyObject), *(void**)(&propertyToSet), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMarkupHelperStatics::UnloadObject( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMarkupHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UnloadObject(*(void**)(&element))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->UnloadObject(*(void**)(&element))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::IsAttachable() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAttachable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAttachable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::IsDependencyProperty() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDependencyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDependencyProperty(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::IsReadOnly() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsReadOnly(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::Name() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::TargetType() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetType(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::Type() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Type(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Type(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::GetValue( + winrt::Windows::Foundation::IInspectable const& instance) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetValue(*(void**)(&instance), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetValue(*(void**)(&instance), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMember::SetValue( + winrt::Windows::Foundation::IInspectable const& instance, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMember>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMember, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetValue(*(void**)(&instance), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetValue(*(void**)(&instance), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMetadataProvider::GetXamlType( + winrt::Windows::UI::Xaml::Interop::TypeName const& type) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetXamlType(impl::bind_in(type), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetXamlType(impl::bind_in(type), &result)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMetadataProvider::GetXamlType( + param::hstring const& fullName) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetXamlTypeByFullName(*(void**)(&fullName), &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetXamlTypeByFullName(*(void**)(&fullName), &result)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlMetadataProvider< + D>::GetXmlnsDefinitions() const { + uint32_t result_impl_size{}; + struct struct_Microsoft_UI_Xaml_Markup_XmlnsDefinition* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetXmlnsDefinitions(&result_impl_size, &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetXmlnsDefinitions(&result_impl_size, &result)); + } + return com_array{ + result, result_impl_size, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlReaderStatics::Load( + param::hstring const& xaml) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IXamlReaderStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlReaderStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Load(*(void**)(&xaml), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Load(*(void**)(&xaml), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlReaderStatics< + D>::LoadWithInitialTemplateValidation(param::hstring const& xaml) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Markup::IXamlReaderStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlReaderStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadWithInitialTemplateValidation( + *(void**)(&xaml), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadWithInitialTemplateValidation( + *(void**)(&xaml), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::BaseType() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseType(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::ContentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlMember{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::FullName() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FullName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FullName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::IsArray() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsArray(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsArray(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::IsCollection() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCollection(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCollection(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::IsConstructible() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsConstructible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsConstructible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::IsDictionary() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDictionary(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDictionary(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::IsMarkupExtension() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsMarkupExtension(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsMarkupExtension(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::IsBindable() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBindable(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBindable(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::ItemType() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ItemType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ItemType(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::KeyType() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyType(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::BoxedType() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BoxedType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BoxedType(&value)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlType{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::UnderlyingType() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnderlyingType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnderlyingType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::ActivateInstance() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ActivateInstance(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ActivateInstance(&result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::CreateFromString( + param::hstring const& value) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateFromString(*(void**)(&value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateFromString(*(void**)(&value), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::GetMember( + param::hstring const& name) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetMember(*(void**)(&name), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetMember(*(void**)(&name), &result)); + } + return winrt::Microsoft::UI::Xaml::Markup::IXamlMember{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::AddToVector( + winrt::Windows::Foundation::IInspectable const& instance, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->AddToVector(*(void**)(&instance), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->AddToVector(*(void**)(&instance), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::AddToMap( + winrt::Windows::Foundation::IInspectable const& instance, + winrt::Windows::Foundation::IInspectable const& key, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddToMap( + *(void**)(&instance), *(void**)(&key), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddToMap( + *(void**)(&instance), *(void**)(&key), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlType::RunInitializer() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlType>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RunInitializer()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RunInitializer()); + } +} +template +auto consume_Microsoft_UI_Xaml_Markup_IXamlTypeResolver::Resolve( + param::hstring const& qualifiedTypeName) const { + winrt::Windows::UI::Xaml::Interop::TypeName result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlTypeResolver>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Markup::IXamlTypeResolver, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resolve(*(void**)(&qualifiedTypeName), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Resolve(*(void**)(&qualifiedTypeName), + put_abi(result))); + } + return result; +} +template +struct produce + : produce_base { + int32_t __stdcall Connect(int32_t connectionId, void* target) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().Connect( + connectionId, + *reinterpret_cast( + &target)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBindingConnector(int32_t connectionId, void* target, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetBindingConnector( + connectionId, + *reinterpret_cast< + winrt::Windows::Foundation::IInspectable const*>(&target))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall Recycle() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Recycle(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessBindings(void* item, int32_t itemIndex, + int32_t phase, + int32_t* nextPhase) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessBindings( + *reinterpret_cast( + &item), + itemIndex, phase, *nextPhase); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides> { + int32_t __stdcall ProvideValue(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ProvideValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProvideValueWithIXamlServiceProvider( + void* serviceProvider, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ProvideValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::IXamlServiceProvider const*>( + &serviceProvider))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_TargetObject(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetObject()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IProvideValueTargetProperty> { + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Type( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DeclaringType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DeclaringType()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_RootObject(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RootObject()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall get_BaseUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().BaseUri()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlBinaryWriterStatics> { + int32_t __stdcall Write( + void* inputStreams, void* outputStreams, void* xamlMetadataProvider, + struct struct_Microsoft_UI_Xaml_Markup_XamlBinaryWriterErrorInformation* + result) noexcept final try { + zero_abi< + winrt::Microsoft::UI::Xaml::Markup::XamlBinaryWriterErrorInformation>( + result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Markup::XamlBinaryWriterErrorInformation>( + this->shim().Write( + *reinterpret_cast const*>( + &inputStreams), + *reinterpret_cast const*>( + &outputStreams), + *reinterpret_cast( + &xamlMetadataProvider))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlBindScopeDiagnostics> { + int32_t __stdcall Disable(int32_t lineNumber, + int32_t columnNumber) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Disable(lineNumber, columnNumber); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlBindingHelperStatics> { + int32_t __stdcall get_DataTemplateComponentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DataTemplateComponentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDataTemplateComponent(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetDataTemplateComponent( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyObject const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetDataTemplateComponent(void* element, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetDataTemplateComponent( + *reinterpret_cast( + &element), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SuspendRendering(void* target) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SuspendRendering( + *reinterpret_cast( + &target)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ResumeRendering(void* target) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResumeRendering( + *reinterpret_cast( + &target)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ConvertValue( + struct struct_Windows_UI_Xaml_Interop_TypeName type, void* value, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Windows::Foundation::IInspectable>(this->shim().ConvertValue( + *reinterpret_cast( + &type), + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromString(void* dependencyObject, + void* propertyToSet, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromString( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromBoolean(void* dependencyObject, + void* propertyToSet, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromBoolean( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromChar16(void* dependencyObject, + void* propertyToSet, + char16_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromChar16( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromDateTime(void* dependencyObject, + void* propertyToSet, + int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromDateTime( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromDouble(void* dependencyObject, + void* propertyToSet, + double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromDouble( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromInt32(void* dependencyObject, + void* propertyToSet, + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromInt32( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromUInt32(void* dependencyObject, + void* propertyToSet, + uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromUInt32( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromInt64(void* dependencyObject, + void* propertyToSet, + int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromInt64( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromUInt64(void* dependencyObject, + void* propertyToSet, + uint64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromUInt64( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromSingle(void* dependencyObject, + void* propertyToSet, + float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromSingle( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromPoint( + void* dependencyObject, void* propertyToSet, + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromPoint( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromRect( + void* dependencyObject, void* propertyToSet, + winrt::Windows::Foundation::Rect value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromRect( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromSize( + void* dependencyObject, void* propertyToSet, + winrt::Windows::Foundation::Size value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromSize( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromTimeSpan(void* dependencyObject, + void* propertyToSet, + int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromTimeSpan( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromByte(void* dependencyObject, + void* propertyToSet, + uint8_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromByte( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromUri(void* dependencyObject, + void* propertyToSet, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromUri( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPropertyFromObject(void* dependencyObject, + void* propertyToSet, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPropertyFromObject( + *reinterpret_cast( + &dependencyObject), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &propertyToSet), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Markup::IXamlMarkupHelperStatics> { + int32_t __stdcall UnloadObject(void* element) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UnloadObject( + *reinterpret_cast( + &element)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_IsAttachable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAttachable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDependencyProperty(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDependencyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsReadOnly()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Type(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Type()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetValue(void* instance, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetValue( + *reinterpret_cast( + &instance))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetValue(void* instance, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetValue( + *reinterpret_cast( + &instance), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall GetXamlType( + struct struct_Windows_UI_Xaml_Interop_TypeName type, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Markup::IXamlType>(this->shim().GetXamlType( + *reinterpret_cast( + &type))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetXamlTypeByFullName(void* fullName, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetXamlType(*reinterpret_cast(&fullName))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetXmlnsDefinitions( + uint32_t* __resultSize, + struct struct_Microsoft_UI_Xaml_Markup_XmlnsDefinition** result) noexcept + final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + std::tie(*__resultSize, *result) = + detach_abi(this->shim().GetXmlnsDefinitions()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Load(void* xaml, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Load(*reinterpret_cast(&xaml))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LoadWithInitialTemplateValidation( + void* xaml, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().LoadWithInitialTemplateValidation( + *reinterpret_cast(&xaml))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall get_BaseType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BaseType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FullName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FullName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsArray(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsArray()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCollection(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCollection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsConstructible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsConstructible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDictionary(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDictionary()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsMarkupExtension(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsMarkupExtension()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsBindable(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBindable()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ItemType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ItemType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BoxedType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BoxedType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UnderlyingType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UnderlyingType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ActivateInstance(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ActivateInstance()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateFromString(void* value, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().CreateFromString( + *reinterpret_cast(&value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetMember(void* name, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetMember(*reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddToVector(void* instance, void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().AddToVector( + *reinterpret_cast( + &instance), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddToMap(void* instance, void* key, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddToMap( + *reinterpret_cast( + &instance), + *reinterpret_cast( + &key), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RunInitializer() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RunInitializer(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct produce + : produce_base { + int32_t __stdcall Resolve( + void* qualifiedTypeName, + struct struct_Windows_UI_Xaml_Interop_TypeName* result) noexcept final + try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Resolve( + *reinterpret_cast(&qualifiedTypeName))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides> { + auto ProvideValue() { + if (auto overridable = this->shim_overridable()) { + return overridable.ProvideValue(); + } + + return this->shim().ProvideValue(); + } + auto ProvideValue( + winrt::Microsoft::UI::Xaml::IXamlServiceProvider const& serviceProvider) { + if (auto overridable = this->shim_overridable()) { + return overridable.ProvideValue(serviceProvider); + } + + return this->shim().ProvideValue(serviceProvider); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Markup { + inline MarkupExtension::MarkupExtension() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMarkupExtensionFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline ProvideValueTargetProperty::ProvideValueTargetProperty() + : ProvideValueTargetProperty( + impl::call_factory_cast< + ProvideValueTargetProperty (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ProvideValueTargetProperty>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto XamlBinaryWriter::Write( + param::vector< + winrt::Windows::Storage::Streams::IRandomAccessStream> const& + inputStreams, + param::vector< + winrt::Windows::Storage::Streams::IRandomAccessStream> const& + outputStreams, + winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProvider const& + xamlMetadataProvider) { + return impl::call_factory( + [&](IXamlBinaryWriterStatics const& f) { + return f.Write(inputStreams, outputStreams, xamlMetadataProvider); + }); + } + inline auto XamlBindingHelper::DataTemplateComponentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlBindingHelperStatics const&), + XamlBindingHelper, IXamlBindingHelperStatics>( + [](IXamlBindingHelperStatics const& f) { + return f.DataTemplateComponentProperty(); + }); + } + inline auto XamlBindingHelper::GetDataTemplateComponent( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + return impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.GetDataTemplateComponent(element); + }); + } + inline auto XamlBindingHelper::SetDataTemplateComponent( + winrt::Microsoft::UI::Xaml::DependencyObject const& element, + winrt::Microsoft::UI::Xaml::Markup::IDataTemplateComponent const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetDataTemplateComponent(element, value); + }); + } + inline auto XamlBindingHelper::SuspendRendering( + winrt::Microsoft::UI::Xaml::UIElement const& target) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SuspendRendering(target); + }); + } + inline auto XamlBindingHelper::ResumeRendering( + winrt::Microsoft::UI::Xaml::UIElement const& target) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.ResumeRendering(target); + }); + } + inline auto XamlBindingHelper::ConvertValue( + winrt::Windows::UI::Xaml::Interop::TypeName const& type, + winrt::Windows::Foundation::IInspectable const& value) { + return impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.ConvertValue(type, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromString( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + param::hstring const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromString(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromBoolean( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + bool value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromBoolean(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromChar16( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + char16_t value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromChar16(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromDateTime( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::DateTime const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromDateTime(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromDouble( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + double value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromDouble(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromInt32( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + int32_t value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromInt32(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromUInt32( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + uint32_t value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromUInt32(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromInt64( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + int64_t value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromInt64(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromUInt64( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + uint64_t value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromUInt64(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromSingle( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + float value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromSingle(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromPoint( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Point const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromPoint(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromRect( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Rect const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromRect(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromSize( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Size const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromSize(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromTimeSpan( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::TimeSpan const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromTimeSpan(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromByte( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + uint8_t value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromByte(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromUri( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::Uri const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromUri(dependencyObject, propertyToSet, value); + }); + } + inline auto XamlBindingHelper::SetPropertyFromObject( + winrt::Windows::Foundation::IInspectable const& dependencyObject, + winrt::Microsoft::UI::Xaml::DependencyProperty const& propertyToSet, + winrt::Windows::Foundation::IInspectable const& value) { + impl::call_factory( + [&](IXamlBindingHelperStatics const& f) { + return f.SetPropertyFromObject(dependencyObject, propertyToSet, + value); + }); + } + inline auto XamlMarkupHelper::UnloadObject( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + impl::call_factory( + [&](IXamlMarkupHelperStatics const& f) { + return f.UnloadObject(element); + }); + } + inline auto XamlReader::Load(param::hstring const& xaml) { + return impl::call_factory( + [&](IXamlReaderStatics const& f) { return f.Load(xaml); }); + } + inline auto XamlReader::LoadWithInitialTemplateValidation( + param::hstring const& xaml) { + return impl::call_factory( + [&](IXamlReaderStatics const& f) { + return f.LoadWithInitialTemplateValidation(xaml); + }); + } + template + auto IMarkupExtensionOverridesT::ProvideValue() const { + return shim().template try_as().ProvideValue(); + } + template + auto IMarkupExtensionOverridesT::ProvideValue( + winrt::Microsoft::UI::Xaml::IXamlServiceProvider const& serviceProvider) + const { + return shim().template try_as().ProvideValue( + serviceProvider); + } + template + struct MarkupExtensionT + : implements< + D, winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides, + composing, Interfaces...>, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverridesT { + using composable = MarkupExtension; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Markup::IMarkupExtensionOverrides>; + + protected: + MarkupExtensionT() { + impl::call_factory( + [&](IMarkupExtensionFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std + +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Markup { + template + struct ComponentConnectorT : D { + using composable_base = typename D::composable_base; + + void InitializeComponent() { + if constexpr (m_has_connectable_base) { + m_dispatch_base = true; + composable_base::InitializeComponent(); + m_dispatch_base = false; + } + D::InitializeComponent(); + } + + void Connect(int32_t connectionId, + winrt::Windows::Foundation::IInspectable const& target) { + if constexpr (m_has_connectable_base) { + if (m_dispatch_base) { + composable_base::Connect(connectionId, target); + return; + } + } + D::Connect(connectionId, target); + } + + auto GetBindingConnector( + int32_t connectionId, + winrt::Windows::Foundation::IInspectable const& target) { + if constexpr (m_has_connectable_base) { + if (m_dispatch_base) { + return composable_base::GetBindingConnector(connectionId, target); + } + } + return D::GetBindingConnector(connectionId, target); + } + + private: + static constexpr bool m_has_connectable_base{ + impl::has_initializer::value && + impl::has_interface()}; + + bool m_dispatch_base{}; + }; +} +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Animation.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Animation.h new file mode 100644 index 00000000..8dfa5df3 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Animation.h @@ -0,0 +1,18266 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Media_Animation_H +#define WINRT_Microsoft_UI_Xaml_Media_Animation_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Media.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Animation.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.UI.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBackEase::Amplitude() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IBackEase>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBackEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Amplitude(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Amplitude(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBackEase::Amplitude( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IBackEase>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBackEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Amplitude(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Amplitude(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBackEaseStatics< + D>::AmplitudeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBackEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AmplitudeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AmplitudeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBasicConnectedAnimationConfigurationFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IBasicConnectedAnimationConfigurationFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IBasicConnectedAnimationConfigurationFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IBasicConnectedAnimationConfigurationFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation:: + BasicConnectedAnimationConfiguration{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBeginStoryboard::Storyboard() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBeginStoryboard, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Storyboard(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Storyboard(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBeginStoryboard::Storyboard( + winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBeginStoryboard, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Storyboard(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Storyboard(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBeginStoryboardStatics< + D>::StoryboardProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBeginStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StoryboardProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StoryboardProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBounceEase::Bounces() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounces(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounces(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBounceEase::Bounces( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Bounces(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Bounces(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBounceEase::Bounciness() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounciness(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounciness(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBounceEase::Bounciness( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Bounciness(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Bounciness(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBounceEaseStatics< + D>::BouncesProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BouncesProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BouncesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IBounceEaseStatics< + D>::BouncinessProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BouncinessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BouncinessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation::From() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_From(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_From(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation::From( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation::To() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_To(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_To(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation::To( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation::By() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_By(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_By(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation::By( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_By(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_By(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation< + D>::EasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation:: + EasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimation< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationStatics< + D>::FromProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationStatics< + D>::ToProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationStatics< + D>::ByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationStatics< + D>::EasingFunctionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationUsingKeyFrames< + D>::KeyFrames() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ColorKeyFrameCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationUsingKeyFrames< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationUsingKeyFrames< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorAnimationUsingKeyFramesStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrame::Value() + const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrame::Value( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrame::KeyTime() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrame::KeyTime( + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrameFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ColorKeyFrame{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrameStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IColorKeyFrameStatics< + D>::KeyTimeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ICommonNavigationTransitionInfo< + D>::IsStaggeringEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ICommonNavigationTransitionInfo< + D>::IsStaggeringEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsStaggeringEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsStaggeringEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ICommonNavigationTransitionInfoStatics< + D>::IsStaggeringEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + ICommonNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ICommonNavigationTransitionInfoStatics< + D>::IsStaggerElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + ICommonNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggerElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggerElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ICommonNavigationTransitionInfoStatics< + D>::GetIsStaggerElement(winrt::Microsoft::UI::Xaml::UIElement const& + element) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + ICommonNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsStaggerElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsStaggerElement(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ICommonNavigationTransitionInfoStatics< + D>::SetIsStaggerElement(winrt::Microsoft::UI::Xaml::UIElement const& + element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + ICommonNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsStaggerElement(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsStaggerElement(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation< + D>::IsScaleAnimationEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsScaleAnimationEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsScaleAnimationEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation< + D>::IsScaleAnimationEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsScaleAnimationEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsScaleAnimationEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation< + D>::Configuration() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Configuration(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Configuration(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation:: + ConnectedAnimationConfiguration{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation< + D>::Configuration(winrt::Microsoft::UI::Xaml::Media::Animation:: + ConnectedAnimationConfiguration const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Configuration(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Configuration(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation:: + Completed(winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation:: + Completed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, + Completed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation< + D>::Completed(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation::TryStart( + winrt::Microsoft::UI::Xaml::UIElement const& destination) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryStart(*(void**)(&destination), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryStart(*(void**)(&destination), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation::TryStart( + winrt::Microsoft::UI::Xaml::UIElement const& destination, + param::iterable const& + coordinatedElements) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryStartWithCoordinatedElements( + *(void**)(&destination), *(void**)(&coordinatedElements), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryStartWithCoordinatedElements( + *(void**)(&destination), *(void**)(&coordinatedElements), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation::Cancel() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Cancel()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Cancel()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimation:: + SetAnimationComponent( + winrt::Microsoft::UI::Xaml::Media::Animation:: + ConnectedAnimationComponent const& component, + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetAnimationComponent( + static_cast(component), *(void**)(&animation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetAnimationComponent( + static_cast(component), *(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationService< + D>::DefaultDuration() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultDuration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultDuration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationService:: + DefaultDuration(winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultDuration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultDuration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationService< + D>::DefaultEasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultEasingFunction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultEasingFunction(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionEasingFunction{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationService:: + DefaultEasingFunction( + winrt::Microsoft::UI::Composition::CompositionEasingFunction const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_DefaultEasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_DefaultEasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationService< + D>::PrepareToAnimate(param::hstring const& key, + winrt::Microsoft::UI::Xaml::UIElement const& source) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PrepareToAnimate( + *(void**)(&key), *(void**)(&source), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PrepareToAnimate( + *(void**)(&key), *(void**)(&source), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationService< + D>::GetAnimation(param::hstring const& key) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAnimation(*(void**)(&key), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAnimation(*(void**)(&key), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IConnectedAnimationServiceStatics< + D>::GetForCurrentView() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetForCurrentView(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetForCurrentView(&result)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation:: + ConnectedAnimationService{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContentThemeTransition< + D>::HorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IContentThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContentThemeTransition< + D>::HorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IContentThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContentThemeTransition< + D>::VerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IContentThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContentThemeTransition< + D>::VerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IContentThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContentThemeTransitionStatics< + D>::HorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContentThemeTransitionStatics< + D>::VerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfo< + D>::ExitElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitElement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitElement(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfo< + D>::ExitElement(winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExitElement(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExitElement(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::ExitElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::IsEntranceElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEntranceElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEntranceElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::GetIsEntranceElement(winrt::Microsoft::UI::Xaml::UIElement const& + element) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsEntranceElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsEntranceElement(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::SetIsEntranceElement(winrt::Microsoft::UI::Xaml::UIElement const& + element, + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsEntranceElement(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsEntranceElement(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::IsExitElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsExitElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsExitElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::GetIsExitElement(winrt::Microsoft::UI::Xaml::UIElement const& element) + const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsExitElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsExitElement(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::SetIsExitElement(winrt::Microsoft::UI::Xaml::UIElement const& element, + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsExitElement(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsExitElement(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::ExitElementContainerProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitElementContainerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitElementContainerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::GetExitElementContainer(winrt::Microsoft::UI::Xaml::Controls:: + ListViewBase const& element) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetExitElementContainer(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetExitElementContainer(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IContinuumNavigationTransitionInfoStatics< + D>::SetExitElementContainer(winrt::Microsoft::UI::Xaml::Controls:: + ListViewBase const& element, + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IContinuumNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetExitElementContainer(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetExitElementContainer(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDirectConnectedAnimationConfigurationFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IDirectConnectedAnimationConfigurationFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IDirectConnectedAnimationConfigurationFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IDirectConnectedAnimationConfigurationFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation:: + DirectConnectedAnimationConfiguration{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation::From() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_From(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_From(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation::From( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation::To() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_To(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_To(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation::To( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation::By() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_By(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_By(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation::By( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_By(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_By(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation< + D>::EasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation:: + EasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimation< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationStatics< + D>::FromProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationStatics< + D>::ToProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationStatics< + D>::ByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationStatics< + D>::EasingFunctionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationUsingKeyFrames< + D>::KeyFrames() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::DoubleKeyFrameCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationUsingKeyFrames< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationUsingKeyFrames< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleAnimationUsingKeyFramesStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IDoubleAnimationUsingKeyFramesStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrame::Value() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrame::Value( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrame::KeyTime() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrame::KeyTime( + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrameFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::DoubleKeyFrame{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrameStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDoubleKeyFrameStatics< + D>::KeyTimeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragItemThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragItemThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragItemThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragItemThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragItemThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimation< + D>::ToOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimation< + D>::ToOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ToOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ToOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimation< + D>::Direction() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Direction(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimation< + D>::Direction(winrt::Microsoft::UI::Xaml::Controls::Primitives:: + AnimationDirection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Direction(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Direction(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimationStatics< + D>::ToOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDragOverThemeAnimationStatics< + D>::DirectionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DirectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::EntranceTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::EntranceTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EntranceTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EntranceTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::EntranceTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::EntranceTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EntranceTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EntranceTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::ExitTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::ExitTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExitTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExitTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::ExitTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimation< + D>::ExitTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExitTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExitTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimationStatics< + D>::EntranceTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimationStatics< + D>::EntranceTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimationStatics< + D>::ExitTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillInThemeAnimationStatics< + D>::ExitTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::EntranceTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::EntranceTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EntranceTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EntranceTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::EntranceTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::EntranceTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EntranceTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EntranceTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::ExitTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::ExitTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExitTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExitTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::ExitTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimation< + D>::ExitTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExitTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExitTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimationStatics< + D>::EntranceTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimationStatics< + D>::EntranceTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EntranceTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EntranceTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimationStatics< + D>::ExitTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDrillOutThemeAnimationStatics< + D>::ExitTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExitTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExitTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDropTargetItemThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDropTargetItemThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IDropTargetItemThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingColorKeyFrame< + D>::EasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingColorKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingColorKeyFrame:: + EasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingColorKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingColorKeyFrameStatics< + D>::EasingFunctionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingDoubleKeyFrame< + D>::EasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingDoubleKeyFrame:: + EasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingDoubleKeyFrameStatics< + D>::EasingFunctionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingFunctionBase< + D>::EasingMode() const { + winrt::Microsoft::UI::Xaml::Media::Animation::EasingMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EasingMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EasingMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingFunctionBase:: + EasingMode(winrt::Microsoft::UI::Xaml::Media::Animation::EasingMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingFunctionBase::Ease( + double normalizedTime) const { + double result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Ease(normalizedTime, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Ease(normalizedTime, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingFunctionBaseStatics< + D>::EasingModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingPointKeyFrame< + D>::EasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingPointKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingPointKeyFrame:: + EasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingPointKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEasingPointKeyFrameStatics< + D>::EasingFunctionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEdgeUIThemeTransition::Edge() + const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::EdgeTransitionLocation + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEdgeUIThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Edge(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Edge(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEdgeUIThemeTransition::Edge( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + EdgeTransitionLocation const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEdgeUIThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Edge(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Edge(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEdgeUIThemeTransitionStatics< + D>::EdgeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EdgeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EdgeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IElasticEase::Oscillations() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Oscillations(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase>**)this; + check_hresult(_winrt_abi_type->get_Oscillations(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IElasticEase::Oscillations( + int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Oscillations(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase>**)this; + check_hresult(_winrt_abi_type->put_Oscillations(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IElasticEase::Springiness() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Springiness(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase>**)this; + check_hresult(_winrt_abi_type->get_Springiness(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IElasticEase::Springiness( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Springiness(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEase>**)this; + check_hresult(_winrt_abi_type->put_Springiness(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IElasticEaseStatics< + D>::OscillationsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OscillationsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OscillationsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IElasticEaseStatics< + D>::SpringinessProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpringinessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpringinessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceNavigationTransitionInfoStatics< + D>::IsTargetElementProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IEntranceNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTargetElementProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTargetElementProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceNavigationTransitionInfoStatics< + D>::GetIsTargetElement(winrt::Microsoft::UI::Xaml::UIElement const& element) + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IEntranceNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsTargetElement(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsTargetElement(*(void**)(&element), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceNavigationTransitionInfoStatics< + D>::SetIsTargetElement(winrt::Microsoft::UI::Xaml::UIElement const& element, + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IEntranceNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetIsTargetElement(*(void**)(&element), value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetIsTargetElement(*(void**)(&element), value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransition< + D>::FromHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransition< + D>::FromHorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransition< + D>::FromVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransition< + D>::FromVerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransition< + D>::IsStaggeringEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransition< + D>::IsStaggeringEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsStaggeringEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsStaggeringEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransitionStatics< + D>::FromHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransitionStatics< + D>::FromVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IEntranceThemeTransitionStatics< + D>::IsStaggeringEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IExponentialEase::Exponent() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IExponentialEase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Exponent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Exponent(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IExponentialEase::Exponent( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IExponentialEase, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Exponent(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Exponent(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IExponentialEaseStatics< + D>::ExponentProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IExponentialEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExponentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExponentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IFadeInThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IFadeInThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IFadeInThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IFadeOutThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IFadeOutThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IFadeOutThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IGravityConnectedAnimationConfiguration< + D>::IsShadowEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IGravityConnectedAnimationConfiguration>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsShadowEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsShadowEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IGravityConnectedAnimationConfiguration< + D>::IsShadowEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IGravityConnectedAnimationConfiguration>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsShadowEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsShadowEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IGravityConnectedAnimationConfigurationFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::Animation:: + IGravityConnectedAnimationConfigurationFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IGravityConnectedAnimationConfigurationFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IGravityConnectedAnimationConfigurationFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation:: + GravityConnectedAnimationConfiguration{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IKeySpline::ControlPoint1() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlPoint1(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlPoint1(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IKeySpline::ControlPoint1( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ControlPoint1(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_ControlPoint1(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IKeySpline::ControlPoint2() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ControlPoint2(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ControlPoint2(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IKeySpline::ControlPoint2( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IKeySpline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ControlPoint2(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_ControlPoint2(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IKeyTimeHelperStatics:: + FromTimeSpan(winrt::Windows::Foundation::TimeSpan const& timeSpan) const { + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IKeyTimeHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromTimeSpan(impl::bind_in(timeSpan), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromTimeSpan(impl::bind_in(timeSpan), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_INavigationThemeTransition< + D>::DefaultNavigationTransitionInfo() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultNavigationTransitionInfo(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultNavigationTransitionInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_INavigationThemeTransition:: + DefaultNavigationTransitionInfo( + winrt::Microsoft::UI::Xaml::Media::Animation:: + NavigationTransitionInfo const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DefaultNavigationTransitionInfo( + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DefaultNavigationTransitionInfo( + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_INavigationThemeTransitionStatics< + D>::DefaultNavigationTransitionInfoProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DefaultNavigationTransitionInfoProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DefaultNavigationTransitionInfoProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_INavigationTransitionInfoFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_INavigationTransitionInfoOverrides< + D>::GetNavigationStateCore() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetNavigationStateCore(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetNavigationStateCore(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_INavigationTransitionInfoOverrides< + D>::SetNavigationStateCore(param::hstring const& navigationState) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetNavigationStateCore(*(void**)(&navigationState))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetNavigationStateCore(*(void**)(&navigationState))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectAnimationUsingKeyFrames< + D>::KeyFrames() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ObjectKeyFrameCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectAnimationUsingKeyFrames< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectAnimationUsingKeyFrames< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectAnimationUsingKeyFramesStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + IObjectAnimationUsingKeyFramesStatics>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrame::Value() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrame::Value( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrame::KeyTime() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrame::KeyTime( + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrameFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::ObjectKeyFrame{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrameStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IObjectKeyFrameStatics< + D>::KeyTimeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPaneThemeTransition::Edge() + const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::EdgeTransitionLocation + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPaneThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Edge(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Edge(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPaneThemeTransition::Edge( + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + EdgeTransitionLocation const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPaneThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Edge(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Edge(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPaneThemeTransitionStatics< + D>::EdgeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EdgeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EdgeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation::From() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_From(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_From(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation::From( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation::To() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_To(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_To(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation::To( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation::By() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_By(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_By(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation::By( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Point> const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_By(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_By(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation< + D>::EasingFunction() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation:: + EasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimation< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationStatics< + D>::FromProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationStatics< + D>::ToProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationStatics< + D>::ByProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ByProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ByProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationStatics< + D>::EasingFunctionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EasingFunctionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationUsingKeyFrames< + D>::KeyFrames() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyFrames(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::PointKeyFrameCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationUsingKeyFrames< + D>::EnableDependentAnimation() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableDependentAnimation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationUsingKeyFrames< + D>::EnableDependentAnimation(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableDependentAnimation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointAnimationUsingKeyFramesStatics< + D>::EnableDependentAnimationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_EnableDependentAnimationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrame::Value() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrame::Value( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrame::KeyTime() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrame::KeyTime( + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrame, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTime(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrameFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::PointKeyFrame{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrameStatics< + D>::ValueProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ValueProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointKeyFrameStatics< + D>::KeyTimeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointerDownThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointerDownThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointerDownThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointerUpThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointerUpThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointerUpThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointerUpThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPointerUpThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimation< + D>::FromHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimation< + D>::FromHorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimation< + D>::FromVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimation< + D>::FromVerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimationStatics< + D>::FromHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopInThemeAnimationStatics< + D>::FromVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopOutThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopOutThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopOutThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopOutThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopupThemeTransition< + D>::FromHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopupThemeTransition< + D>::FromHorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopupThemeTransition< + D>::FromVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopupThemeTransition< + D>::FromVerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransition, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopupThemeTransitionStatics< + D>::FromHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPopupThemeTransitionStatics< + D>::FromVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPowerEase::Power() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPowerEase>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPowerEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Power(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Power(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPowerEase::Power( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPowerEase>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPowerEase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Power(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Power(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IPowerEaseStatics< + D>::PowerProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IPowerEaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PowerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PowerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepeatBehaviorHelperStatics< + D>::Forever() const { + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Forever(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Forever(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepeatBehaviorHelperStatics< + D>::FromCount(double count) const { + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromCount(count, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromCount(count, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepeatBehaviorHelperStatics:: + FromDuration(winrt::Windows::Foundation::TimeSpan const& duration) const { + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromDuration(impl::bind_in(duration), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromDuration(impl::bind_in(duration), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepeatBehaviorHelperStatics:: + GetHasCount( + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + target) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetHasCount(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetHasCount(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepeatBehaviorHelperStatics:: + GetHasDuration( + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + target) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetHasDuration(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetHasDuration(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepeatBehaviorHelperStatics:: + Equals(winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + target, + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + value) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimation< + D>::FromHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimation< + D>::FromHorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimation< + D>::FromVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimation< + D>::FromVerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimationStatics< + D>::FromHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeAnimationStatics< + D>::FromVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeTransition< + D>::IsStaggeringEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeTransition< + D>::IsStaggeringEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsStaggeringEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsStaggeringEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IRepositionThemeTransitionStatics< + D>::IsStaggeringEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsStaggeringEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISlideNavigationTransitionInfo< + D>::Effect() const { + winrt::Microsoft::UI::Xaml::Media::Animation::SlideNavigationTransitionEffect + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Effect(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Effect(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISlideNavigationTransitionInfo< + D>::Effect(winrt::Microsoft::UI::Xaml::Media::Animation:: + SlideNavigationTransitionEffect const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Effect(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Effect(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISlideNavigationTransitionInfoStatics< + D>::EffectProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Animation:: + ISlideNavigationTransitionInfoStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EffectProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EffectProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplineColorKeyFrame< + D>::KeySpline() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineColorKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeySpline(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeySpline(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplineColorKeyFrame< + D>::KeySpline(winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineColorKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeySpline(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeySpline(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplineColorKeyFrameStatics< + D>::KeySplineProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeySplineProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeySplineProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplineDoubleKeyFrame< + D>::KeySpline() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeySpline(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeySpline(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplineDoubleKeyFrame< + D>::KeySpline(winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineDoubleKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeySpline(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeySpline(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplineDoubleKeyFrameStatics< + D>::KeySplineProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeySplineProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeySplineProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplinePointKeyFrame< + D>::KeySpline() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplinePointKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeySpline(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeySpline(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplinePointKeyFrame< + D>::KeySpline(winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplinePointKeyFrame, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeySpline(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeySpline(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplinePointKeyFrameStatics< + D>::KeySplineProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeySplineProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeySplineProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OpenedTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OpenedTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenedTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenedTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OpenedTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OpenedTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenedTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenedTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ClosedTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ClosedTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ClosedTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ClosedTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OpenedLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OpenedLength(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenedLength(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenedLength(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ClosedLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ClosedLength(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedLength(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedLength(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OffsetFromCenter() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetFromCenter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetFromCenter(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::OffsetFromCenter(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OffsetFromCenter(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OffsetFromCenter(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTranslationDirection() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTranslationDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTranslationDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTranslationDirection(winrt::Microsoft::UI::Xaml::Controls:: + Primitives::AnimationDirection const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTranslationDirection( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTranslationDirection( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTranslationOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTranslationOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTranslationOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimation< + D>::ContentTranslationOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTranslationOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTranslationOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::OpenedTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::OpenedTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ClosedTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ClosedTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ContentTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ContentTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::OpenedLengthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedLengthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ClosedLengthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedLengthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::OffsetFromCenterProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetFromCenterProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetFromCenterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ContentTranslationDirectionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ContentTranslationDirectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ContentTranslationDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitCloseThemeAnimationStatics< + D>::ContentTranslationOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ContentTranslationOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ContentTranslationOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OpenedTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OpenedTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenedTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenedTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OpenedTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OpenedTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenedTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenedTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ClosedTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ClosedTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ClosedTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ClosedTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTarget(winrt::Microsoft::UI::Xaml::DependencyObject const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OpenedLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OpenedLength(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpenedLength(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpenedLength(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ClosedLength() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedLength(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedLength(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ClosedLength(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ClosedLength(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ClosedLength(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OffsetFromCenter() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetFromCenter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetFromCenter(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::OffsetFromCenter(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OffsetFromCenter(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OffsetFromCenter(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTranslationDirection() const { + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTranslationDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTranslationDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTranslationDirection(winrt::Microsoft::UI::Xaml::Controls:: + Primitives::AnimationDirection const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTranslationDirection( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTranslationDirection( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTranslationOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTranslationOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTranslationOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimation< + D>::ContentTranslationOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContentTranslationOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContentTranslationOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::OpenedTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::OpenedTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ClosedTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ClosedTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ContentTargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ContentTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::OpenedLengthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpenedLengthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpenedLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ClosedLengthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClosedLengthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClosedLengthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::OffsetFromCenterProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetFromCenterProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetFromCenterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ContentTranslationDirectionProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ContentTranslationDirectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ContentTranslationDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISplitOpenThemeAnimationStatics< + D>::ContentTranslationOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ContentTranslationOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ContentTranslationOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::Children() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TimelineCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::Seek( + winrt::Windows::Foundation::TimeSpan const& offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Seek(impl::bind_in(offset))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Seek(impl::bind_in(offset))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::Stop() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::Begin() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Begin()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Begin()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::Pause() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Pause()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Pause()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::Resume() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Resume()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Resume()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::GetCurrentState() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::ClockState result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetCurrentState(reinterpret_cast(&result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->GetCurrentState(reinterpret_cast(&result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::GetCurrentTime() + const { + winrt::Windows::Foundation::TimeSpan result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCurrentTime(put_abi(result))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GetCurrentTime(put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard< + D>::SeekAlignedToLastTick(winrt::Windows::Foundation::TimeSpan const& + offset) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SeekAlignedToLastTick(impl::bind_in(offset))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SeekAlignedToLastTick(impl::bind_in(offset))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboard::SkipToFill() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboard, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SkipToFill()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SkipToFill()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics< + D>::TargetPropertyProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetPropertyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetPropertyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics:: + GetTargetProperty( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetTargetProperty(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetTargetProperty(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics:: + SetTargetProperty( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element, + param::hstring const& path) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTargetProperty(*(void**)(&element), + *(void**)(&path))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTargetProperty(*(void**)(&element), + *(void**)(&path))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics:: + GetTargetName(winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& + element) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTargetName(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTargetName(*(void**)(&element), &result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics:: + SetTargetName( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element, + param::hstring const& name) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetTargetName(*(void**)(&element), *(void**)(&name))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetTargetName(*(void**)(&element), *(void**)(&name))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_IStoryboardStatics::SetTarget( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& timeline, + winrt::Microsoft::UI::Xaml::DependencyObject const& target) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetTarget(*(void**)(&timeline), *(void**)(&target))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetTarget(*(void**)(&timeline), *(void**)(&target))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimation< + D>::FromHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimation< + D>::FromHorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimation< + D>::FromVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimation< + D>::FromVerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FromVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimationStatics< + D>::FromHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeBackThemeAnimationStatics< + D>::FromVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FromVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimation< + D>::TargetName() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetName(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimation< + D>::TargetName(param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetName(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimation< + D>::ToHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimation< + D>::ToHorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ToHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ToHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimation< + D>::ToVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimation< + D>::ToVerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ToVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ToVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimationStatics< + D>::TargetNameProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetNameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimationStatics< + D>::ToHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ISwipeHintThemeAnimationStatics< + D>::ToVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ToVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ToVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::AutoReverse() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoReverse(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoReverse(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::AutoReverse( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoReverse(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoReverse(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::BeginTime() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BeginTime(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BeginTime(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::TimeSpan>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::BeginTime( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::TimeSpan> const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BeginTime(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BeginTime(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::Duration() const { + winrt::Microsoft::UI::Xaml::Duration value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::Duration( + winrt::Microsoft::UI::Xaml::Duration const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::SpeedRatio() + const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpeedRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpeedRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::SpeedRatio( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SpeedRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SpeedRatio(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::FillBehavior() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::FillBehavior value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FillBehavior(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FillBehavior(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::FillBehavior( + winrt::Microsoft::UI::Xaml::Media::Animation::FillBehavior const& value) + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FillBehavior(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FillBehavior(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::RepeatBehavior() + const { + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RepeatBehavior(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RepeatBehavior(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::RepeatBehavior( + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& value) + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RepeatBehavior(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RepeatBehavior(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::Completed( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Completed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::Completed( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, + Completed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimeline::Completed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimeline, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Completed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::Timeline{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::AllowDependentAnimations() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowDependentAnimations(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowDependentAnimations(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::AllowDependentAnimations(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowDependentAnimations(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowDependentAnimations(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::AutoReverseProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoReverseProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoReverseProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::BeginTimeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BeginTimeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BeginTimeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::DurationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DurationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DurationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::SpeedRatioProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpeedRatioProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpeedRatioProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::FillBehaviorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillBehaviorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillBehaviorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Animation_ITimelineStatics< + D>::RepeatBehaviorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RepeatBehaviorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RepeatBehaviorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IAddDeleteThemeTransition> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Amplitude(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Amplitude()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Amplitude(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Amplitude(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IBackEaseStatics> { + int32_t __stdcall get_AmplitudeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AmplitudeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IBeginStoryboard> { + int32_t __stdcall get_Storyboard(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Storyboard()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Storyboard(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Storyboard( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IBeginStoryboardStatics> + : produce_base { + int32_t __stdcall get_StoryboardProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StoryboardProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Bounces(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bounces()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Bounces(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Bounces(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Bounciness(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Bounciness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Bounciness(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Bounciness(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IBounceEaseStatics> { + int32_t __stdcall get_BouncesProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BouncesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BouncinessProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BouncinessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimation> { + int32_t __stdcall get_From(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().From()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_From(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().From(*reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_To(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().To()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_To(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().To(*reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_By(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().By()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_By(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().By(*reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().EasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics> + : produce_base { + int32_t __stdcall get_FromProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EasingFunctionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingFunctionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationUsingKeyFrames> + : produce_base { + int32_t __stdcall get_KeyFrames(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::ColorKeyFrameCollection>( + this->shim().KeyFrames()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrame> { + int32_t __stdcall get_Value( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime value) noexcept + final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTime( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::ColorKeyFrame>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrameStatics> { + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTimeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTimeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsStaggeringEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStaggeringEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsStaggeringEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsStaggeringEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsStaggeringEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsStaggeringEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsStaggerElementProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsStaggerElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsStaggerElement(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsStaggerElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsStaggerElement(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsStaggerElement( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimation> { + int32_t __stdcall get_IsScaleAnimationEnabled(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsScaleAnimationEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsScaleAnimationEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsScaleAnimationEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Configuration(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Configuration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Configuration(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Configuration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Completed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Completed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Completed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Completed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall TryStart(void* destination, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryStart( + *reinterpret_cast( + &destination))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryStartWithCoordinatedElements(void* destination, + void* coordinatedElements, + bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryStart( + *reinterpret_cast( + &destination), + *reinterpret_cast const*>( + &coordinatedElements))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Cancel() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetAnimationComponent(int32_t component, + void* animation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetAnimationComponent( + *reinterpret_cast(&component), + *reinterpret_cast(&animation)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimationService> + : produce_base { + int32_t __stdcall get_DefaultDuration(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DefaultDuration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DefaultDuration(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultDuration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DefaultEasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::CompositionEasingFunction>( + this->shim().DefaultEasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DefaultEasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultEasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PrepareToAnimate(void* key, void* source, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation>( + this->shim().PrepareToAnimate( + *reinterpret_cast(&key), + *reinterpret_cast( + &source))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnimation(void* key, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimation>( + this->shim().GetAnimation(*reinterpret_cast(&key))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetForCurrentView(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetForCurrentView()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IContentThemeTransition> + : produce_base { + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_HorizontalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ExitElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitElement(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitElement( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ExitElementProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEntranceElementProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsEntranceElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsEntranceElement(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsEntranceElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsEntranceElement(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsEntranceElement( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsExitElementProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsExitElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsExitElement(void* element, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsExitElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsExitElement(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsExitElement( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitElementContainerProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitElementContainerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetExitElementContainer(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetExitElementContainer( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetExitElementContainer(void* element, + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetExitElementContainer( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const*>( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDiscreteColorKeyFrame> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDiscreteDoubleKeyFrame> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDiscreteObjectKeyFrame> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDiscretePointKeyFrame> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimation> { + int32_t __stdcall get_From(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().From()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_From(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().From( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_To(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().To()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_To(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().To( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_By(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().By()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_By(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().By( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().EasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics> + : produce_base { + int32_t __stdcall get_FromProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EasingFunctionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingFunctionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeyFrames(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::DoubleKeyFrameCollection>( + this->shim().KeyFrames()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrame> { + int32_t __stdcall get_Value(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime value) noexcept + final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTime( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::DoubleKeyFrame>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameStatics> + : produce_base { + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTimeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTimeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDragItemThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ToOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ToOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ToOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Direction(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection>( + this->shim().Direction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Direction(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Direction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToOffsetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DirectionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DirectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation> + : produce_base { + int32_t __stdcall get_EntranceTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EntranceTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EntranceTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EntranceTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EntranceTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EntranceTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EntranceTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EntranceTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExitTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimationStatics> + : produce_base { + int32_t __stdcall get_EntranceTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EntranceTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EntranceTargetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EntranceTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation> + : produce_base { + int32_t __stdcall get_EntranceTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EntranceTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EntranceTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EntranceTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EntranceTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EntranceTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EntranceTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EntranceTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExitTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EntranceTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EntranceTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EntranceTargetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EntranceTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IDropTargetItemThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEasingColorKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingColorKeyFrame> { + int32_t __stdcall get_EasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().EasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingColorKeyFrameStatics> + : produce_base { + int32_t __stdcall get_EasingFunctionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingFunctionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEasingDoubleKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingDoubleKeyFrame> { + int32_t __stdcall get_EasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().EasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingDoubleKeyFrameStatics> + : produce_base { + int32_t __stdcall get_EasingFunctionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingFunctionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBase> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBase> { + int32_t __stdcall get_EasingMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().EasingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Ease(double normalizedTime, double* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Ease(normalizedTime)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBaseFactory> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBaseStatics> + : produce_base { + int32_t __stdcall get_EasingModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEasingPointKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingPointKeyFrame> { + int32_t __stdcall get_EasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().EasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingPointKeyFrameStatics> + : produce_base { + int32_t __stdcall get_EasingFunctionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingFunctionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEdgeUIThemeTransition> + : produce_base { + int32_t __stdcall get_Edge(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Edge()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Edge(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Edge( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IEdgeUIThemeTransitionStatics> + : produce_base { + int32_t __stdcall get_EdgeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EdgeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Oscillations(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Oscillations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Oscillations(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Oscillations(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Springiness(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Springiness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Springiness(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Springiness(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEaseStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IElasticEaseStatics> { + int32_t __stdcall get_OscillationsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OscillationsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpringinessProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SpringinessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsTargetElementProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsTargetElementProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsTargetElement(void* element, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsTargetElement( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetIsTargetElement(void* element, bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetIsTargetElement( + *reinterpret_cast( + &element), + value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition> + : produce_base { + int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromHorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsStaggeringEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStaggeringEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsStaggeringEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsStaggeringEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FromHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsStaggeringEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsStaggeringEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IExponentialEase> { + int32_t __stdcall get_Exponent(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Exponent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Exponent(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Exponent(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IExponentialEaseStatics> + : produce_base { + int32_t __stdcall get_ExponentProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExponentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IFadeInThemeAnimation> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeInThemeAnimation> { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeInThemeAnimationStatics> + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IFadeOutThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeOutThemeAnimationStatics> + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsShadowEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsShadowEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsShadowEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsShadowEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ControlPoint1( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ControlPoint1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ControlPoint1( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ControlPoint1( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ControlPoint2( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ControlPoint2()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ControlPoint2( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ControlPoint2( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IKeyTimeHelper> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IKeyTimeHelperStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IKeyTimeHelperStatics> { + int32_t __stdcall FromTimeSpan( + int64_t timeSpan, struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime* + result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().FromTimeSpan( + *reinterpret_cast( + &timeSpan))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ILinearColorKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ILinearColorKeyFrame> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ILinearDoubleKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ILinearDoubleKeyFrame> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ILinearPointKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ILinearPointKeyFrame> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::INavigationThemeTransition> + : produce_base { + int32_t __stdcall get_DefaultNavigationTransitionInfo( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo>( + this->shim().DefaultNavigationTransitionInfo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DefaultNavigationTransitionInfo( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DefaultNavigationTransitionInfo( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DefaultNavigationTransitionInfoProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DefaultNavigationTransitionInfoProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::INavigationTransitionInfo> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall GetNavigationStateCore(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetNavigationStateCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetNavigationStateCore(void* navigationState) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetNavigationStateCore( + *reinterpret_cast(&navigationState)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeyFrames(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::ObjectKeyFrameCollection>( + this->shim().KeyFrames()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrame> { + int32_t __stdcall get_Value(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime value) noexcept + final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTime( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::ObjectKeyFrame>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameStatics> + : produce_base { + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTimeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTimeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPaneThemeTransition> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPaneThemeTransition> { + int32_t __stdcall get_Edge(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Edge()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Edge(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Edge( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPaneThemeTransitionStatics> + : produce_base { + int32_t __stdcall get_EdgeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EdgeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimation> { + int32_t __stdcall get_From(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().From()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_From(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().From(*reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_To(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().To()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_To(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().To(*reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_By(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().By()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_By(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().By(*reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EasingFunction(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().EasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EasingFunction(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics> + : produce_base { + int32_t __stdcall get_FromProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ByProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ByProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EasingFunctionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EasingFunctionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationUsingKeyFrames> + : produce_base { + int32_t __stdcall get_KeyFrames(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::PointKeyFrameCollection>( + this->shim().KeyFrames()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EnableDependentAnimation(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableDependentAnimation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableDependentAnimation(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableDependentAnimation(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnableDependentAnimationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EnableDependentAnimationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrame> { + int32_t __stdcall get_Value( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTime( + struct struct_Microsoft_UI_Xaml_Media_Animation_KeyTime value) noexcept + final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTime( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeyTime const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::PointKeyFrame>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrameStatics> { + int32_t __stdcall get_ValueProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ValueProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTimeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTimeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointerDownThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointerUpThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimation> { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromHorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimationStatics> + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPopOutThemeAnimation> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPopOutThemeAnimation> { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPopOutThemeAnimationStatics> + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransition> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransition> { + int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromHorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransitionStatics> + : produce_base { + int32_t __stdcall get_FromHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Power(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Power()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Power(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Power(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPowerEaseStatics> { + int32_t __stdcall get_PowerProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PowerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IQuadraticEase> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IReorderThemeTransition> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IRepeatBehaviorHelper> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IRepeatBehaviorHelper> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::IRepeatBehaviorHelperStatics> + : produce_base { + int32_t __stdcall get_Forever( + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior* + value) noexcept final try { + zero_abi( + value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior>( + this->shim().Forever()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromCount( + double count, + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior* + result) noexcept final try { + zero_abi( + result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior>( + this->shim().FromCount(count)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromDuration( + int64_t duration, + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior* + result) noexcept final try { + zero_abi( + result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior>( + this->shim().FromDuration( + *reinterpret_cast( + &duration))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHasCount( + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHasCount( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHasDuration( + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHasDuration( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Equals( + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior target, + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior value, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Equals( + *reinterpret_cast(&target), + *reinterpret_cast(&value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromHorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeTransition> + : produce_base { + int32_t __stdcall get_IsStaggeringEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsStaggeringEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsStaggeringEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsStaggeringEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsStaggeringEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsStaggeringEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Effect(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Effect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Effect(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Effect( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EffectProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EffectProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISplineColorKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineColorKeyFrame> { + int32_t __stdcall get_KeySpline(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().KeySpline()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeySpline(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeySpline( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineColorKeyFrameStatics> + : produce_base { + int32_t __stdcall get_KeySplineProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeySplineProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISplineDoubleKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineDoubleKeyFrame> { + int32_t __stdcall get_KeySpline(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().KeySpline()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeySpline(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeySpline( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineDoubleKeyFrameStatics> + : produce_base { + int32_t __stdcall get_KeySplineProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeySplineProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISplinePointKeyFrame> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ISplinePointKeyFrame> { + int32_t __stdcall get_KeySpline(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().KeySpline()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeySpline(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeySpline( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::KeySpline const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Animation::ISplinePointKeyFrameStatics> + : produce_base { + int32_t __stdcall get_KeySplineProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeySplineProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation> + : produce_base { + int32_t __stdcall get_OpenedTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenedTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpenedTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpenedTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpenedTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpenedTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClosedTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClosedTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClosedTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedLength(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenedLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpenedLength(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpenedLength(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedLength(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClosedLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClosedLength(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedLength(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetFromCenter(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffsetFromCenter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OffsetFromCenter(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OffsetFromCenter(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationDirection( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection>( + this->shim().ContentTranslationDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTranslationDirection( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTranslationDirection( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTranslationOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTranslationOffset(double value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTranslationOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OpenedTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedLengthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedLengthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedLengthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedLengthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetFromCenterProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OffsetFromCenterProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationDirectionProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTranslationDirectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTranslationOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation> + : produce_base { + int32_t __stdcall get_OpenedTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenedTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpenedTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpenedTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpenedTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpenedTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClosedTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClosedTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClosedTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedLength(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OpenedLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpenedLength(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpenedLength(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedLength(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ClosedLength()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ClosedLength(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClosedLength(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetFromCenter(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffsetFromCenter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OffsetFromCenter(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OffsetFromCenter(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationDirection( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::AnimationDirection>( + this->shim().ContentTranslationDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTranslationDirection( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTranslationDirection( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ContentTranslationOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContentTranslationOffset(double value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ContentTranslationOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OpenedTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTargetNameProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpenedLengthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpenedLengthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClosedLengthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClosedLengthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetFromCenterProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OffsetFromCenterProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationDirectionProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTranslationDirectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentTranslationOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentTranslationOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Children(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::TimelineCollection>( + this->shim().Children()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Seek(int64_t offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Seek( + *reinterpret_cast( + &offset)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Stop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Begin() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Begin(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Pause() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Pause(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Resume() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resume(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCurrentState(int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().GetCurrentState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCurrentTime(int64_t* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCurrentTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SeekAlignedToLastTick(int64_t offset) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SeekAlignedToLastTick( + *reinterpret_cast( + &offset)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SkipToFill() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SkipToFill(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IStoryboardStatics> { + int32_t __stdcall get_TargetPropertyProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetPropertyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTargetProperty(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetTargetProperty( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTargetProperty(void* element, void* path) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTargetProperty( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const*>( + &element), + *reinterpret_cast(&path)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTargetName(void* element, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetTargetName( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTargetName(void* element, void* name) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTargetName( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const*>( + &element), + *reinterpret_cast(&name)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTarget(void* timeline, void* target) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTarget( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const*>( + &timeline), + *reinterpret_cast( + &target)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromHorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FromVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FromVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FromVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FromVerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FromVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation> + : produce_base { + int32_t __stdcall get_TargetName(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TargetName()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetName(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetName(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToHorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ToHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ToHorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ToHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ToVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ToVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ToVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TargetNameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetNameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToHorizontalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ToVerticalOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ToVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AutoReverse(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoReverse()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AutoReverse(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AutoReverse(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BeginTime(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().BeginTime()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BeginTime(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BeginTime( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Duration( + struct struct_Microsoft_UI_Xaml_Duration* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Duration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Duration( + struct struct_Microsoft_UI_Xaml_Duration value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Duration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpeedRatio(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SpeedRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpeedRatio(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpeedRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillBehavior(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().FillBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FillBehavior(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillBehavior( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::FillBehavior const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RepeatBehavior( + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior* + value) noexcept final try { + zero_abi( + value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior>( + this->shim().RepeatBehavior()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RepeatBehavior( + struct struct_Microsoft_UI_Xaml_Media_Animation_RepeatBehavior + value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RepeatBehavior( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Completed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Completed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Completed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Completed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ITimelineStatics> { + int32_t __stdcall get_AllowDependentAnimations(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowDependentAnimations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowDependentAnimations(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowDependentAnimations(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AutoReverseProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutoReverseProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BeginTimeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BeginTimeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DurationProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DurationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpeedRatioProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SpeedRatioProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FillBehaviorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillBehaviorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RepeatBehaviorProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RepeatBehaviorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Animation::ITransitionFactory> { +}; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, + winrt::Microsoft::UI::Xaml::Media::Animation:: + INavigationTransitionInfoOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Media::Animation:: + INavigationTransitionInfoOverrides> { + auto GetNavigationStateCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetNavigationStateCore(); + } + + return this->shim().GetNavigationStateCore(); + } + auto SetNavigationStateCore(hstring const& navigationState) { + if (auto overridable = this->shim_overridable()) { + return overridable.SetNavigationStateCore(navigationState); + } + + return this->shim().SetNavigationStateCore(navigationState); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media::Animation { + inline AddDeleteThemeTransition::AddDeleteThemeTransition() + : AddDeleteThemeTransition( + impl::call_factory_cast< + AddDeleteThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AddDeleteThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline BackEase::BackEase() + : BackEase(impl::call_factory_cast< + BackEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BackEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto BackEase::AmplitudeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBackEaseStatics const&), + BackEase, IBackEaseStatics>( + [](IBackEaseStatics const& f) { return f.AmplitudeProperty(); }); + } + inline BasicConnectedAnimationConfiguration:: + BasicConnectedAnimationConfiguration() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IBasicConnectedAnimationConfigurationFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline BeginStoryboard::BeginStoryboard() + : BeginStoryboard( + impl::call_factory_cast< + BeginStoryboard (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BeginStoryboard>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto BeginStoryboard::StoryboardProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBeginStoryboardStatics const&), + BeginStoryboard, IBeginStoryboardStatics>( + [](IBeginStoryboardStatics const& f) { + return f.StoryboardProperty(); + }); + } + inline BounceEase::BounceEase() + : BounceEase(impl::call_factory_cast< + BounceEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BounceEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto BounceEase::BouncesProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBounceEaseStatics const&), + BounceEase, IBounceEaseStatics>( + [](IBounceEaseStatics const& f) { return f.BouncesProperty(); }); + } + inline auto BounceEase::BouncinessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBounceEaseStatics const&), + BounceEase, IBounceEaseStatics>( + [](IBounceEaseStatics const& f) { return f.BouncinessProperty(); }); + } + inline CircleEase::CircleEase() + : CircleEase(impl::call_factory_cast< + CircleEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CircleEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ColorAnimation::ColorAnimation() + : ColorAnimation( + impl::call_factory_cast< + ColorAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ColorAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ColorAnimation::FromProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorAnimationStatics const&), + ColorAnimation, IColorAnimationStatics>( + [](IColorAnimationStatics const& f) { return f.FromProperty(); }); + } + inline auto ColorAnimation::ToProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorAnimationStatics const&), + ColorAnimation, IColorAnimationStatics>( + [](IColorAnimationStatics const& f) { return f.ToProperty(); }); + } + inline auto ColorAnimation::ByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorAnimationStatics const&), + ColorAnimation, IColorAnimationStatics>( + [](IColorAnimationStatics const& f) { return f.ByProperty(); }); + } + inline auto ColorAnimation::EasingFunctionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorAnimationStatics const&), + ColorAnimation, IColorAnimationStatics>( + [](IColorAnimationStatics const& f) { + return f.EasingFunctionProperty(); + }); + } + inline auto ColorAnimation::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorAnimationStatics const&), + ColorAnimation, IColorAnimationStatics>( + [](IColorAnimationStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline ColorAnimationUsingKeyFrames::ColorAnimationUsingKeyFrames() + : ColorAnimationUsingKeyFrames( + impl::call_factory_cast< + ColorAnimationUsingKeyFrames (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ColorAnimationUsingKeyFrames>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ColorAnimationUsingKeyFrames>(); + })) {} + inline auto ColorAnimationUsingKeyFrames::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorAnimationUsingKeyFramesStatics const&), + ColorAnimationUsingKeyFrames, IColorAnimationUsingKeyFramesStatics>( + [](IColorAnimationUsingKeyFramesStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline auto ColorKeyFrame::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorKeyFrameStatics const&), + ColorKeyFrame, IColorKeyFrameStatics>( + [](IColorKeyFrameStatics const& f) { return f.ValueProperty(); }); + } + inline auto ColorKeyFrame::KeyTimeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IColorKeyFrameStatics const&), + ColorKeyFrame, IColorKeyFrameStatics>( + [](IColorKeyFrameStatics const& f) { return f.KeyTimeProperty(); }); + } + inline ColorKeyFrameCollection::ColorKeyFrameCollection() + : ColorKeyFrameCollection( + impl::call_factory_cast< + ColorKeyFrameCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ColorKeyFrameCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline CommonNavigationTransitionInfo::CommonNavigationTransitionInfo() + : CommonNavigationTransitionInfo( + impl::call_factory_cast< + CommonNavigationTransitionInfo (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CommonNavigationTransitionInfo>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + CommonNavigationTransitionInfo>(); + })) {} + inline auto CommonNavigationTransitionInfo::IsStaggeringEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICommonNavigationTransitionInfoStatics const&), + CommonNavigationTransitionInfo, ICommonNavigationTransitionInfoStatics>( + [](ICommonNavigationTransitionInfoStatics const& f) { + return f.IsStaggeringEnabledProperty(); + }); + } + inline auto CommonNavigationTransitionInfo::IsStaggerElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICommonNavigationTransitionInfoStatics const&), + CommonNavigationTransitionInfo, ICommonNavigationTransitionInfoStatics>( + [](ICommonNavigationTransitionInfoStatics const& f) { + return f.IsStaggerElementProperty(); + }); + } + inline auto CommonNavigationTransitionInfo::GetIsStaggerElement( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](ICommonNavigationTransitionInfoStatics const& f) { + return f.GetIsStaggerElement(element); + }); + } + inline auto CommonNavigationTransitionInfo::SetIsStaggerElement( + winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) { + impl::call_factory( + [&](ICommonNavigationTransitionInfoStatics const& f) { + return f.SetIsStaggerElement(element, value); + }); + } + inline auto ConnectedAnimationService::GetForCurrentView() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Media::Animation:: + ConnectedAnimationService (*)( + IConnectedAnimationServiceStatics const&), + ConnectedAnimationService, IConnectedAnimationServiceStatics>( + [](IConnectedAnimationServiceStatics const& f) { + return f.GetForCurrentView(); + }); + } + inline ContentThemeTransition::ContentThemeTransition() + : ContentThemeTransition( + impl::call_factory_cast< + ContentThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ContentThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ContentThemeTransition::HorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IContentThemeTransitionStatics const&), + ContentThemeTransition, IContentThemeTransitionStatics>( + [](IContentThemeTransitionStatics const& f) { + return f.HorizontalOffsetProperty(); + }); + } + inline auto ContentThemeTransition::VerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IContentThemeTransitionStatics const&), + ContentThemeTransition, IContentThemeTransitionStatics>( + [](IContentThemeTransitionStatics const& f) { + return f.VerticalOffsetProperty(); + }); + } + inline ContinuumNavigationTransitionInfo::ContinuumNavigationTransitionInfo() + : ContinuumNavigationTransitionInfo( + impl::call_factory_cast< + ContinuumNavigationTransitionInfo (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ContinuumNavigationTransitionInfo>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ContinuumNavigationTransitionInfo>(); + })) {} + inline auto ContinuumNavigationTransitionInfo::ExitElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IContinuumNavigationTransitionInfoStatics const&), + ContinuumNavigationTransitionInfo, + IContinuumNavigationTransitionInfoStatics>( + [](IContinuumNavigationTransitionInfoStatics const& f) { + return f.ExitElementProperty(); + }); + } + inline auto ContinuumNavigationTransitionInfo::IsEntranceElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IContinuumNavigationTransitionInfoStatics const&), + ContinuumNavigationTransitionInfo, + IContinuumNavigationTransitionInfoStatics>( + [](IContinuumNavigationTransitionInfoStatics const& f) { + return f.IsEntranceElementProperty(); + }); + } + inline auto ContinuumNavigationTransitionInfo::GetIsEntranceElement( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IContinuumNavigationTransitionInfoStatics const& f) { + return f.GetIsEntranceElement(element); + }); + } + inline auto ContinuumNavigationTransitionInfo::SetIsEntranceElement( + winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) { + impl::call_factory( + [&](IContinuumNavigationTransitionInfoStatics const& f) { + return f.SetIsEntranceElement(element, value); + }); + } + inline auto ContinuumNavigationTransitionInfo::IsExitElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IContinuumNavigationTransitionInfoStatics const&), + ContinuumNavigationTransitionInfo, + IContinuumNavigationTransitionInfoStatics>( + [](IContinuumNavigationTransitionInfoStatics const& f) { + return f.IsExitElementProperty(); + }); + } + inline auto ContinuumNavigationTransitionInfo::GetIsExitElement( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IContinuumNavigationTransitionInfoStatics const& f) { + return f.GetIsExitElement(element); + }); + } + inline auto ContinuumNavigationTransitionInfo::SetIsExitElement( + winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) { + impl::call_factory( + [&](IContinuumNavigationTransitionInfoStatics const& f) { + return f.SetIsExitElement(element, value); + }); + } + inline auto + ContinuumNavigationTransitionInfo::ExitElementContainerProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IContinuumNavigationTransitionInfoStatics const&), + ContinuumNavigationTransitionInfo, + IContinuumNavigationTransitionInfoStatics>( + [](IContinuumNavigationTransitionInfoStatics const& f) { + return f.ExitElementContainerProperty(); + }); + } + inline auto ContinuumNavigationTransitionInfo::GetExitElementContainer( + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& element) { + return impl::call_factory( + [&](IContinuumNavigationTransitionInfoStatics const& f) { + return f.GetExitElementContainer(element); + }); + } + inline auto ContinuumNavigationTransitionInfo::SetExitElementContainer( + winrt::Microsoft::UI::Xaml::Controls::ListViewBase const& element, + bool value) { + impl::call_factory( + [&](IContinuumNavigationTransitionInfoStatics const& f) { + return f.SetExitElementContainer(element, value); + }); + } + inline CubicEase::CubicEase() + : CubicEase(impl::call_factory_cast< + CubicEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CubicEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline DirectConnectedAnimationConfiguration:: + DirectConnectedAnimationConfiguration() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDirectConnectedAnimationConfigurationFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline DiscreteColorKeyFrame::DiscreteColorKeyFrame() + : DiscreteColorKeyFrame( + impl::call_factory_cast< + DiscreteColorKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DiscreteColorKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline DiscreteDoubleKeyFrame::DiscreteDoubleKeyFrame() + : DiscreteDoubleKeyFrame( + impl::call_factory_cast< + DiscreteDoubleKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DiscreteDoubleKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline DiscreteObjectKeyFrame::DiscreteObjectKeyFrame() + : DiscreteObjectKeyFrame( + impl::call_factory_cast< + DiscreteObjectKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DiscreteObjectKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline DiscretePointKeyFrame::DiscretePointKeyFrame() + : DiscretePointKeyFrame( + impl::call_factory_cast< + DiscretePointKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DiscretePointKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline DoubleAnimation::DoubleAnimation() + : DoubleAnimation( + impl::call_factory_cast< + DoubleAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DoubleAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto DoubleAnimation::FromProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleAnimationStatics const&), + DoubleAnimation, IDoubleAnimationStatics>( + [](IDoubleAnimationStatics const& f) { return f.FromProperty(); }); + } + inline auto DoubleAnimation::ToProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleAnimationStatics const&), + DoubleAnimation, IDoubleAnimationStatics>( + [](IDoubleAnimationStatics const& f) { return f.ToProperty(); }); + } + inline auto DoubleAnimation::ByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleAnimationStatics const&), + DoubleAnimation, IDoubleAnimationStatics>( + [](IDoubleAnimationStatics const& f) { return f.ByProperty(); }); + } + inline auto DoubleAnimation::EasingFunctionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleAnimationStatics const&), + DoubleAnimation, IDoubleAnimationStatics>( + [](IDoubleAnimationStatics const& f) { + return f.EasingFunctionProperty(); + }); + } + inline auto DoubleAnimation::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleAnimationStatics const&), + DoubleAnimation, IDoubleAnimationStatics>( + [](IDoubleAnimationStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline DoubleAnimationUsingKeyFrames::DoubleAnimationUsingKeyFrames() + : DoubleAnimationUsingKeyFrames( + impl::call_factory_cast< + DoubleAnimationUsingKeyFrames (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DoubleAnimationUsingKeyFrames>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + DoubleAnimationUsingKeyFrames>(); + })) {} + inline auto + DoubleAnimationUsingKeyFrames::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleAnimationUsingKeyFramesStatics const&), + DoubleAnimationUsingKeyFrames, IDoubleAnimationUsingKeyFramesStatics>( + [](IDoubleAnimationUsingKeyFramesStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline auto DoubleKeyFrame::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleKeyFrameStatics const&), + DoubleKeyFrame, IDoubleKeyFrameStatics>( + [](IDoubleKeyFrameStatics const& f) { return f.ValueProperty(); }); + } + inline auto DoubleKeyFrame::KeyTimeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDoubleKeyFrameStatics const&), + DoubleKeyFrame, IDoubleKeyFrameStatics>( + [](IDoubleKeyFrameStatics const& f) { return f.KeyTimeProperty(); }); + } + inline DoubleKeyFrameCollection::DoubleKeyFrameCollection() + : DoubleKeyFrameCollection( + impl::call_factory_cast< + DoubleKeyFrameCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DoubleKeyFrameCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline DragItemThemeAnimation::DragItemThemeAnimation() + : DragItemThemeAnimation( + impl::call_factory_cast< + DragItemThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DragItemThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto DragItemThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDragItemThemeAnimationStatics const&), + DragItemThemeAnimation, IDragItemThemeAnimationStatics>( + [](IDragItemThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline DragOverThemeAnimation::DragOverThemeAnimation() + : DragOverThemeAnimation( + impl::call_factory_cast< + DragOverThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DragOverThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto DragOverThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDragOverThemeAnimationStatics const&), + DragOverThemeAnimation, IDragOverThemeAnimationStatics>( + [](IDragOverThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline auto DragOverThemeAnimation::ToOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDragOverThemeAnimationStatics const&), + DragOverThemeAnimation, IDragOverThemeAnimationStatics>( + [](IDragOverThemeAnimationStatics const& f) { + return f.ToOffsetProperty(); + }); + } + inline auto DragOverThemeAnimation::DirectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDragOverThemeAnimationStatics const&), + DragOverThemeAnimation, IDragOverThemeAnimationStatics>( + [](IDragOverThemeAnimationStatics const& f) { + return f.DirectionProperty(); + }); + } + inline DrillInNavigationTransitionInfo::DrillInNavigationTransitionInfo() + : DrillInNavigationTransitionInfo( + impl::call_factory_cast< + DrillInNavigationTransitionInfo (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DrillInNavigationTransitionInfo>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + DrillInNavigationTransitionInfo>(); + })) {} + inline DrillInThemeAnimation::DrillInThemeAnimation() + : DrillInThemeAnimation( + impl::call_factory_cast< + DrillInThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DrillInThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto DrillInThemeAnimation::EntranceTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillInThemeAnimationStatics const&), + DrillInThemeAnimation, IDrillInThemeAnimationStatics>( + [](IDrillInThemeAnimationStatics const& f) { + return f.EntranceTargetNameProperty(); + }); + } + inline auto DrillInThemeAnimation::EntranceTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillInThemeAnimationStatics const&), + DrillInThemeAnimation, IDrillInThemeAnimationStatics>( + [](IDrillInThemeAnimationStatics const& f) { + return f.EntranceTargetProperty(); + }); + } + inline auto DrillInThemeAnimation::ExitTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillInThemeAnimationStatics const&), + DrillInThemeAnimation, IDrillInThemeAnimationStatics>( + [](IDrillInThemeAnimationStatics const& f) { + return f.ExitTargetNameProperty(); + }); + } + inline auto DrillInThemeAnimation::ExitTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillInThemeAnimationStatics const&), + DrillInThemeAnimation, IDrillInThemeAnimationStatics>( + [](IDrillInThemeAnimationStatics const& f) { + return f.ExitTargetProperty(); + }); + } + inline DrillOutThemeAnimation::DrillOutThemeAnimation() + : DrillOutThemeAnimation( + impl::call_factory_cast< + DrillOutThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DrillOutThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto DrillOutThemeAnimation::EntranceTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillOutThemeAnimationStatics const&), + DrillOutThemeAnimation, IDrillOutThemeAnimationStatics>( + [](IDrillOutThemeAnimationStatics const& f) { + return f.EntranceTargetNameProperty(); + }); + } + inline auto DrillOutThemeAnimation::EntranceTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillOutThemeAnimationStatics const&), + DrillOutThemeAnimation, IDrillOutThemeAnimationStatics>( + [](IDrillOutThemeAnimationStatics const& f) { + return f.EntranceTargetProperty(); + }); + } + inline auto DrillOutThemeAnimation::ExitTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillOutThemeAnimationStatics const&), + DrillOutThemeAnimation, IDrillOutThemeAnimationStatics>( + [](IDrillOutThemeAnimationStatics const& f) { + return f.ExitTargetNameProperty(); + }); + } + inline auto DrillOutThemeAnimation::ExitTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDrillOutThemeAnimationStatics const&), + DrillOutThemeAnimation, IDrillOutThemeAnimationStatics>( + [](IDrillOutThemeAnimationStatics const& f) { + return f.ExitTargetProperty(); + }); + } + inline DropTargetItemThemeAnimation::DropTargetItemThemeAnimation() + : DropTargetItemThemeAnimation( + impl::call_factory_cast< + DropTargetItemThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DropTargetItemThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + DropTargetItemThemeAnimation>(); + })) {} + inline auto DropTargetItemThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDropTargetItemThemeAnimationStatics const&), + DropTargetItemThemeAnimation, IDropTargetItemThemeAnimationStatics>( + [](IDropTargetItemThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline EasingColorKeyFrame::EasingColorKeyFrame() + : EasingColorKeyFrame( + impl::call_factory_cast< + EasingColorKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EasingColorKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto EasingColorKeyFrame::EasingFunctionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEasingColorKeyFrameStatics const&), + EasingColorKeyFrame, IEasingColorKeyFrameStatics>( + [](IEasingColorKeyFrameStatics const& f) { + return f.EasingFunctionProperty(); + }); + } + inline EasingDoubleKeyFrame::EasingDoubleKeyFrame() + : EasingDoubleKeyFrame( + impl::call_factory_cast< + EasingDoubleKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EasingDoubleKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto EasingDoubleKeyFrame::EasingFunctionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEasingDoubleKeyFrameStatics const&), + EasingDoubleKeyFrame, IEasingDoubleKeyFrameStatics>( + [](IEasingDoubleKeyFrameStatics const& f) { + return f.EasingFunctionProperty(); + }); + } + inline auto EasingFunctionBase::EasingModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEasingFunctionBaseStatics const&), + EasingFunctionBase, IEasingFunctionBaseStatics>( + [](IEasingFunctionBaseStatics const& f) { + return f.EasingModeProperty(); + }); + } + inline EasingPointKeyFrame::EasingPointKeyFrame() + : EasingPointKeyFrame( + impl::call_factory_cast< + EasingPointKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EasingPointKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto EasingPointKeyFrame::EasingFunctionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEasingPointKeyFrameStatics const&), + EasingPointKeyFrame, IEasingPointKeyFrameStatics>( + [](IEasingPointKeyFrameStatics const& f) { + return f.EasingFunctionProperty(); + }); + } + inline EdgeUIThemeTransition::EdgeUIThemeTransition() + : EdgeUIThemeTransition( + impl::call_factory_cast< + EdgeUIThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EdgeUIThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto EdgeUIThemeTransition::EdgeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEdgeUIThemeTransitionStatics const&), + EdgeUIThemeTransition, IEdgeUIThemeTransitionStatics>( + [](IEdgeUIThemeTransitionStatics const& f) { + return f.EdgeProperty(); + }); + } + inline ElasticEase::ElasticEase() + : ElasticEase(impl::call_factory_cast< + ElasticEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ElasticEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ElasticEase::OscillationsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IElasticEaseStatics const&), + ElasticEase, IElasticEaseStatics>( + [](IElasticEaseStatics const& f) { return f.OscillationsProperty(); }); + } + inline auto ElasticEase::SpringinessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IElasticEaseStatics const&), + ElasticEase, IElasticEaseStatics>( + [](IElasticEaseStatics const& f) { return f.SpringinessProperty(); }); + } + inline EntranceNavigationTransitionInfo::EntranceNavigationTransitionInfo() + : EntranceNavigationTransitionInfo( + impl::call_factory_cast< + EntranceNavigationTransitionInfo (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EntranceNavigationTransitionInfo>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + EntranceNavigationTransitionInfo>(); + })) {} + inline auto EntranceNavigationTransitionInfo::IsTargetElementProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEntranceNavigationTransitionInfoStatics const&), + EntranceNavigationTransitionInfo, + IEntranceNavigationTransitionInfoStatics>( + [](IEntranceNavigationTransitionInfoStatics const& f) { + return f.IsTargetElementProperty(); + }); + } + inline auto EntranceNavigationTransitionInfo::GetIsTargetElement( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + return impl::call_factory( + [&](IEntranceNavigationTransitionInfoStatics const& f) { + return f.GetIsTargetElement(element); + }); + } + inline auto EntranceNavigationTransitionInfo::SetIsTargetElement( + winrt::Microsoft::UI::Xaml::UIElement const& element, bool value) { + impl::call_factory( + [&](IEntranceNavigationTransitionInfoStatics const& f) { + return f.SetIsTargetElement(element, value); + }); + } + inline EntranceThemeTransition::EntranceThemeTransition() + : EntranceThemeTransition( + impl::call_factory_cast< + EntranceThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EntranceThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto EntranceThemeTransition::FromHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEntranceThemeTransitionStatics const&), + EntranceThemeTransition, IEntranceThemeTransitionStatics>( + [](IEntranceThemeTransitionStatics const& f) { + return f.FromHorizontalOffsetProperty(); + }); + } + inline auto EntranceThemeTransition::FromVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEntranceThemeTransitionStatics const&), + EntranceThemeTransition, IEntranceThemeTransitionStatics>( + [](IEntranceThemeTransitionStatics const& f) { + return f.FromVerticalOffsetProperty(); + }); + } + inline auto EntranceThemeTransition::IsStaggeringEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEntranceThemeTransitionStatics const&), + EntranceThemeTransition, IEntranceThemeTransitionStatics>( + [](IEntranceThemeTransitionStatics const& f) { + return f.IsStaggeringEnabledProperty(); + }); + } + inline ExponentialEase::ExponentialEase() + : ExponentialEase( + impl::call_factory_cast< + ExponentialEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ExponentialEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ExponentialEase::ExponentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IExponentialEaseStatics const&), + ExponentialEase, IExponentialEaseStatics>( + [](IExponentialEaseStatics const& f) { return f.ExponentProperty(); }); + } + inline FadeInThemeAnimation::FadeInThemeAnimation() + : FadeInThemeAnimation( + impl::call_factory_cast< + FadeInThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + FadeInThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto FadeInThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFadeInThemeAnimationStatics const&), + FadeInThemeAnimation, IFadeInThemeAnimationStatics>( + [](IFadeInThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline FadeOutThemeAnimation::FadeOutThemeAnimation() + : FadeOutThemeAnimation( + impl::call_factory_cast< + FadeOutThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + FadeOutThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto FadeOutThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFadeOutThemeAnimationStatics const&), + FadeOutThemeAnimation, IFadeOutThemeAnimationStatics>( + [](IFadeOutThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline GravityConnectedAnimationConfiguration:: + GravityConnectedAnimationConfiguration() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IGravityConnectedAnimationConfigurationFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline KeySpline::KeySpline() + : KeySpline(impl::call_factory_cast< + KeySpline (*)( + winrt::Windows::Foundation::IActivationFactory const&), + KeySpline>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto KeyTimeHelper::FromTimeSpan( + winrt::Windows::Foundation::TimeSpan const& timeSpan) { + return impl::call_factory( + [&](IKeyTimeHelperStatics const& f) { + return f.FromTimeSpan(timeSpan); + }); + } + inline LinearColorKeyFrame::LinearColorKeyFrame() + : LinearColorKeyFrame( + impl::call_factory_cast< + LinearColorKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LinearColorKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline LinearDoubleKeyFrame::LinearDoubleKeyFrame() + : LinearDoubleKeyFrame( + impl::call_factory_cast< + LinearDoubleKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LinearDoubleKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline LinearPointKeyFrame::LinearPointKeyFrame() + : LinearPointKeyFrame( + impl::call_factory_cast< + LinearPointKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LinearPointKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline NavigationThemeTransition::NavigationThemeTransition() + : NavigationThemeTransition( + impl::call_factory_cast< + NavigationThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + NavigationThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto + NavigationThemeTransition::DefaultNavigationTransitionInfoProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + INavigationThemeTransitionStatics const&), + NavigationThemeTransition, INavigationThemeTransitionStatics>( + [](INavigationThemeTransitionStatics const& f) { + return f.DefaultNavigationTransitionInfoProperty(); + }); + } + inline ObjectAnimationUsingKeyFrames::ObjectAnimationUsingKeyFrames() + : ObjectAnimationUsingKeyFrames( + impl::call_factory_cast< + ObjectAnimationUsingKeyFrames (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ObjectAnimationUsingKeyFrames>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + ObjectAnimationUsingKeyFrames>(); + })) {} + inline auto + ObjectAnimationUsingKeyFrames::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IObjectAnimationUsingKeyFramesStatics const&), + ObjectAnimationUsingKeyFrames, IObjectAnimationUsingKeyFramesStatics>( + [](IObjectAnimationUsingKeyFramesStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline auto ObjectKeyFrame::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IObjectKeyFrameStatics const&), + ObjectKeyFrame, IObjectKeyFrameStatics>( + [](IObjectKeyFrameStatics const& f) { return f.ValueProperty(); }); + } + inline auto ObjectKeyFrame::KeyTimeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IObjectKeyFrameStatics const&), + ObjectKeyFrame, IObjectKeyFrameStatics>( + [](IObjectKeyFrameStatics const& f) { return f.KeyTimeProperty(); }); + } + inline ObjectKeyFrameCollection::ObjectKeyFrameCollection() + : ObjectKeyFrameCollection( + impl::call_factory_cast< + ObjectKeyFrameCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ObjectKeyFrameCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline PaneThemeTransition::PaneThemeTransition() + : PaneThemeTransition( + impl::call_factory_cast< + PaneThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PaneThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PaneThemeTransition::EdgeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPaneThemeTransitionStatics const&), + PaneThemeTransition, IPaneThemeTransitionStatics>( + [](IPaneThemeTransitionStatics const& f) { return f.EdgeProperty(); }); + } + inline PointAnimation::PointAnimation() + : PointAnimation( + impl::call_factory_cast< + PointAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PointAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PointAnimation::FromProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointAnimationStatics const&), + PointAnimation, IPointAnimationStatics>( + [](IPointAnimationStatics const& f) { return f.FromProperty(); }); + } + inline auto PointAnimation::ToProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointAnimationStatics const&), + PointAnimation, IPointAnimationStatics>( + [](IPointAnimationStatics const& f) { return f.ToProperty(); }); + } + inline auto PointAnimation::ByProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointAnimationStatics const&), + PointAnimation, IPointAnimationStatics>( + [](IPointAnimationStatics const& f) { return f.ByProperty(); }); + } + inline auto PointAnimation::EasingFunctionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointAnimationStatics const&), + PointAnimation, IPointAnimationStatics>( + [](IPointAnimationStatics const& f) { + return f.EasingFunctionProperty(); + }); + } + inline auto PointAnimation::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointAnimationStatics const&), + PointAnimation, IPointAnimationStatics>( + [](IPointAnimationStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline PointAnimationUsingKeyFrames::PointAnimationUsingKeyFrames() + : PointAnimationUsingKeyFrames( + impl::call_factory_cast< + PointAnimationUsingKeyFrames (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PointAnimationUsingKeyFrames>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + PointAnimationUsingKeyFrames>(); + })) {} + inline auto PointAnimationUsingKeyFrames::EnableDependentAnimationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointAnimationUsingKeyFramesStatics const&), + PointAnimationUsingKeyFrames, IPointAnimationUsingKeyFramesStatics>( + [](IPointAnimationUsingKeyFramesStatics const& f) { + return f.EnableDependentAnimationProperty(); + }); + } + inline auto PointKeyFrame::ValueProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointKeyFrameStatics const&), + PointKeyFrame, IPointKeyFrameStatics>( + [](IPointKeyFrameStatics const& f) { return f.ValueProperty(); }); + } + inline auto PointKeyFrame::KeyTimeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointKeyFrameStatics const&), + PointKeyFrame, IPointKeyFrameStatics>( + [](IPointKeyFrameStatics const& f) { return f.KeyTimeProperty(); }); + } + inline PointKeyFrameCollection::PointKeyFrameCollection() + : PointKeyFrameCollection( + impl::call_factory_cast< + PointKeyFrameCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PointKeyFrameCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PointerDownThemeAnimation::PointerDownThemeAnimation() + : PointerDownThemeAnimation( + impl::call_factory_cast< + PointerDownThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PointerDownThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto PointerDownThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointerDownThemeAnimationStatics const&), + PointerDownThemeAnimation, IPointerDownThemeAnimationStatics>( + [](IPointerDownThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline PointerUpThemeAnimation::PointerUpThemeAnimation() + : PointerUpThemeAnimation( + impl::call_factory_cast< + PointerUpThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PointerUpThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PointerUpThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPointerUpThemeAnimationStatics const&), + PointerUpThemeAnimation, IPointerUpThemeAnimationStatics>( + [](IPointerUpThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline PopInThemeAnimation::PopInThemeAnimation() + : PopInThemeAnimation( + impl::call_factory_cast< + PopInThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PopInThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PopInThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopInThemeAnimationStatics const&), + PopInThemeAnimation, IPopInThemeAnimationStatics>( + [](IPopInThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline auto PopInThemeAnimation::FromHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopInThemeAnimationStatics const&), + PopInThemeAnimation, IPopInThemeAnimationStatics>( + [](IPopInThemeAnimationStatics const& f) { + return f.FromHorizontalOffsetProperty(); + }); + } + inline auto PopInThemeAnimation::FromVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopInThemeAnimationStatics const&), + PopInThemeAnimation, IPopInThemeAnimationStatics>( + [](IPopInThemeAnimationStatics const& f) { + return f.FromVerticalOffsetProperty(); + }); + } + inline PopOutThemeAnimation::PopOutThemeAnimation() + : PopOutThemeAnimation( + impl::call_factory_cast< + PopOutThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PopOutThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PopOutThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopOutThemeAnimationStatics const&), + PopOutThemeAnimation, IPopOutThemeAnimationStatics>( + [](IPopOutThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline PopupThemeTransition::PopupThemeTransition() + : PopupThemeTransition( + impl::call_factory_cast< + PopupThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PopupThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PopupThemeTransition::FromHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupThemeTransitionStatics const&), + PopupThemeTransition, IPopupThemeTransitionStatics>( + [](IPopupThemeTransitionStatics const& f) { + return f.FromHorizontalOffsetProperty(); + }); + } + inline auto PopupThemeTransition::FromVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPopupThemeTransitionStatics const&), + PopupThemeTransition, IPopupThemeTransitionStatics>( + [](IPopupThemeTransitionStatics const& f) { + return f.FromVerticalOffsetProperty(); + }); + } + inline PowerEase::PowerEase() + : PowerEase(impl::call_factory_cast< + PowerEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PowerEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PowerEase::PowerProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPowerEaseStatics const&), + PowerEase, IPowerEaseStatics>( + [](IPowerEaseStatics const& f) { return f.PowerProperty(); }); + } + inline QuadraticEase::QuadraticEase() + : QuadraticEase( + impl::call_factory_cast< + QuadraticEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + QuadraticEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline QuarticEase::QuarticEase() + : QuarticEase(impl::call_factory_cast< + QuarticEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + QuarticEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline QuinticEase::QuinticEase() + : QuinticEase(impl::call_factory_cast< + QuinticEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + QuinticEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ReorderThemeTransition::ReorderThemeTransition() + : ReorderThemeTransition( + impl::call_factory_cast< + ReorderThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ReorderThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto RepeatBehaviorHelper::Forever() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior (*)( + IRepeatBehaviorHelperStatics const&), + RepeatBehaviorHelper, IRepeatBehaviorHelperStatics>( + [](IRepeatBehaviorHelperStatics const& f) { return f.Forever(); }); + } + inline auto RepeatBehaviorHelper::FromCount(double count) { + return impl::call_factory( + [&](IRepeatBehaviorHelperStatics const& f) { + return f.FromCount(count); + }); + } + inline auto RepeatBehaviorHelper::FromDuration( + winrt::Windows::Foundation::TimeSpan const& duration) { + return impl::call_factory( + [&](IRepeatBehaviorHelperStatics const& f) { + return f.FromDuration(duration); + }); + } + inline auto RepeatBehaviorHelper::GetHasCount( + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + target) { + return impl::call_factory( + [&](IRepeatBehaviorHelperStatics const& f) { + return f.GetHasCount(target); + }); + } + inline auto RepeatBehaviorHelper::GetHasDuration( + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + target) { + return impl::call_factory( + [&](IRepeatBehaviorHelperStatics const& f) { + return f.GetHasDuration(target); + }); + } + inline auto RepeatBehaviorHelper::Equals( + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + target, + winrt::Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& + value) { + return impl::call_factory( + [&](IRepeatBehaviorHelperStatics const& f) { + return f.Equals(target, value); + }); + } + inline RepositionThemeAnimation::RepositionThemeAnimation() + : RepositionThemeAnimation( + impl::call_factory_cast< + RepositionThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RepositionThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto RepositionThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRepositionThemeAnimationStatics const&), + RepositionThemeAnimation, IRepositionThemeAnimationStatics>( + [](IRepositionThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline auto RepositionThemeAnimation::FromHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRepositionThemeAnimationStatics const&), + RepositionThemeAnimation, IRepositionThemeAnimationStatics>( + [](IRepositionThemeAnimationStatics const& f) { + return f.FromHorizontalOffsetProperty(); + }); + } + inline auto RepositionThemeAnimation::FromVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRepositionThemeAnimationStatics const&), + RepositionThemeAnimation, IRepositionThemeAnimationStatics>( + [](IRepositionThemeAnimationStatics const& f) { + return f.FromVerticalOffsetProperty(); + }); + } + inline RepositionThemeTransition::RepositionThemeTransition() + : RepositionThemeTransition( + impl::call_factory_cast< + RepositionThemeTransition (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RepositionThemeTransition>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto RepositionThemeTransition::IsStaggeringEnabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRepositionThemeTransitionStatics const&), + RepositionThemeTransition, IRepositionThemeTransitionStatics>( + [](IRepositionThemeTransitionStatics const& f) { + return f.IsStaggeringEnabledProperty(); + }); + } + inline SineEase::SineEase() + : SineEase(impl::call_factory_cast< + SineEase (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SineEase>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline SlideNavigationTransitionInfo::SlideNavigationTransitionInfo() + : SlideNavigationTransitionInfo( + impl::call_factory_cast< + SlideNavigationTransitionInfo (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SlideNavigationTransitionInfo>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + SlideNavigationTransitionInfo>(); + })) {} + inline auto SlideNavigationTransitionInfo::EffectProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISlideNavigationTransitionInfoStatics const&), + SlideNavigationTransitionInfo, ISlideNavigationTransitionInfoStatics>( + [](ISlideNavigationTransitionInfoStatics const& f) { + return f.EffectProperty(); + }); + } + inline SplineColorKeyFrame::SplineColorKeyFrame() + : SplineColorKeyFrame( + impl::call_factory_cast< + SplineColorKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SplineColorKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SplineColorKeyFrame::KeySplineProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplineColorKeyFrameStatics const&), + SplineColorKeyFrame, ISplineColorKeyFrameStatics>( + [](ISplineColorKeyFrameStatics const& f) { + return f.KeySplineProperty(); + }); + } + inline SplineDoubleKeyFrame::SplineDoubleKeyFrame() + : SplineDoubleKeyFrame( + impl::call_factory_cast< + SplineDoubleKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SplineDoubleKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SplineDoubleKeyFrame::KeySplineProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplineDoubleKeyFrameStatics const&), + SplineDoubleKeyFrame, ISplineDoubleKeyFrameStatics>( + [](ISplineDoubleKeyFrameStatics const& f) { + return f.KeySplineProperty(); + }); + } + inline SplinePointKeyFrame::SplinePointKeyFrame() + : SplinePointKeyFrame( + impl::call_factory_cast< + SplinePointKeyFrame (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SplinePointKeyFrame>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SplinePointKeyFrame::KeySplineProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplinePointKeyFrameStatics const&), + SplinePointKeyFrame, ISplinePointKeyFrameStatics>( + [](ISplinePointKeyFrameStatics const& f) { + return f.KeySplineProperty(); + }); + } + inline SplitCloseThemeAnimation::SplitCloseThemeAnimation() + : SplitCloseThemeAnimation( + impl::call_factory_cast< + SplitCloseThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SplitCloseThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto SplitCloseThemeAnimation::OpenedTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.OpenedTargetNameProperty(); + }); + } + inline auto SplitCloseThemeAnimation::OpenedTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.OpenedTargetProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ClosedTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ClosedTargetNameProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ClosedTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ClosedTargetProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ContentTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ContentTargetNameProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ContentTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ContentTargetProperty(); + }); + } + inline auto SplitCloseThemeAnimation::OpenedLengthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.OpenedLengthProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ClosedLengthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ClosedLengthProperty(); + }); + } + inline auto SplitCloseThemeAnimation::OffsetFromCenterProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.OffsetFromCenterProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ContentTranslationDirectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ContentTranslationDirectionProperty(); + }); + } + inline auto SplitCloseThemeAnimation::ContentTranslationOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitCloseThemeAnimationStatics const&), + SplitCloseThemeAnimation, ISplitCloseThemeAnimationStatics>( + [](ISplitCloseThemeAnimationStatics const& f) { + return f.ContentTranslationOffsetProperty(); + }); + } + inline SplitOpenThemeAnimation::SplitOpenThemeAnimation() + : SplitOpenThemeAnimation( + impl::call_factory_cast< + SplitOpenThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SplitOpenThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SplitOpenThemeAnimation::OpenedTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.OpenedTargetNameProperty(); + }); + } + inline auto SplitOpenThemeAnimation::OpenedTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.OpenedTargetProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ClosedTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ClosedTargetNameProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ClosedTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ClosedTargetProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ContentTargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ContentTargetNameProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ContentTargetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ContentTargetProperty(); + }); + } + inline auto SplitOpenThemeAnimation::OpenedLengthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.OpenedLengthProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ClosedLengthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ClosedLengthProperty(); + }); + } + inline auto SplitOpenThemeAnimation::OffsetFromCenterProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.OffsetFromCenterProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ContentTranslationDirectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ContentTranslationDirectionProperty(); + }); + } + inline auto SplitOpenThemeAnimation::ContentTranslationOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISplitOpenThemeAnimationStatics const&), + SplitOpenThemeAnimation, ISplitOpenThemeAnimationStatics>( + [](ISplitOpenThemeAnimationStatics const& f) { + return f.ContentTranslationOffsetProperty(); + }); + } + inline Storyboard::Storyboard() + : Storyboard(impl::call_factory_cast< + Storyboard (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Storyboard>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Storyboard::TargetPropertyProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IStoryboardStatics const&), + Storyboard, IStoryboardStatics>( + [](IStoryboardStatics const& f) { return f.TargetPropertyProperty(); }); + } + inline auto Storyboard::GetTargetProperty( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element) { + return impl::call_factory( + [&](IStoryboardStatics const& f) { + return f.GetTargetProperty(element); + }); + } + inline auto Storyboard::SetTargetProperty( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element, + param::hstring const& path) { + impl::call_factory( + [&](IStoryboardStatics const& f) { + return f.SetTargetProperty(element, path); + }); + } + inline auto Storyboard::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IStoryboardStatics const&), + Storyboard, IStoryboardStatics>( + [](IStoryboardStatics const& f) { return f.TargetNameProperty(); }); + } + inline auto Storyboard::GetTargetName( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element) { + return impl::call_factory( + [&](IStoryboardStatics const& f) { return f.GetTargetName(element); }); + } + inline auto Storyboard::SetTargetName( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& element, + param::hstring const& name) { + impl::call_factory( + [&](IStoryboardStatics const& f) { + return f.SetTargetName(element, name); + }); + } + inline auto Storyboard::SetTarget( + winrt::Microsoft::UI::Xaml::Media::Animation::Timeline const& timeline, + winrt::Microsoft::UI::Xaml::DependencyObject const& target) { + impl::call_factory( + [&](IStoryboardStatics const& f) { + return f.SetTarget(timeline, target); + }); + } + inline SuppressNavigationTransitionInfo::SuppressNavigationTransitionInfo() + : SuppressNavigationTransitionInfo( + impl::call_factory_cast< + SuppressNavigationTransitionInfo (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SuppressNavigationTransitionInfo>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + SuppressNavigationTransitionInfo>(); + })) {} + inline SwipeBackThemeAnimation::SwipeBackThemeAnimation() + : SwipeBackThemeAnimation( + impl::call_factory_cast< + SwipeBackThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SwipeBackThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SwipeBackThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISwipeBackThemeAnimationStatics const&), + SwipeBackThemeAnimation, ISwipeBackThemeAnimationStatics>( + [](ISwipeBackThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline auto SwipeBackThemeAnimation::FromHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISwipeBackThemeAnimationStatics const&), + SwipeBackThemeAnimation, ISwipeBackThemeAnimationStatics>( + [](ISwipeBackThemeAnimationStatics const& f) { + return f.FromHorizontalOffsetProperty(); + }); + } + inline auto SwipeBackThemeAnimation::FromVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISwipeBackThemeAnimationStatics const&), + SwipeBackThemeAnimation, ISwipeBackThemeAnimationStatics>( + [](ISwipeBackThemeAnimationStatics const& f) { + return f.FromVerticalOffsetProperty(); + }); + } + inline SwipeHintThemeAnimation::SwipeHintThemeAnimation() + : SwipeHintThemeAnimation( + impl::call_factory_cast< + SwipeHintThemeAnimation (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SwipeHintThemeAnimation>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SwipeHintThemeAnimation::TargetNameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISwipeHintThemeAnimationStatics const&), + SwipeHintThemeAnimation, ISwipeHintThemeAnimationStatics>( + [](ISwipeHintThemeAnimationStatics const& f) { + return f.TargetNameProperty(); + }); + } + inline auto SwipeHintThemeAnimation::ToHorizontalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISwipeHintThemeAnimationStatics const&), + SwipeHintThemeAnimation, ISwipeHintThemeAnimationStatics>( + [](ISwipeHintThemeAnimationStatics const& f) { + return f.ToHorizontalOffsetProperty(); + }); + } + inline auto SwipeHintThemeAnimation::ToVerticalOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISwipeHintThemeAnimationStatics const&), + SwipeHintThemeAnimation, ISwipeHintThemeAnimationStatics>( + [](ISwipeHintThemeAnimationStatics const& f) { + return f.ToVerticalOffsetProperty(); + }); + } + inline auto Timeline::AllowDependentAnimations() { + return impl::call_factory_cast( + [](ITimelineStatics const& f) { return f.AllowDependentAnimations(); }); + } + inline auto Timeline::AllowDependentAnimations(bool value) { + impl::call_factory( + [&](ITimelineStatics const& f) { + return f.AllowDependentAnimations(value); + }); + } + inline auto Timeline::AutoReverseProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITimelineStatics const&), + Timeline, ITimelineStatics>( + [](ITimelineStatics const& f) { return f.AutoReverseProperty(); }); + } + inline auto Timeline::BeginTimeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITimelineStatics const&), + Timeline, ITimelineStatics>( + [](ITimelineStatics const& f) { return f.BeginTimeProperty(); }); + } + inline auto Timeline::DurationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITimelineStatics const&), + Timeline, ITimelineStatics>( + [](ITimelineStatics const& f) { return f.DurationProperty(); }); + } + inline auto Timeline::SpeedRatioProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITimelineStatics const&), + Timeline, ITimelineStatics>( + [](ITimelineStatics const& f) { return f.SpeedRatioProperty(); }); + } + inline auto Timeline::FillBehaviorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITimelineStatics const&), + Timeline, ITimelineStatics>( + [](ITimelineStatics const& f) { return f.FillBehaviorProperty(); }); + } + inline auto Timeline::RepeatBehaviorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITimelineStatics const&), + Timeline, ITimelineStatics>( + [](ITimelineStatics const& f) { return f.RepeatBehaviorProperty(); }); + } + inline TimelineCollection::TimelineCollection() + : TimelineCollection( + impl::call_factory_cast< + TimelineCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TimelineCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline TransitionCollection::TransitionCollection() + : TransitionCollection( + impl::call_factory_cast< + TransitionCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TransitionCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + template + auto INavigationTransitionInfoOverridesT::GetNavigationStateCore() const { + return shim() + .template try_as() + .GetNavigationStateCore(); + } + template + auto INavigationTransitionInfoOverridesT::SetNavigationStateCore( + param::hstring const& navigationState) const { + return shim() + .template try_as() + .SetNavigationStateCore(navigationState); + } + template + struct BasicConnectedAnimationConfigurationT + : implements, + impl::require, + impl::base { + using composable = BasicConnectedAnimationConfiguration; + + protected: + BasicConnectedAnimationConfigurationT() { + impl::call_factory( + [&](IBasicConnectedAnimationConfigurationFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ColorKeyFrameT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IColorKeyFrame, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base { + using composable = ColorKeyFrame; + + protected: + ColorKeyFrameT() { + impl::call_factory( + [&](IColorKeyFrameFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct DirectConnectedAnimationConfigurationT + : implements, + impl::require, + impl::base { + using composable = DirectConnectedAnimationConfiguration; + + protected: + DirectConnectedAnimationConfigurationT() { + impl::call_factory( + [&](IDirectConnectedAnimationConfigurationFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct DoubleKeyFrameT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrame, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base { + using composable = DoubleKeyFrame; + + protected: + DoubleKeyFrameT() { + impl::call_factory( + [&](IDoubleKeyFrameFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct GravityConnectedAnimationConfigurationT + : implements, + impl::require, + impl::base { + using composable = GravityConnectedAnimationConfiguration; + + protected: + GravityConnectedAnimationConfigurationT() { + impl::call_factory( + [&](IGravityConnectedAnimationConfigurationFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct NavigationTransitionInfoT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::Animation:: + INavigationTransitionInfoOverridesT { + using composable = NavigationTransitionInfo; + friend impl::produce; + + protected: + NavigationTransitionInfoT() { + impl::call_factory( + [&](INavigationTransitionInfoFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ObjectKeyFrameT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrame, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base { + using composable = ObjectKeyFrame; + + protected: + ObjectKeyFrameT() { + impl::call_factory( + [&](IObjectKeyFrameFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct PointKeyFrameT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::Animation::IPointKeyFrame, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base { + using composable = PointKeyFrame; + + protected: + PointKeyFrameT() { + impl::call_factory( + [&](IPointKeyFrameFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct TimelineT + : implements, + impl::require, + impl::base { + using composable = Timeline; + + protected: + TimelineT() { + impl::call_factory( + [&](ITimelineFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IAddDeleteThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IBeginStoryboardStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IColorAnimationUsingKeyFrames> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IConnectedAnimationService> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IContentThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDiscreteColorKeyFrame> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDiscreteDoubleKeyFrame> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDiscreteObjectKeyFrame> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDiscretePointKeyFrame> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDoubleKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragItemThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDragOverThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillInThemeAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDrillOutThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IDropTargetItemThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingColorKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingDoubleKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBaseFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingFunctionBaseStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEasingPointKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEdgeUIThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEdgeUIThemeTransitionStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IEntranceThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IExponentialEaseStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeInThemeAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeOutThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IFadeOutThemeAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::INavigationThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::INavigationTransitionInfo> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IObjectKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPaneThemeTransitionStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointAnimationUsingKeyFrames> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointerDownThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPointerUpThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopInThemeAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopOutThemeAnimationStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IPopupThemeTransitionStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IReorderThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepeatBehaviorHelperStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::IRepositionThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineColorKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplineDoubleKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplinePointKeyFrameStatics> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitCloseThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISplitOpenThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeBackThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ISwipeHintThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::AddDeleteThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ColorAnimationUsingKeyFrames> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ColorKeyFrameCollection> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ConnectedAnimationService> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ContentThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DiscreteDoubleKeyFrame> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DiscreteObjectKeyFrame> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DoubleAnimationUsingKeyFrames> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DoubleKeyFrameCollection> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DragItemThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DragOverThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DrillOutThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::DropTargetItemThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::EntranceThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ObjectAnimationUsingKeyFrames> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ObjectKeyFrameCollection> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::PointAnimationUsingKeyFrames> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::PointKeyFrameCollection> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::PointerDownThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::PointerUpThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::ReorderThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::RepositionThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::RepositionThemeTransition> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::SlideNavigationTransitionInfo> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::SplitCloseThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::SplitOpenThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::SwipeBackThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Animation::SwipeHintThemeAnimation> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Imaging.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Imaging.h new file mode 100644 index 00000000..ac25fc9f --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Imaging.h @@ -0,0 +1,3362 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Media_Imaging_H +#define WINRT_Microsoft_UI_Xaml_Media_Imaging_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Media.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Imaging.2.h" +#include "winrt/impl/Windows.ApplicationModel.Background.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Graphics.Imaging.2.h" +#include "winrt/impl/Windows.Storage.Streams.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::CreateOptions() + const { + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapCreateOptions value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CreateOptions( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CreateOptions( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::CreateOptions( + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapCreateOptions const& + value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CreateOptions(static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->put_CreateOptions(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::UriSource() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::UriSource( + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DecodePixelWidth() + const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodePixelWidth(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodePixelWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DecodePixelWidth( + int32_t value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DecodePixelWidth(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_DecodePixelWidth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage< + D>::DecodePixelHeight() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodePixelHeight(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodePixelHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DecodePixelHeight( + int32_t value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DecodePixelHeight(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_DecodePixelHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DecodePixelType() + const { + winrt::Microsoft::UI::Xaml::Media::Imaging::DecodePixelType value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodePixelType( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodePixelType( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DecodePixelType( + winrt::Microsoft::UI::Xaml::Media::Imaging::DecodePixelType const& value) + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_DecodePixelType(static_cast(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->put_DecodePixelType(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::IsAnimatedBitmap() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAnimatedBitmap(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAnimatedBitmap(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::IsPlaying() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlaying(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlaying(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::AutoPlay() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoPlay(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoPlay(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::AutoPlay( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AutoPlay(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_AutoPlay(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DownloadProgress( + winrt::Microsoft::UI::Xaml::Media::Imaging:: + DownloadProgressEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DownloadProgress(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->add_DownloadProgress(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DownloadProgress( + auto_revoke_t, winrt::Microsoft::UI::Xaml::Media::Imaging:: + DownloadProgressEventHandler const& handler) const { + return impl::make_event_revoker( + this, DownloadProgress(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::DownloadProgress( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DownloadProgress(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_DownloadProgress(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::ImageOpened( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ImageOpened(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_ImageOpened(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::ImageOpened( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, + ImageOpened(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::ImageOpened( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ImageOpened(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_ImageOpened(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::ImageFailed( + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ImageFailed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->add_ImageFailed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::ImageFailed( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const& handler) + const { + return impl::make_event_revoker(this, + ImageFailed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::ImageFailed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ImageFailed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + _winrt_abi_type->remove_ImageFailed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::Play() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Play()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Play()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImage::Stop() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImage, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageFactory< + D>::CreateInstanceWithUriSource(winrt::Windows::Foundation::Uri const& + uriSource) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithUriSource( + *(void**)(&uriSource), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithUriSource( + *(void**)(&uriSource), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::CreateOptionsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CreateOptionsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CreateOptionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::UriSourceProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::DecodePixelWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodePixelWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodePixelWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::DecodePixelHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodePixelHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodePixelHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::DecodePixelTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodePixelTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodePixelTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::IsAnimatedBitmapProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAnimatedBitmapProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAnimatedBitmapProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::IsPlayingProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsPlayingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsPlayingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapImageStatics< + D>::AutoPlayProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AutoPlayProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AutoPlayProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSource::PixelWidth() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelWidth(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSource::PixelHeight() + const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelHeight(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSource::SetSource( + winrt::Windows::Storage::Streams::IRandomAccessStream const& streamSource) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetSource(*(void**)(&streamSource))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->SetSource(*(void**)(&streamSource))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSource::SetSourceAsync( + winrt::Windows::Storage::Streams::IRandomAccessStream const& streamSource) + const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetSourceAsync(*(void**)(&streamSource), &operation)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult( + _winrt_abi_type->SetSourceAsync(*(void**)(&streamSource), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSourceFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSourceFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSourceStatics< + D>::PixelWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IBitmapSourceStatics< + D>::PixelHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IDownloadProgressEventArgs< + D>::Progress() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IDownloadProgressEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Progress(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Progress(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IDownloadProgressEventArgs< + D>::Progress(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IDownloadProgressEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Progress(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Progress(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmap< + D>::PixelWidth() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmap< + D>::PixelHeight() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmap:: + RenderAsync(winrt::Microsoft::UI::Xaml::UIElement const& element) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->RenderAsync(*(void**)(&element), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->RenderAsync(*(void**)(&element), &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmap< + D>::RenderAsync(winrt::Microsoft::UI::Xaml::UIElement const& element, + int32_t scaledWidth, int32_t scaledHeight) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RenderToSizeAsync( + *(void**)(&element), scaledWidth, scaledHeight, &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RenderToSizeAsync( + *(void**)(&element), scaledWidth, scaledHeight, &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmap< + D>::GetPixelsAsync() const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetPixelsAsync(&operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetPixelsAsync(&operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::Storage::Streams::IBuffer>{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmapStatics< + D>::PixelWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmapStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IRenderTargetBitmapStatics< + D>::PixelHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmapStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISoftwareBitmapSource< + D>::SetBitmapAsync(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& + softwareBitmap) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISoftwareBitmapSource, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetBitmapAsync(*(void**)(&softwareBitmap), + &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetBitmapAsync(*(void**)(&softwareBitmap), + &operation)); + } + return winrt::Windows::Foundation::IAsyncAction{operation, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISurfaceImageSourceFactory:: + CreateInstanceWithDimensions( + int32_t pixelWidth, int32_t pixelHeight, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSourceFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensions( + pixelWidth, pixelHeight, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensions( + pixelWidth, pixelHeight, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::SurfaceImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISurfaceImageSourceFactory:: + CreateInstanceWithDimensionsAndOpacity( + int32_t pixelWidth, int32_t pixelHeight, bool isOpaque, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSourceFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::SurfaceImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::UriSource() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult(_winrt_abi_type->get_UriSource(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::UriSource( + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult(_winrt_abi_type->put_UriSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource< + D>::RasterizePixelWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizePixelWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult(_winrt_abi_type->get_RasterizePixelWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource< + D>::RasterizePixelWidth(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RasterizePixelWidth(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult(_winrt_abi_type->put_RasterizePixelWidth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource< + D>::RasterizePixelHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizePixelHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult(_winrt_abi_type->get_RasterizePixelHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource< + D>::RasterizePixelHeight(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RasterizePixelHeight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult(_winrt_abi_type->put_RasterizePixelHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::Opened( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + SvgImageSourceOpenedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult( + _winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::Opened( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + SvgImageSourceOpenedEventArgs> const& handler) const { + return impl::make_event_revoker(this, Opened(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::Opened( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + _winrt_abi_type->remove_Opened(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::OpenFailed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + SvgImageSourceFailedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_OpenFailed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult( + _winrt_abi_type->add_OpenFailed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::OpenFailed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + SvgImageSourceFailedEventArgs> const& handler) const { + return impl::make_event_revoker(this, + OpenFailed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::OpenFailed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_OpenFailed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + _winrt_abi_type->remove_OpenFailed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSource::SetSourceAsync( + winrt::Windows::Storage::Streams::IRandomAccessStream const& streamSource) + const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetSourceAsync(*(void**)(&streamSource), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource>**)this; + check_hresult( + _winrt_abi_type->SetSourceAsync(*(void**)(&streamSource), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSourceLoadStatus>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSourceFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSourceFactory:: + CreateInstanceWithUriSource( + winrt::Windows::Foundation::Uri const& uriSource, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithUriSource( + *(void**)(&uriSource), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithUriSource( + *(void**)(&uriSource), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSourceFailedEventArgs< + D>::Status() const { + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSourceLoadStatus value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Status(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Status(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSourceStatics< + D>::UriSourceProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UriSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSourceStatics< + D>::RasterizePixelWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizePixelWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizePixelWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_ISvgImageSourceStatics< + D>::RasterizePixelHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizePixelHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizePixelHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IVirtualSurfaceImageSourceFactory< + D>::CreateInstanceWithDimensions(int32_t pixelWidth, + int32_t pixelHeight) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensions( + pixelWidth, pixelHeight, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensions( + pixelWidth, pixelHeight, &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::VirtualSurfaceImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IVirtualSurfaceImageSourceFactory< + D>::CreateInstanceWithDimensionsAndOpacity(int32_t pixelWidth, + int32_t pixelHeight, + bool isOpaque) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::VirtualSurfaceImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IWriteableBitmap::PixelBuffer() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmap, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PixelBuffer(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PixelBuffer(&value)); + } + return winrt::Windows::Storage::Streams::IBuffer{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IWriteableBitmap::Invalidate() + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmap, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Invalidate()); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->Invalidate()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IWriteableBitmapFactory< + D>::CreateInstanceWithDimensions(int32_t pixelWidth, + int32_t pixelHeight) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmapFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensions( + pixelWidth, pixelHeight, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDimensions( + pixelWidth, pixelHeight, &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging::WriteableBitmap{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IXamlRenderingBackgroundTaskFactory< + D>::CreateInstance(winrt::Windows::Foundation::IInspectable const& + baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Imaging:: + XamlRenderingBackgroundTask{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Imaging_IXamlRenderingBackgroundTaskOverrides< + D>::OnRun(winrt::Windows::ApplicationModel::Background:: + IBackgroundTaskInstance const& taskInstance) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::Imaging:: + IXamlRenderingBackgroundTaskOverrides>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnRun(*(void**)(&taskInstance))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnRun(*(void**)(&taskInstance))); + } +} +template +struct delegate< + winrt::Microsoft::UI::Xaml::Media::Imaging::DownloadProgressEventHandler, H> + final : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CreateOptions(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapCreateOptions>( + this->shim().CreateOptions()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CreateOptions(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CreateOptions( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UriSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().UriSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UriSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UriSource( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodePixelWidth(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DecodePixelWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DecodePixelWidth(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DecodePixelWidth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodePixelHeight(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().DecodePixelHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DecodePixelHeight(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DecodePixelHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodePixelType(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::DecodePixelType>( + this->shim().DecodePixelType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DecodePixelType(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DecodePixelType( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Imaging::DecodePixelType const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAnimatedBitmap(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAnimatedBitmap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPlaying(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsPlaying()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AutoPlay(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AutoPlay()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AutoPlay(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AutoPlay(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_DownloadProgress( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DownloadProgress( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DownloadProgress( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DownloadProgress( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ImageOpened(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ImageOpened( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ImageOpened( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ImageOpened( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ImageFailed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ImageFailed( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ImageFailed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ImageFailed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Play() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Play(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Stop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageFactory> { + int32_t __stdcall CreateInstanceWithUriSource(void* uriSource, + void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CreateInstanceWithUriSource( + *reinterpret_cast( + &uriSource))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapImageStatics> { + int32_t __stdcall get_CreateOptionsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateOptionsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UriSourceProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UriSourceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodePixelWidthProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DecodePixelWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodePixelHeightProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DecodePixelHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodePixelTypeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DecodePixelTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAnimatedBitmapProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsAnimatedBitmapProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsPlayingProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsPlayingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AutoPlayProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AutoPlayProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PixelWidth(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PixelWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelHeight(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PixelHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetSource(void* streamSource) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetSource( + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &streamSource)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetSourceAsync(void* streamSource, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().SetSourceAsync( + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &streamSource))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSourceFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapSource>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IBitmapSourceStatics> { + int32_t __stdcall get_PixelWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PixelWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PixelHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IDownloadProgressEventArgs> + : produce_base { + int32_t __stdcall get_Progress(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Progress()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Progress(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Progress(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmap> { + int32_t __stdcall get_PixelWidth(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PixelWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelHeight(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PixelHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RenderAsync(void* element, void** operation) noexcept final + try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().RenderAsync( + *reinterpret_cast( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RenderToSizeAsync(void* element, int32_t scaledWidth, + int32_t scaledHeight, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().RenderAsync( + *reinterpret_cast( + &element), + scaledWidth, scaledHeight)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPixelsAsync(void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().GetPixelsAsync()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmapStatics> + : produce_base { + int32_t __stdcall get_PixelWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PixelWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PixelHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PixelHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISoftwareBitmapSource> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::ISoftwareBitmapSource> { + int32_t __stdcall SetBitmapAsync(void* softwareBitmap, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from( + this->shim().SetBitmapAsync( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>( + &softwareBitmap))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSource> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSourceFactory> + : produce_base { + int32_t __stdcall CreateInstanceWithDimensions( + int32_t pixelWidth, int32_t pixelHeight, void* baseInterface, + void** innerInterface, void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::SurfaceImageSource>( + this->shim().CreateInstanceWithDimensions( + pixelWidth, pixelHeight, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithDimensionsAndOpacity( + int32_t pixelWidth, int32_t pixelHeight, bool isOpaque, + void* baseInterface, void** innerInterface, void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::SurfaceImageSource>( + this->shim().CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource> { + int32_t __stdcall get_UriSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().UriSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UriSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UriSource( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizePixelWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizePixelWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RasterizePixelWidth(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RasterizePixelWidth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizePixelHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizePixelHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RasterizePixelHeight(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RasterizePixelHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Opened(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Opened( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Opened(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_OpenFailed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().OpenFailed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_OpenFailed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().OpenFailed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall SetSourceAsync(void* streamSource, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().SetSourceAsync( + *reinterpret_cast< + winrt::Windows::Storage::Streams::IRandomAccessStream const*>( + &streamSource))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithUriSource(void* uriSource, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSource>( + this->shim().CreateInstanceWithUriSource( + *reinterpret_cast( + &uriSource), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFailedEventArgs> + : produce_base { + int32_t __stdcall get_Status(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSourceLoadStatus>( + this->shim().Status()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceOpenedEventArgs> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceStatics> { + int32_t __stdcall get_UriSourceProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UriSourceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizePixelWidthProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RasterizePixelWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizePixelHeightProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RasterizePixelHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IVirtualSurfaceImageSource> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithDimensions(int32_t pixelWidth, + int32_t pixelHeight, + void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::VirtualSurfaceImageSource>( + this->shim().CreateInstanceWithDimensions(pixelWidth, pixelHeight)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithDimensionsAndOpacity( + int32_t pixelWidth, int32_t pixelHeight, bool isOpaque, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::VirtualSurfaceImageSource>( + this->shim().CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmap> { + int32_t __stdcall get_PixelBuffer(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PixelBuffer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Invalidate() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Invalidate(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmapFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Imaging::IWriteableBitmapFactory> { + int32_t __stdcall CreateInstanceWithDimensions(int32_t pixelWidth, + int32_t pixelHeight, + void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Imaging::WriteableBitmap>( + this->shim().CreateInstanceWithDimensions(pixelWidth, pixelHeight)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::IXamlRenderingBackgroundTask> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall OnRun(void* taskInstance) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnRun( + *reinterpret_cast(&taskInstance)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES + produce_dispatch_to_overridable + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + IXamlRenderingBackgroundTaskOverrides> { + auto OnRun(winrt::Windows::ApplicationModel::Background:: + IBackgroundTaskInstance const& taskInstance) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnRun(taskInstance); + } + + return this->shim().OnRun(taskInstance); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media::Imaging { + constexpr auto operator|(BitmapCreateOptions const left, + BitmapCreateOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) | + impl::to_underlying_type(right)); + } + constexpr auto operator|=(BitmapCreateOptions& left, + BitmapCreateOptions const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(BitmapCreateOptions const left, + BitmapCreateOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) & + impl::to_underlying_type(right)); + } + constexpr auto operator&=(BitmapCreateOptions& left, + BitmapCreateOptions const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(BitmapCreateOptions const value) noexcept { + return static_cast(~impl::to_underlying_type(value)); + } + constexpr auto operator^(BitmapCreateOptions const left, + BitmapCreateOptions const right) noexcept { + return static_cast(impl::to_underlying_type(left) ^ + impl::to_underlying_type(right)); + } + constexpr auto operator^=(BitmapCreateOptions& left, + BitmapCreateOptions const right) noexcept { + left = left ^ right; + return left; + } + inline BitmapImage::BitmapImage() + : BitmapImage(impl::call_factory_cast< + BitmapImage (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BitmapImage>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline BitmapImage::BitmapImage( + winrt::Windows::Foundation::Uri const& uriSource) + : BitmapImage(impl::call_factory( + [&](IBitmapImageFactory const& f) { + return f.CreateInstanceWithUriSource(uriSource); + })) {} + inline auto BitmapImage::CreateOptionsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>( + [](IBitmapImageStatics const& f) { return f.CreateOptionsProperty(); }); + } + inline auto BitmapImage::UriSourceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>( + [](IBitmapImageStatics const& f) { return f.UriSourceProperty(); }); + } + inline auto BitmapImage::DecodePixelWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>([](IBitmapImageStatics const& f) { + return f.DecodePixelWidthProperty(); + }); + } + inline auto BitmapImage::DecodePixelHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>([](IBitmapImageStatics const& f) { + return f.DecodePixelHeightProperty(); + }); + } + inline auto BitmapImage::DecodePixelTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>([](IBitmapImageStatics const& f) { + return f.DecodePixelTypeProperty(); + }); + } + inline auto BitmapImage::IsAnimatedBitmapProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>([](IBitmapImageStatics const& f) { + return f.IsAnimatedBitmapProperty(); + }); + } + inline auto BitmapImage::IsPlayingProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>( + [](IBitmapImageStatics const& f) { return f.IsPlayingProperty(); }); + } + inline auto BitmapImage::AutoPlayProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapImageStatics const&), + BitmapImage, IBitmapImageStatics>( + [](IBitmapImageStatics const& f) { return f.AutoPlayProperty(); }); + } + inline auto BitmapSource::PixelWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapSourceStatics const&), + BitmapSource, IBitmapSourceStatics>( + [](IBitmapSourceStatics const& f) { return f.PixelWidthProperty(); }); + } + inline auto BitmapSource::PixelHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBitmapSourceStatics const&), + BitmapSource, IBitmapSourceStatics>( + [](IBitmapSourceStatics const& f) { return f.PixelHeightProperty(); }); + } + inline RenderTargetBitmap::RenderTargetBitmap() + : RenderTargetBitmap( + impl::call_factory_cast< + RenderTargetBitmap (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RenderTargetBitmap>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto RenderTargetBitmap::PixelWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRenderTargetBitmapStatics const&), + RenderTargetBitmap, IRenderTargetBitmapStatics>( + [](IRenderTargetBitmapStatics const& f) { + return f.PixelWidthProperty(); + }); + } + inline auto RenderTargetBitmap::PixelHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRenderTargetBitmapStatics const&), + RenderTargetBitmap, IRenderTargetBitmapStatics>( + [](IRenderTargetBitmapStatics const& f) { + return f.PixelHeightProperty(); + }); + } + inline SoftwareBitmapSource::SoftwareBitmapSource() + : SoftwareBitmapSource( + impl::call_factory_cast< + SoftwareBitmapSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SoftwareBitmapSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline SurfaceImageSource::SurfaceImageSource(int32_t pixelWidth, + int32_t pixelHeight) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISurfaceImageSourceFactory const& f) { + return f.CreateInstanceWithDimensions(pixelWidth, pixelHeight, + baseInterface, innerInterface); + }); + } + inline SurfaceImageSource::SurfaceImageSource( + int32_t pixelWidth, int32_t pixelHeight, bool isOpaque) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISurfaceImageSourceFactory const& f) { + return f.CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, baseInterface, innerInterface); + }); + } + inline SvgImageSource::SvgImageSource() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISvgImageSourceFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline SvgImageSource::SvgImageSource( + winrt::Windows::Foundation::Uri const& uriSource) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ISvgImageSourceFactory const& f) { + return f.CreateInstanceWithUriSource(uriSource, baseInterface, + innerInterface); + }); + } + inline auto SvgImageSource::UriSourceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISvgImageSourceStatics const&), + SvgImageSource, ISvgImageSourceStatics>( + [](ISvgImageSourceStatics const& f) { return f.UriSourceProperty(); }); + } + inline auto SvgImageSource::RasterizePixelWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISvgImageSourceStatics const&), + SvgImageSource, ISvgImageSourceStatics>( + [](ISvgImageSourceStatics const& f) { + return f.RasterizePixelWidthProperty(); + }); + } + inline auto SvgImageSource::RasterizePixelHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISvgImageSourceStatics const&), + SvgImageSource, ISvgImageSourceStatics>( + [](ISvgImageSourceStatics const& f) { + return f.RasterizePixelHeightProperty(); + }); + } + inline VirtualSurfaceImageSource::VirtualSurfaceImageSource( + int32_t pixelWidth, int32_t pixelHeight) + : VirtualSurfaceImageSource( + impl::call_factory( + [&](IVirtualSurfaceImageSourceFactory const& f) { + return f.CreateInstanceWithDimensions(pixelWidth, + pixelHeight); + })) {} + inline VirtualSurfaceImageSource::VirtualSurfaceImageSource( + int32_t pixelWidth, int32_t pixelHeight, bool isOpaque) + : VirtualSurfaceImageSource( + impl::call_factory( + [&](IVirtualSurfaceImageSourceFactory const& f) { + return f.CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque); + })) {} + inline WriteableBitmap::WriteableBitmap(int32_t pixelWidth, + int32_t pixelHeight) + : WriteableBitmap( + impl::call_factory( + [&](IWriteableBitmapFactory const& f) { + return f.CreateInstanceWithDimensions(pixelWidth, + pixelHeight); + })) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler(L handler) + : DownloadProgressEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler(F * handler) + : DownloadProgressEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler(O * object, + M method) + : DownloadProgressEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler( + com_ptr && object, M method) + : DownloadProgressEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler( + weak_ref && object, LM && lambda_or_method) + : DownloadProgressEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler( + std::shared_ptr && object, M method) + : DownloadProgressEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + DownloadProgressEventHandler::DownloadProgressEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : DownloadProgressEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto DownloadProgressEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + DownloadProgressEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + auto IXamlRenderingBackgroundTaskOverridesT::OnRun( + winrt::Windows::ApplicationModel::Background:: + IBackgroundTaskInstance const& taskInstance) const { + return shim() + .template try_as() + .OnRun(taskInstance); + } + template + struct BitmapSourceT + : implements, + impl::require, + impl::base { + using composable = BitmapSource; + + protected: + BitmapSourceT() { + impl::call_factory( + [&](IBitmapSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct SurfaceImageSourceT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSource, + winrt::Microsoft::UI::Xaml::Media::IImageSource, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base { + using composable = SurfaceImageSource; + + protected: + SurfaceImageSourceT(int32_t pixelWidth, int32_t pixelHeight) { + impl::call_factory( + [&](ISurfaceImageSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithDimensions(pixelWidth, pixelHeight, *this, + this->m_inner); + }); + } + SurfaceImageSourceT(int32_t pixelWidth, int32_t pixelHeight, + bool isOpaque) { + impl::call_factory( + [&](ISurfaceImageSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithDimensionsAndOpacity( + pixelWidth, pixelHeight, isOpaque, *this, this->m_inner); + }); + } + }; + template + struct SvgImageSourceT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSource, + winrt::Microsoft::UI::Xaml::Media::IImageSource, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base { + using composable = SvgImageSource; + + protected: + SvgImageSourceT() { + impl::call_factory( + [&](ISvgImageSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + SvgImageSourceT(winrt::Windows::Foundation::Uri const& uriSource) { + impl::call_factory( + [&](ISvgImageSourceFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithUriSource(uriSource, *this, this->m_inner); + }); + } + }; + template + struct XamlRenderingBackgroundTaskT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::Imaging:: + IXamlRenderingBackgroundTaskOverridesT { + using composable = XamlRenderingBackgroundTask; + friend impl::produce; + + protected: + XamlRenderingBackgroundTaskT() { + impl::call_factory( + [&](IXamlRenderingBackgroundTaskFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::IDownloadProgressEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::IRenderTargetBitmapStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISurfaceImageSourceFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceFailedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::ISvgImageSourceOpenedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::IVirtualSurfaceImageSource> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::IXamlRenderingBackgroundTask> + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::DownloadProgressEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSourceFailedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::SvgImageSourceOpenedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::VirtualSurfaceImageSource> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Imaging::XamlRenderingBackgroundTask> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Media3D.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Media3D.h new file mode 100644 index 00000000..3f3cddd1 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.Media3D.h @@ -0,0 +1,2026 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Media_Media3D_H +#define WINRT_Microsoft_UI_Xaml_Media_Media3D_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.Media.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Media3D.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::CenterX() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::CenterX( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::CenterY() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::CenterY( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::CenterZ() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::CenterZ( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::RotationX() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::RotationX(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::RotationY() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::RotationY(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::RotationZ() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::RotationZ(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::ScaleX() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::ScaleX( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::ScaleY() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::ScaleY( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::ScaleZ() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D::ScaleZ( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::TranslateX() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::TranslateX(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TranslateX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TranslateX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::TranslateY() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::TranslateY(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TranslateY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TranslateY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::TranslateZ() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D< + D>::TranslateZ(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TranslateZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TranslateZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::CenterXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::CenterYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::CenterZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::RotationXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::RotationYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::RotationZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::ScaleXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::ScaleYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::ScaleZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::TranslateXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::TranslateYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics< + D>::TranslateZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics< + D>::Identity() const { + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Identity(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Identity(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics:: + Multiply( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix1, + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix2) + const { + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Multiply( + impl::bind_in(matrix1), impl::bind_in(matrix2), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Multiply( + impl::bind_in(matrix1), impl::bind_in(matrix2), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics< + D>::FromElements(double m11, double m12, double m13, double m14, double m21, + double m22, double m23, double m24, double m31, double m32, + double m33, double m34, double offsetX, double offsetY, + double offsetZ, double m44) const { + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromElements( + m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, offsetX, + offsetY, offsetZ, m44, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromElements( + m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, offsetX, + offsetY, offsetZ, m44, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics:: + GetHasInverse(winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& + target) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetHasInverse(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetHasInverse(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics:: + GetIsIdentity(winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& + target) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsIdentity(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsIdentity(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics::Invert( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) const { + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->Invert(impl::bind_in(target), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->Invert(impl::bind_in(target), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D::Depth() + const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Depth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Depth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D::Depth( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Depth(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Depth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D< + D>::OffsetX() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D< + D>::OffsetX(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OffsetX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OffsetX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D< + D>::OffsetY() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D< + D>::OffsetY(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OffsetY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OffsetY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3DStatics< + D>::DepthProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DepthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DepthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3DStatics< + D>::OffsetXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3DStatics< + D>::OffsetYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_Media3D_ITransform3DFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3DFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D{ + value, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D> { + int32_t __stdcall get_CenterX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TranslateX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslateX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslateX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TranslateY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslateY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslateY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TranslateZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslateZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslateZ(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3DStatics> + : produce_base { + int32_t __stdcall get_CenterXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TranslateXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TranslateYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TranslateZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelper> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics> { + int32_t __stdcall get_Identity( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Identity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Multiply( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D matrix1, + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D matrix2, + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* result) noexcept + final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Multiply( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>( + &matrix1), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>( + &matrix2))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromElements( + double m11, double m12, double m13, double m14, double m21, double m22, + double m23, double m24, double m31, double m32, double m33, double m34, + double offsetX, double offsetY, double offsetZ, double m44, + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* result) noexcept + final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromElements(m11, m12, m13, m14, m21, m22, m23, m24, m31, + m32, m33, m34, offsetX, offsetY, offsetZ, + m44)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHasInverse( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHasInverse( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsIdentity( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsIdentity( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Invert( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D target, + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* result) noexcept + final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Invert( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D> { + int32_t __stdcall get_Depth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Depth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Depth(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Depth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffsetX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OffsetX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OffsetX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().OffsetY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OffsetY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OffsetY(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3DStatics> + : produce_base { + int32_t __stdcall get_DepthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DepthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OffsetXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OffsetYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3DFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media::Media3D { + inline CompositeTransform3D::CompositeTransform3D() + : CompositeTransform3D( + impl::call_factory_cast< + CompositeTransform3D (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CompositeTransform3D>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto CompositeTransform3D::CenterXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.CenterXProperty(); + }); + } + inline auto CompositeTransform3D::CenterYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.CenterYProperty(); + }); + } + inline auto CompositeTransform3D::CenterZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.CenterZProperty(); + }); + } + inline auto CompositeTransform3D::RotationXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.RotationXProperty(); + }); + } + inline auto CompositeTransform3D::RotationYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.RotationYProperty(); + }); + } + inline auto CompositeTransform3D::RotationZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.RotationZProperty(); + }); + } + inline auto CompositeTransform3D::ScaleXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.ScaleXProperty(); + }); + } + inline auto CompositeTransform3D::ScaleYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.ScaleYProperty(); + }); + } + inline auto CompositeTransform3D::ScaleZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.ScaleZProperty(); + }); + } + inline auto CompositeTransform3D::TranslateXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.TranslateXProperty(); + }); + } + inline auto CompositeTransform3D::TranslateYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.TranslateYProperty(); + }); + } + inline auto CompositeTransform3D::TranslateZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransform3DStatics const&), + CompositeTransform3D, ICompositeTransform3DStatics>( + [](ICompositeTransform3DStatics const& f) { + return f.TranslateZProperty(); + }); + } + inline auto Matrix3DHelper::Identity() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D (*)( + IMatrix3DHelperStatics const&), + Matrix3DHelper, IMatrix3DHelperStatics>( + [](IMatrix3DHelperStatics const& f) { return f.Identity(); }); + } + inline auto Matrix3DHelper::Multiply( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix1, + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix2) { + return impl::call_factory( + [&](IMatrix3DHelperStatics const& f) { + return f.Multiply(matrix1, matrix2); + }); + } + inline auto Matrix3DHelper::FromElements( + double m11, double m12, double m13, double m14, double m21, double m22, + double m23, double m24, double m31, double m32, double m33, double m34, + double offsetX, double offsetY, double offsetZ, double m44) { + return impl::call_factory( + [&](IMatrix3DHelperStatics const& f) { + return f.FromElements(m11, m12, m13, m14, m21, m22, m23, m24, m31, + m32, m33, m34, offsetX, offsetY, offsetZ, m44); + }); + } + inline auto Matrix3DHelper::GetHasInverse( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) { + return impl::call_factory( + [&](IMatrix3DHelperStatics const& f) { + return f.GetHasInverse(target); + }); + } + inline auto Matrix3DHelper::GetIsIdentity( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) { + return impl::call_factory( + [&](IMatrix3DHelperStatics const& f) { + return f.GetIsIdentity(target); + }); + } + inline auto Matrix3DHelper::Invert( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) { + return impl::call_factory( + [&](IMatrix3DHelperStatics const& f) { return f.Invert(target); }); + } + inline PerspectiveTransform3D::PerspectiveTransform3D() + : PerspectiveTransform3D( + impl::call_factory_cast< + PerspectiveTransform3D (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PerspectiveTransform3D>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PerspectiveTransform3D::DepthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPerspectiveTransform3DStatics const&), + PerspectiveTransform3D, IPerspectiveTransform3DStatics>( + [](IPerspectiveTransform3DStatics const& f) { + return f.DepthProperty(); + }); + } + inline auto PerspectiveTransform3D::OffsetXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPerspectiveTransform3DStatics const&), + PerspectiveTransform3D, IPerspectiveTransform3DStatics>( + [](IPerspectiveTransform3DStatics const& f) { + return f.OffsetXProperty(); + }); + } + inline auto PerspectiveTransform3D::OffsetYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPerspectiveTransform3DStatics const&), + PerspectiveTransform3D, IPerspectiveTransform3DStatics>( + [](IPerspectiveTransform3DStatics const& f) { + return f.OffsetYProperty(); + }); + } + template + struct Transform3DT + : implements, + impl::require, + impl::base { + using composable = Transform3D; + + protected: + Transform3DT() { + impl::call_factory( + [&](ITransform3DFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3DStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3DStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.h new file mode 100644 index 00000000..a78e1272 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Media.h @@ -0,0 +1,15590 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Media_H +#define WINRT_Microsoft_UI_Xaml_Media_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Composition.SystemBackdrops.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Media3D.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Storage.Streams.2.h" +#include "winrt/impl/Windows.UI.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintColor( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TintColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintOpacity() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintOpacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintOpacity( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TintOpacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TintOpacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintTransitionDuration() + const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintTransitionDuration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintTransitionDuration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::TintTransitionDuration( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TintTransitionDuration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TintTransitionDuration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::AlwaysUseFallback() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlwaysUseFallback(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlwaysUseFallback(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush::AlwaysUseFallback( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlwaysUseFallback(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlwaysUseFallback(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush2::TintLuminosityOpacity() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintLuminosityOpacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintLuminosityOpacity(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrush2::TintLuminosityOpacity( + winrt::Windows::Foundation::IReference const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TintLuminosityOpacity(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TintLuminosityOpacity(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::AcrylicBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics< + D>::TintColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics< + D>::TintOpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintOpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics< + D>::TintTransitionDurationProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintTransitionDurationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TintTransitionDurationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics< + D>::AlwaysUseFallbackProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlwaysUseFallbackProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlwaysUseFallbackProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IAcrylicBrushStatics2< + D>::TintLuminosityOpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics2>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrushStatics2, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TintLuminosityOpacityProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_TintLuminosityOpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::Point() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::Point( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Point(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::Size() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::Size( + winrt::Windows::Foundation::Size const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Size(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::RotationAngle() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::RotationAngle( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAngle(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::IsLargeArc() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLargeArc(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLargeArc(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::IsLargeArc( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsLargeArc(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsLargeArc(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::SweepDirection() const { + winrt::Microsoft::UI::Xaml::Media::SweepDirection value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SweepDirection( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SweepDirection( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegment::SweepDirection( + winrt::Microsoft::UI::Xaml::Media::SweepDirection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SweepDirection(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SweepDirection(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegmentStatics::PointProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegmentStatics::SizeProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SizeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SizeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegmentStatics< + D>::RotationAngleProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAngleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAngleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegmentStatics::IsLargeArcProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLargeArcProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLargeArcProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IArcSegmentStatics< + D>::SweepDirectionProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IArcSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SweepDirectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SweepDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegment::Point1() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point1(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point1(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegment::Point1( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point1(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Point1(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegment::Point2() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point2(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point2(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegment::Point2( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point2(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Point2(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegment::Point3() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point3(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point3(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegment::Point3( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point3(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Point3(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegmentStatics::Point1Property() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IBezierSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point1Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Point1Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegmentStatics::Point2Property() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IBezierSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point2Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Point2Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBezierSegmentStatics::Point3Property() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IBezierSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBezierSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point3Property(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Point3Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrush::Opacity() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IBrush>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrush::Opacity(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IBrush>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrush::Transform() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IBrush>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transform(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Transform{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrush::Transform( + winrt::Microsoft::UI::Xaml::Media::Transform const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IBrush>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Transform(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Transform(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrush::RelativeTransform() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IBrush>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RelativeTransform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RelativeTransform(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Transform{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrush::RelativeTransform( + winrt::Microsoft::UI::Xaml::Media::Transform const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IBrush>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RelativeTransform(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RelativeTransform(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrushFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBrushFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBrushFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrushOverrides:: + PopulatePropertyInfoOverride( + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const& + animationPropertyInfo) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBrushOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBrushOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PopulatePropertyInfoOverride( + *(void**)(&propertyName), *(void**)(&animationPropertyInfo))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PopulatePropertyInfoOverride( + *(void**)(&propertyName), *(void**)(&animationPropertyInfo))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrushStatics::OpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrushStatics::TransformProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IBrushStatics< + D>::RelativeTransformProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RelativeTransformProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RelativeTransformProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICacheModeFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ICacheModeFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICacheModeFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::CacheMode{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::CenterX() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::CenterX( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::CenterY() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::CenterY( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::ScaleX() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::ScaleX( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::ScaleY() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::ScaleY( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::SkewX() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SkewX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SkewX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::SkewX( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SkewX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SkewX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::SkewY() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SkewY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SkewY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::SkewY( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SkewY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SkewY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::Rotation() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Rotation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Rotation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::Rotation( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Rotation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Rotation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::TranslateX() + const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::TranslateX( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TranslateX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TranslateX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::TranslateY() + const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransform::TranslateY( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TranslateY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TranslateY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::CenterXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::CenterYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::ScaleXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleXProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::ScaleYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleYProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::SkewXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SkewXProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SkewXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::SkewYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SkewYProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SkewYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::RotationProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::TranslateXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateXProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositeTransformStatics< + D>::TranslateYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslateYProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslateYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics::Rendering( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Rendering(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Rendering(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics::Rendering( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, + Rendering(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics::Rendering( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Rendering(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Rendering(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics::Rendered( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Media::RenderedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Rendered(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Rendered(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics::Rendered( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Media::RenderedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, Rendered(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics::Rendered( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Rendered(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_Rendered(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics:: + SurfaceContentsLost( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_SurfaceContentsLost(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->add_SurfaceContentsLost(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics< + D>::SurfaceContentsLost(auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& + handler) const { + return impl::make_event_revoker( + this, SurfaceContentsLost(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics< + D>::SurfaceContentsLost(winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SurfaceContentsLost(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + _winrt_abi_type->remove_SurfaceContentsLost(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ICompositionTargetStatics< + D>::GetCompositorForCurrentThread() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetCompositorForCurrentThread(&result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->GetCompositorForCurrentThread(&result)); + } + return winrt::Microsoft::UI::Composition::Compositor{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IDesktopAcrylicBackdropFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IDesktopAcrylicBackdropFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::DesktopAcrylicBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometry::Center() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometry::Center( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometry::RadiusX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometry::RadiusX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RadiusX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RadiusX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometry::RadiusY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometry::RadiusY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RadiusY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RadiusY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometryStatics< + D>::CenterProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometryStatics>**)this; + check_hresult(_winrt_abi_type->get_CenterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometryStatics< + D>::RadiusXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometryStatics>**)this; + check_hresult(_winrt_abi_type->get_RadiusXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IEllipseGeometryStatics< + D>::RadiusYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IEllipseGeometryStatics>**)this; + check_hresult(_winrt_abi_type->get_RadiusYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IFontFamily::Source() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IFontFamily>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IFontFamilyFactory:: + CreateInstanceWithName( + param::hstring const& familyName, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IFontFamilyFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IFontFamilyFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithName( + *(void**)(&familyName), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithName( + *(void**)(&familyName), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IFontFamilyStatics::XamlAutoFontFamily() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IFontFamilyStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IFontFamilyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XamlAutoFontFamily(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XamlAutoFontFamily(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::FontFamily{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransform::Inverse() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Inverse(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Inverse(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::GeneralTransform{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransform::TransformPoint( + winrt::Windows::Foundation::Point const& point) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TransformPoint(impl::bind_in(point), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TransformPoint(impl::bind_in(point), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransform::TryTransform( + winrt::Windows::Foundation::Point const& inPoint, + winrt::Windows::Foundation::Point& outPoint) const { + bool returnValue{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryTransform( + impl::bind_in(inPoint), impl::bind_out(outPoint), &returnValue)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryTransform( + impl::bind_in(inPoint), impl::bind_out(outPoint), &returnValue)); + } + return returnValue; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransform::TransformBounds( + winrt::Windows::Foundation::Rect const& rect) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TransformBounds(impl::bind_in(rect), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TransformBounds(impl::bind_in(rect), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransformFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransformFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransformFactory>**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::GeneralTransform{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransformOverrides< + D>::InverseCore() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InverseCore(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InverseCore(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::GeneralTransform{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransformOverrides< + D>::TryTransformCore(winrt::Windows::Foundation::Point const& inPoint, + winrt::Windows::Foundation::Point& outPoint) const { + bool returnValue{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryTransformCore( + impl::bind_in(inPoint), impl::bind_out(outPoint), &returnValue)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TryTransformCore( + impl::bind_in(inPoint), impl::bind_out(outPoint), &returnValue)); + } + return returnValue; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeneralTransformOverrides:: + TransformBoundsCore(winrt::Windows::Foundation::Rect const& rect) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TransformBoundsCore(impl::bind_in(rect), + put_abi(result))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->TransformBoundsCore(impl::bind_in(rect), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometry::Transform() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transform(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Transform{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometry::Transform( + winrt::Microsoft::UI::Xaml::Media::Transform const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Transform(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Transform(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometry::Bounds() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryGroup::FillRule() const { + winrt::Microsoft::UI::Xaml::Media::FillRule value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryGroup::FillRule( + winrt::Microsoft::UI::Xaml::Media::FillRule const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryGroup::Children() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::GeometryCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryGroup::Children( + winrt::Microsoft::UI::Xaml::Media::GeometryCollection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Children(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Children(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryGroupStatics< + D>::FillRuleProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGeometryGroupStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryGroupStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryGroupStatics< + D>::ChildrenProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGeometryGroupStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryGroupStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildrenProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildrenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryStatics::Empty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Empty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Empty(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Geometry{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryStatics< + D>::StandardFlatteningTolerance() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StandardFlatteningTolerance(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StandardFlatteningTolerance(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGeometryStatics::TransformProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::SpreadMethod() const { + winrt::Microsoft::UI::Xaml::Media::GradientSpreadMethod value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SpreadMethod(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SpreadMethod(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::SpreadMethod( + winrt::Microsoft::UI::Xaml::Media::GradientSpreadMethod const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SpreadMethod(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SpreadMethod(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::MappingMode() const { + winrt::Microsoft::UI::Xaml::Media::BrushMappingMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_MappingMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_MappingMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::MappingMode( + winrt::Microsoft::UI::Xaml::Media::BrushMappingMode const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_MappingMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_MappingMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::ColorInterpolationMode() + const { + winrt::Microsoft::UI::Xaml::Media::ColorInterpolationMode value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorInterpolationMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorInterpolationMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::ColorInterpolationMode( + winrt::Microsoft::UI::Xaml::Media::ColorInterpolationMode const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ColorInterpolationMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ColorInterpolationMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::GradientStops() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GradientStops(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GradientStops(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::GradientStopCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrush::GradientStops( + winrt::Microsoft::UI::Xaml::Media::GradientStopCollection const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GradientStops(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GradientStops(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrushFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientBrushFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrushFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::GradientBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrushStatics< + D>::SpreadMethodProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpreadMethodProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_SpreadMethodProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrushStatics< + D>::MappingModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MappingModeProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_MappingModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrushStatics< + D>::ColorInterpolationModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorInterpolationModeProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorInterpolationModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientBrushStatics< + D>::GradientStopsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GradientStopsProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_GradientStopsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientStop::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientStop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientStop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientStop::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientStop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientStop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientStop::Offset() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientStop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientStop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Offset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientStop::Offset( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IGradientStop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientStop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Offset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Offset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientStopStatics::ColorProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientStopStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientStopStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IGradientStopStatics::OffsetProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IGradientStopStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IGradientStopStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageSource() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ImageSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ImageSource(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::ImageSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageSource( + winrt::Microsoft::UI::Xaml::Media::ImageSource const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ImageSource(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ImageSource(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageFailed( + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ImageFailed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_ImageFailed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageFailed( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const& handler) + const { + return impl::make_event_revoker(this, + ImageFailed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageFailed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ImageFailed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ImageFailed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageOpened( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_ImageOpened(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_ImageOpened(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageOpened( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, + ImageOpened(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrush::ImageOpened( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ImageOpened(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ImageOpened(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IImageBrushStatics< + D>::ImageSourceProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IImageBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IImageBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ImageSourceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ImageSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineGeometry::StartPoint() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ILineGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineGeometry::StartPoint( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ILineGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineGeometry::EndPoint() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ILineGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineGeometry::EndPoint( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ILineGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EndPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EndPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineGeometryStatics< + D>::StartPointProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILineGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineGeometryStatics::EndPointProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILineGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineSegment::Point() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ILineSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineSegment::Point( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ILineSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Point(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ILineSegmentStatics::PointProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILineSegmentStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILineSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrush::StartPoint() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrush::StartPoint( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrush::EndPoint() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrush::EndPoint( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EndPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EndPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrushFactory:: + CreateInstanceWithGradientStopCollectionAndAngle( + winrt::Microsoft::UI::Xaml::Media::GradientStopCollection const& + gradientStopCollection, + double angle) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrushFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithGradientStopCollectionAndAngle( + *(void**)(&gradientStopCollection), angle, &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithGradientStopCollectionAndAngle( + *(void**)(&gradientStopCollection), angle, &value)); + } + return winrt::Microsoft::UI::Xaml::Media::LinearGradientBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrushStatics< + D>::StartPointProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILinearGradientBrushStatics< + D>::EndPointProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EndPointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EndPointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSourceLoadCompletedEventArgs< + D>::Status() const { + winrt::Microsoft::UI::Xaml::Media::LoadedImageSourceLoadStatus value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media:: + ILoadedImageSourceLoadCompletedEventArgs>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Status(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Status(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurface< + D>::DecodedPhysicalSize() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodedPhysicalSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodedPhysicalSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurface::DecodedSize() + const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DecodedSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DecodedSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurface::NaturalSize() + const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NaturalSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NaturalSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurface::LoadCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::LoadedImageSurface, + winrt::Microsoft::UI::Xaml::Media:: + LoadedImageSourceLoadCompletedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_LoadCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_LoadCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurface::LoadCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::Media::LoadedImageSurface, + winrt::Microsoft::UI::Xaml::Media:: + LoadedImageSourceLoadCompletedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, LoadCompleted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurface::LoadCompleted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurface, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LoadCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LoadCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurfaceStatics< + D>::StartLoadFromUri(winrt::Windows::Foundation::Uri const& uri, + winrt::Windows::Foundation::Size const& desiredMaxSize) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurfaceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartLoadFromUriWithSize( + *(void**)(&uri), impl::bind_in(desiredMaxSize), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartLoadFromUriWithSize( + *(void**)(&uri), impl::bind_in(desiredMaxSize), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::LoadedImageSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurfaceStatics< + D>::StartLoadFromUri(winrt::Windows::Foundation::Uri const& uri) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurfaceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartLoadFromUri(*(void**)(&uri), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartLoadFromUri(*(void**)(&uri), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::LoadedImageSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurfaceStatics:: + StartLoadFromStream( + winrt::Windows::Storage::Streams::IRandomAccessStream const& stream, + winrt::Windows::Foundation::Size const& desiredMaxSize) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurfaceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartLoadFromStreamWithSize( + *(void**)(&stream), impl::bind_in(desiredMaxSize), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->StartLoadFromStreamWithSize( + *(void**)(&stream), impl::bind_in(desiredMaxSize), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::LoadedImageSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ILoadedImageSurfaceStatics:: + StartLoadFromStream( + winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) + const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurfaceStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->StartLoadFromStream(*(void**)(&stream), &result)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult( + _winrt_abi_type->StartLoadFromStream(*(void**)(&stream), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::LoadedImageSurface{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrix3DProjection::ProjectionMatrix() + const { + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMatrix3DProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrix3DProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProjectionMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProjectionMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrix3DProjection::ProjectionMatrix( + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMatrix3DProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrix3DProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProjectionMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProjectionMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrix3DProjectionStatics< + D>::ProjectionMatrixProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrix3DProjectionStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProjectionMatrixProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProjectionMatrixProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixHelperStatics::Identity() const { + winrt::Microsoft::UI::Xaml::Media::Matrix value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Identity(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Identity(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixHelperStatics::FromElements( + double m11, double m12, double m21, double m22, double offsetX, + double offsetY) const { + winrt::Microsoft::UI::Xaml::Media::Matrix result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromElements(m11, m12, m21, m22, offsetX, + offsetY, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromElements(m11, m12, m21, m22, offsetX, + offsetY, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixHelperStatics::GetIsIdentity( + winrt::Microsoft::UI::Xaml::Media::Matrix const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsIdentity(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsIdentity(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixHelperStatics::Transform( + winrt::Microsoft::UI::Xaml::Media::Matrix const& target, + winrt::Windows::Foundation::Point const& point) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Transform( + impl::bind_in(target), impl::bind_in(point), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Transform( + impl::bind_in(target), impl::bind_in(point), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixTransform::Matrix() const { + winrt::Microsoft::UI::Xaml::Media::Matrix value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IMatrixTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Matrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Matrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixTransform::Matrix( + winrt::Microsoft::UI::Xaml::Media::Matrix const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IMatrixTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Matrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Matrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IMatrixTransformStatics< + D>::MatrixProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMatrixTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MatrixProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IMatrixTransformStatics>**)this; + check_hresult(_winrt_abi_type->get_MatrixProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMediaTransportControlsThumbnailRequestedEventArgs< + D>::SetThumbnailImage(winrt::Windows::Storage::Streams::IInputStream const& + source) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media:: + IMediaTransportControlsThumbnailRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media:: + IMediaTransportControlsThumbnailRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media:: + IMediaTransportControlsThumbnailRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetThumbnailImage(*(void**)(&source))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetThumbnailImage(*(void**)(&source))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IMediaTransportControlsThumbnailRequestedEventArgs< + D>::GetDeferral() const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media:: + IMediaTransportControlsThumbnailRequestedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media:: + IMediaTransportControlsThumbnailRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media:: + IMediaTransportControlsThumbnailRequestedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Windows::Foundation::Deferral{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMicaBackdrop::Kind() const { + winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IMicaBackdrop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMicaBackdrop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Kind(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMicaBackdrop::Kind( + winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IMicaBackdrop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMicaBackdrop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Kind(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IMicaBackdropFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMicaBackdropFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMicaBackdropFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::MicaBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IMicaBackdropStatics::KindProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IMicaBackdropStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IMicaBackdropStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KindProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KindProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::Segments() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Segments(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Segments(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PathSegmentCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::Segments( + winrt::Microsoft::UI::Xaml::Media::PathSegmentCollection const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Segments(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Segments(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::StartPoint() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::StartPoint( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StartPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::IsClosed() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClosed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClosed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::IsClosed( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsClosed(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsClosed(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::IsFilled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFilled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFilled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigure::IsFilled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigure>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsFilled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsFilled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigureStatics::SegmentsProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SegmentsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SegmentsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigureStatics::StartPointProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StartPointProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StartPointProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigureStatics::IsClosedProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsClosedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsClosedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathFigureStatics::IsFilledProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathFigureStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsFilledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsFilledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathGeometry::FillRule() const { + winrt::Microsoft::UI::Xaml::Media::FillRule value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathGeometry::FillRule( + winrt::Microsoft::UI::Xaml::Media::FillRule const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathGeometry::Figures() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Figures(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Figures(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PathFigureCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathGeometry::Figures( + winrt::Microsoft::UI::Xaml::Media::PathFigureCollection const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPathGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Figures(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Figures(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathGeometryStatics::FillRuleProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IPathGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPathGeometryStatics::FiguresProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IPathGeometryStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPathGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FiguresProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FiguresProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::LocalOffsetX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalOffsetX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalOffsetX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::LocalOffsetX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LocalOffsetX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LocalOffsetX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::LocalOffsetY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalOffsetY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalOffsetY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::LocalOffsetY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LocalOffsetY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LocalOffsetY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::LocalOffsetZ() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalOffsetZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LocalOffsetZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::LocalOffsetZ( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LocalOffsetZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LocalOffsetZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::RotationX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::RotationX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::RotationY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::RotationY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::RotationZ() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::RotationZ( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::CenterOfRotationX() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterOfRotationX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterOfRotationX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::CenterOfRotationX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterOfRotationX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterOfRotationX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::CenterOfRotationY() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterOfRotationY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterOfRotationY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::CenterOfRotationY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterOfRotationY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterOfRotationY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::CenterOfRotationZ() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterOfRotationZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterOfRotationZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::CenterOfRotationZ( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterOfRotationZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterOfRotationZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::GlobalOffsetX() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalOffsetX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlobalOffsetX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::GlobalOffsetX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlobalOffsetX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlobalOffsetX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::GlobalOffsetY() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalOffsetY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlobalOffsetY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::GlobalOffsetY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlobalOffsetY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlobalOffsetY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::GlobalOffsetZ() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalOffsetZ(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GlobalOffsetZ(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::GlobalOffsetZ( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GlobalOffsetZ(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GlobalOffsetZ(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjection::ProjectionMatrix() + const { + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPlaneProjection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProjectionMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProjectionMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::LocalOffsetXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalOffsetXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_LocalOffsetXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::LocalOffsetYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalOffsetYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_LocalOffsetYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::LocalOffsetZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LocalOffsetZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_LocalOffsetZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::RotationXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_RotationXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::RotationYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_RotationYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::RotationZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_RotationZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::CenterOfRotationXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterOfRotationXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_CenterOfRotationXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::CenterOfRotationYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterOfRotationYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_CenterOfRotationYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::CenterOfRotationZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterOfRotationZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_CenterOfRotationZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::GlobalOffsetXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalOffsetXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_GlobalOffsetXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::GlobalOffsetYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalOffsetYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_GlobalOffsetYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::GlobalOffsetZProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GlobalOffsetZProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_GlobalOffsetZProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPlaneProjectionStatics< + D>::ProjectionMatrixProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProjectionMatrixProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPlaneProjectionStatics>**)this; + check_hresult(_winrt_abi_type->get_ProjectionMatrixProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyBezierSegment::Points() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPolyBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Points(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Points(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PointCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyBezierSegment::Points( + winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPolyBezierSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyBezierSegmentStatics< + D>::PointsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyBezierSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyLineSegment::Points() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPolyLineSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyLineSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Points(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Points(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PointCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyLineSegment::Points( + winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IPolyLineSegment>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyLineSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyLineSegmentStatics< + D>::PointsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyLineSegmentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IPolyLineSegmentStatics>**)this; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyQuadraticBezierSegment::Points() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyQuadraticBezierSegment, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Points(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Points(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PointCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyQuadraticBezierSegment::Points( + winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyQuadraticBezierSegment, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IPolyQuadraticBezierSegmentStatics< + D>::PointsProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IPolyQuadraticBezierSegmentStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IProjectionFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IProjectionFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IProjectionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::Projection{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IQuadraticBezierSegment::Point1() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point1(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment>**)this; + check_hresult(_winrt_abi_type->get_Point1(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IQuadraticBezierSegment::Point1( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point1(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment>**)this; + check_hresult(_winrt_abi_type->put_Point1(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IQuadraticBezierSegment::Point2() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point2(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment>**)this; + check_hresult(_winrt_abi_type->get_Point2(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IQuadraticBezierSegment::Point2( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Point2(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegment>**)this; + check_hresult(_winrt_abi_type->put_Point2(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IQuadraticBezierSegmentStatics< + D>::Point1Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegmentStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point1Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point1Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IQuadraticBezierSegmentStatics< + D>::Point2Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegmentStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Point2Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Point2Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::Center() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Center(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::Center( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Center(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusX() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusX( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RadiusX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RadiusX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusY() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::RadiusY( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RadiusY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RadiusY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::GradientOrigin() + const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GradientOrigin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GradientOrigin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::GradientOrigin( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GradientOrigin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GradientOrigin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::MappingMode() + const { + winrt::Microsoft::UI::Xaml::Media::BrushMappingMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_MappingMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_MappingMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::MappingMode( + winrt::Microsoft::UI::Xaml::Media::BrushMappingMode const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_MappingMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_MappingMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush< + D>::InterpolationSpace() const { + winrt::Microsoft::UI::Composition::CompositionColorSpace value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InterpolationSpace( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InterpolationSpace( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush:: + InterpolationSpace( + winrt::Microsoft::UI::Composition::CompositionColorSpace const& value) + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_InterpolationSpace(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_InterpolationSpace(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::SpreadMethod() + const { + winrt::Microsoft::UI::Xaml::Media::GradientSpreadMethod value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_SpreadMethod(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_SpreadMethod(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::SpreadMethod( + winrt::Microsoft::UI::Xaml::Media::GradientSpreadMethod const& value) + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SpreadMethod(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SpreadMethod(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrush::GradientStops() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GradientStops(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GradientStops(&value)); + } + return winrt::Windows::Foundation::Collections::IObservableVector< + winrt::Microsoft::UI::Xaml::Media::GradientStop>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::RadialGradientBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::CenterProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::RadiusXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::RadiusYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::GradientOriginProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GradientOriginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GradientOriginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::InterpolationSpaceProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_InterpolationSpaceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_InterpolationSpaceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::MappingModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MappingModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MappingModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRadialGradientBrushStatics< + D>::SpreadMethodProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpreadMethodProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpreadMethodProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRectangleGeometry::Rect() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRectangleGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRectangleGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Rect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Rect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRectangleGeometry::Rect( + winrt::Windows::Foundation::Rect const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRectangleGeometry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRectangleGeometry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Rect(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Rect(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRectangleGeometryStatics< + D>::RectProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRectangleGeometryStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RectProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RectProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRenderedEventArgs::FrameDuration() + const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRenderedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRenderedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FrameDuration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FrameDuration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRenderingEventArgs::RenderingTime() + const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IRenderingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRenderingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RenderingTime(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RenderingTime(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransform::CenterX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRotateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransform::CenterX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRotateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransform::CenterY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRotateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransform::CenterY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRotateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransform::Angle() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRotateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Angle(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Angle(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransform::Angle( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IRotateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Angle(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Angle(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransformStatics< + D>::CenterXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IRotateTransformStatics>**)this; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransformStatics< + D>::CenterYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IRotateTransformStatics>**)this; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IRotateTransformStatics::AngleProperty() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IRotateTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AngleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IRotateTransformStatics>**)this; + check_hresult(_winrt_abi_type->get_AngleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::CenterX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::CenterX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::CenterY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::CenterY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::ScaleX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::ScaleX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::ScaleY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransform::ScaleY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IScaleTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransformStatics< + D>::CenterXProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransformStatics< + D>::CenterYProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransformStatics::ScaleXProperty() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleXProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IScaleTransformStatics::ScaleYProperty() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IScaleTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleYProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::CenterX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::CenterX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::CenterY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::CenterY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::AngleX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AngleX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AngleX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::AngleX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AngleX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AngleX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::AngleY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AngleY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AngleY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransform::AngleY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISkewTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AngleY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AngleY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransformStatics::CenterXProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransformStatics::CenterYProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransformStatics::AngleXProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AngleXProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AngleXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISkewTransformStatics::AngleYProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISkewTransformStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AngleYProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_AngleYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISolidColorBrush::Color() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISolidColorBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISolidColorBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Color(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISolidColorBrush::Color( + winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISolidColorBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISolidColorBrush, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISolidColorBrushFactory< + D>::CreateInstanceWithColor(winrt::Windows::UI::Color const& color) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISolidColorBrushFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstanceWithColor(impl::bind_in(color), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::ISolidColorBrushFactory>**)this; + check_hresult( + _winrt_abi_type->CreateInstanceWithColor(impl::bind_in(color), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::SolidColorBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISolidColorBrushStatics::ColorProperty() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISolidColorBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::ISolidColorBrushStatics>**)this; + check_hresult(_winrt_abi_type->get_ColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISystemBackdrop:: + GetDefaultSystemBackdropConfiguration( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& target, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdrop>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdrop, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDefaultSystemBackdropConfiguration( + *(void**)(&target), *(void**)(&xamlRoot), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDefaultSystemBackdropConfiguration( + *(void**)(&target), *(void**)(&xamlRoot), &result)); + } + return winrt::Microsoft::UI::Composition::SystemBackdrops:: + SystemBackdropConfiguration{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISystemBackdropFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ISystemBackdropOverrides:: + OnTargetConnected( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& connectedTarget, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnTargetConnected( + *(void**)(&connectedTarget), *(void**)(&xamlRoot))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides>**)this; + check_hresult(_winrt_abi_type->OnTargetConnected( + *(void**)(&connectedTarget), *(void**)(&xamlRoot))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISystemBackdropOverrides< + D>::OnTargetDisconnected(winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& + disconnectedTarget) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->OnTargetDisconnected(*(void**)(&disconnectedTarget))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides>**)this; + check_hresult( + _winrt_abi_type->OnTargetDisconnected(*(void**)(&disconnectedTarget))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ISystemBackdropOverrides:: + OnDefaultSystemBackdropConfigurationChanged( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& target, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDefaultSystemBackdropConfigurationChanged( + *(void**)(&target), *(void**)(&xamlRoot))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides>**)this; + check_hresult(_winrt_abi_type->OnDefaultSystemBackdropConfigurationChanged( + *(void**)(&target), *(void**)(&xamlRoot))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IThemeShadow::Receivers() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IThemeShadow>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IThemeShadow, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Receivers(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Receivers(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElementWeakCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IThemeShadowFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IThemeShadowFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IThemeShadowFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::ThemeShadow{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrush::AlignmentX() const { + winrt::Microsoft::UI::Xaml::Media::AlignmentX value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AlignmentX(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AlignmentX(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrush::AlignmentX( + winrt::Microsoft::UI::Xaml::Media::AlignmentX const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlignmentX(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlignmentX(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrush::AlignmentY() const { + winrt::Microsoft::UI::Xaml::Media::AlignmentY value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_AlignmentY(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_AlignmentY(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrush::AlignmentY( + winrt::Microsoft::UI::Xaml::Media::AlignmentY const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AlignmentY(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AlignmentY(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrush::Stretch() const { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrush::Stretch( + winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrush>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrushFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrushFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITileBrushFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::TileBrush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrushStatics::AlignmentXProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITileBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignmentXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignmentXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrushStatics::AlignmentYProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITileBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AlignmentYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AlignmentYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITileBrushStatics::StretchProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITileBrushStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITileBrushStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITransformGroup::Children() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITransformGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITransformGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Children(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Children(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::TransformCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITransformGroup::Children( + winrt::Microsoft::UI::Xaml::Media::TransformCollection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITransformGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITransformGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Children(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Children(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ITransformGroup::Value() const { + winrt::Microsoft::UI::Xaml::Media::Matrix value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::ITransformGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITransformGroup, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITransformGroupStatics< + D>::ChildrenProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITransformGroupStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChildrenProperty(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_ChildrenProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITranslateTransform::X() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_X(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_X(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITranslateTransform::X( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_X(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_X(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ITranslateTransform::Y() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Y(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Y(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITranslateTransform::Y( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITranslateTransform, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Y(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Y(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_ITranslateTransformStatics::XProperty() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITranslateTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_ITranslateTransformStatics::YProperty() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::ITranslateTransformStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_YProperty(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_YProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics:: + FindElementsInHostCoordinates( + winrt::Windows::Foundation::Point const& intersectingPoint, + winrt::Microsoft::UI::Xaml::UIElement const& subtree) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindElementsInHostCoordinatesPoint( + impl::bind_in(intersectingPoint), *(void**)(&subtree), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->FindElementsInHostCoordinatesPoint( + impl::bind_in(intersectingPoint), *(void**)(&subtree), &result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::UIElement>{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics:: + FindElementsInHostCoordinates( + winrt::Windows::Foundation::Rect const& intersectingRect, + winrt::Microsoft::UI::Xaml::UIElement const& subtree) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindElementsInHostCoordinatesRect( + impl::bind_in(intersectingRect), *(void**)(&subtree), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->FindElementsInHostCoordinatesRect( + impl::bind_in(intersectingRect), *(void**)(&subtree), &result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::UIElement>{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics:: + FindElementsInHostCoordinates( + winrt::Windows::Foundation::Point const& intersectingPoint, + winrt::Microsoft::UI::Xaml::UIElement const& subtree, + bool includeAllElements) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindAllElementsInHostCoordinatesPoint( + impl::bind_in(intersectingPoint), *(void**)(&subtree), + includeAllElements, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->FindAllElementsInHostCoordinatesPoint( + impl::bind_in(intersectingPoint), *(void**)(&subtree), + includeAllElements, &result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::UIElement>{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics:: + FindElementsInHostCoordinates( + winrt::Windows::Foundation::Rect const& intersectingRect, + winrt::Microsoft::UI::Xaml::UIElement const& subtree, + bool includeAllElements) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindAllElementsInHostCoordinatesRect( + impl::bind_in(intersectingRect), *(void**)(&subtree), + includeAllElements, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->FindAllElementsInHostCoordinatesRect( + impl::bind_in(intersectingRect), *(void**)(&subtree), + includeAllElements, &result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::UIElement>{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics::GetChild( + winrt::Microsoft::UI::Xaml::DependencyObject const& reference, + int32_t childIndex) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetChild(*(void**)(&reference), childIndex, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult( + _winrt_abi_type->GetChild(*(void**)(&reference), childIndex, &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics< + D>::GetChildrenCount(winrt::Microsoft::UI::Xaml::DependencyObject const& + reference) const { + int32_t result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetChildrenCount(*(void**)(&reference), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult( + _winrt_abi_type->GetChildrenCount(*(void**)(&reference), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics::GetParent( + winrt::Microsoft::UI::Xaml::DependencyObject const& reference) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetParent(*(void**)(&reference), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->GetParent(*(void**)(&reference), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics< + D>::DisconnectChildrenRecursive(winrt::Microsoft::UI::Xaml::UIElement const& + element) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->DisconnectChildrenRecursive(*(void**)(&element))); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult( + _winrt_abi_type->DisconnectChildrenRecursive(*(void**)(&element))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics::GetOpenPopups( + winrt::Microsoft::UI::Xaml::Window const& window) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOpenPopups(*(void**)(&window), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->GetOpenPopups(*(void**)(&window), &result)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Xaml::Controls::Primitives::Popup>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IVisualTreeHelperStatics< + D>::GetOpenPopupsForXamlRoot(winrt::Microsoft::UI::Xaml::XamlRoot const& + xamlRoot) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetOpenPopupsForXamlRoot( + *(void**)(&xamlRoot), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics>**)this; + check_hresult(_winrt_abi_type->GetOpenPopupsForXamlRoot( + *(void**)(&xamlRoot), &result)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Xaml::Controls::Primitives::Popup>{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBase< + D>::FallbackColor() const { + winrt::Windows::UI::Color value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackColor(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBase< + D>::FallbackColor(winrt::Windows::UI::Color const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBase, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FallbackColor(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBaseFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::XamlCompositionBrushBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBaseOverrides< + D>::OnConnected() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnConnected()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnConnected()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBaseOverrides< + D>::OnDisconnected() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDisconnected()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDisconnected()); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBaseProtected< + D>::CompositionBrush() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositionBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositionBrush(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBaseProtected:: + CompositionBrush(winrt::Microsoft::UI::Composition::CompositionBrush const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CompositionBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CompositionBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlCompositionBrushBaseStatics< + D>::FallbackColorProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FallbackColorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FallbackColorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Media::XamlLight{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightOverrides::GetId() const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetId(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetId(&result)); + } + return hstring{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightOverrides::OnConnected( + winrt::Microsoft::UI::Xaml::UIElement const& newElement) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnConnected(*(void**)(&newElement))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnConnected(*(void**)(&newElement))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightOverrides::OnDisconnected( + winrt::Microsoft::UI::Xaml::UIElement const& oldElement) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDisconnected(*(void**)(&oldElement))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDisconnected(*(void**)(&oldElement))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightProtected::CompositionLight() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositionLight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositionLight(&value)); + } + return winrt::Microsoft::UI::Composition::CompositionLight{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightProtected::CompositionLight( + winrt::Microsoft::UI::Composition::CompositionLight const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CompositionLight(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CompositionLight(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightStatics::AddTargetElement( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::UIElement const& element) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddTargetElement(*(void**)(&lightId), + *(void**)(&element))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddTargetElement(*(void**)(&lightId), + *(void**)(&element))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightStatics::RemoveTargetElement( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::UIElement const& element) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveTargetElement(*(void**)(&lightId), + *(void**)(&element))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveTargetElement(*(void**)(&lightId), + *(void**)(&element))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightStatics::AddTargetBrush( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::Media::Brush const& brush) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddTargetBrush(*(void**)(&lightId), + *(void**)(&brush))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddTargetBrush(*(void**)(&lightId), + *(void**)(&brush))); + } +} +template +auto consume_Microsoft_UI_Xaml_Media_IXamlLightStatics::RemoveTargetBrush( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::Media::Brush const& brush) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Media::IXamlLightStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveTargetBrush(*(void**)(&lightId), + *(void**)(&brush))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveTargetBrush(*(void**)(&lightId), + *(void**)(&brush))); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TintColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TintColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintOpacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TintOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintOpacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintOpacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintTransitionDuration(int64_t* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TintTransitionDuration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintTransitionDuration(int64_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().TintTransitionDuration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlwaysUseFallback(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AlwaysUseFallback()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AlwaysUseFallback(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AlwaysUseFallback(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TintLuminosityOpacity(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().TintLuminosityOpacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TintLuminosityOpacity(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TintLuminosityOpacity( + *reinterpret_cast< + winrt::Windows::Foundation::IReference const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TintColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TintColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintOpacityProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TintOpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TintTransitionDurationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TintTransitionDurationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlwaysUseFallbackProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlwaysUseFallbackProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TintLuminosityOpacityProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TintLuminosityOpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Point( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Size( + winrt::Windows::Foundation::Size value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Size( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngle(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationAngle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAngle(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAngle(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsLargeArc(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLargeArc()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsLargeArc(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsLargeArc(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SweepDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SweepDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SweepDirection(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SweepDirection( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SweepDirection const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SizeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SizeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAngleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationAngleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsLargeArcProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsLargeArcProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SweepDirectionProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SweepDirectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Point1( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point1( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point1( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Point2( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point2()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point2( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point2( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Point3( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point3()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point3( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point3( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Point1Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Point1Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Point2Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Point2Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Point3Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Point3Property()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Opacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Opacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Opacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Opacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Transform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Transform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Transform(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Transform( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RelativeTransform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RelativeTransform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RelativeTransform(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RelativeTransform( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall PopulatePropertyInfoOverride( + void* propertyName, void* animationPropertyInfo) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PopulatePropertyInfoOverride( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const*>( + &animationPropertyInfo)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OpacityProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RelativeTransformProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RelativeTransformProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SkewX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SkewX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SkewX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SkewX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SkewY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().SkewY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SkewY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SkewY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Rotation(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Rotation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Rotation(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Rotation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TranslateX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslateX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslateX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TranslateY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslateY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslateY(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ICompositeTransformStatics> { + int32_t __stdcall get_CenterXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SkewXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SkewXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SkewYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SkewYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TranslateXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslateYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TranslateYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics> { + int32_t __stdcall add_Rendering(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Rendering( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Rendering(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Rendering( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Rendered(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Rendered( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Rendered(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Rendered(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SurfaceContentsLost( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SurfaceContentsLost( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SurfaceContentsLost( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SurfaceContentsLost( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall GetCompositorForCurrentThread(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCompositorForCurrentThread()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IDesktopAcrylicBackdropFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::IDesktopAcrylicBackdropFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::DesktopAcrylicBackdrop>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Center( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Center()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Center( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Center( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RadiusX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RadiusX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RadiusX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RadiusY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RadiusY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RadiusY(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RadiusXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RadiusYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithName(void* familyName, + void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithName( + *reinterpret_cast(&familyName), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_XamlAutoFontFamily(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XamlAutoFontFamily()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Inverse(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Inverse()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TransformPoint( + winrt::Windows::Foundation::Point point, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().TransformPoint( + *reinterpret_cast( + &point))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryTransform(winrt::Windows::Foundation::Point inPoint, + winrt::Windows::Foundation::Point* outPoint, + bool* returnValue) noexcept final try { + zero_abi(outPoint); + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().TryTransform( + *reinterpret_cast(&inPoint), + *reinterpret_cast(outPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TransformBounds( + winrt::Windows::Foundation::Rect rect, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().TransformBounds( + *reinterpret_cast(&rect))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransformFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides> { + int32_t __stdcall get_InverseCore(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InverseCore()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryTransformCore( + winrt::Windows::Foundation::Point inPoint, + winrt::Windows::Foundation::Point* outPoint, + bool* returnValue) noexcept final try { + zero_abi(outPoint); + typename D::abi_guard guard(this->shim()); + *returnValue = detach_from(this->shim().TryTransformCore( + *reinterpret_cast(&inPoint), + *reinterpret_cast(outPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TransformBoundsCore( + winrt::Windows::Foundation::Rect rect, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().TransformBoundsCore( + *reinterpret_cast(&rect))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Transform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Transform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Transform(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Transform( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Bounds( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Bounds()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRule(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRule()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FillRule(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillRule( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Children(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Children()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Children(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Children( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::GeometryCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRuleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChildrenProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ChildrenProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Empty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Empty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StandardFlatteningTolerance( + double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StandardFlatteningTolerance()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SpreadMethod(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SpreadMethod()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpreadMethod(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpreadMethod( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::GradientSpreadMethod const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MappingMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MappingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MappingMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MappingMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::BrushMappingMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColorInterpolationMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ColorInterpolationMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ColorInterpolationMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ColorInterpolationMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::ColorInterpolationMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GradientStops(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().GradientStops()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GradientStops(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GradientStops( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::GradientStopCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SpreadMethodProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SpreadMethodProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MappingModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MappingModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ColorInterpolationModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorInterpolationModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GradientStopsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GradientStopsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Offset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Offset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Offset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Offset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OffsetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ImageSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ImageSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ImageSource(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ImageSource( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::ImageSource const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_ImageFailed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ImageFailed( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ImageFailed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ImageFailed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ImageOpened(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ImageOpened( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ImageOpened( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ImageOpened( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ImageSourceProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ImageSourceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_StartPoint( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StartPoint( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartPoint( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EndPoint( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().EndPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EndPoint( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EndPoint( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_StartPointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EndPointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EndPointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Point( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_StartPoint( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StartPoint( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartPoint( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EndPoint( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().EndPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EndPoint( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EndPoint( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrushFactory> { + int32_t __stdcall CreateInstanceWithGradientStopCollectionAndAngle( + void* gradientStopCollection, double angle, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CreateInstanceWithGradientStopCollectionAndAngle( + *reinterpret_cast( + &gradientStopCollection), + angle)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ILinearGradientBrushStatics> { + int32_t __stdcall get_StartPointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_EndPointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EndPointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSourceLoadCompletedEventArgs> + : produce_base { + int32_t __stdcall get_Status(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::LoadedImageSourceLoadStatus>( + this->shim().Status()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DecodedPhysicalSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DecodedPhysicalSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DecodedSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DecodedSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NaturalSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NaturalSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_LoadCompleted(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LoadCompleted( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LoadCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LoadCompleted( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ILoadedImageSurfaceStatics> { + int32_t __stdcall StartLoadFromUriWithSize( + void* uri, winrt::Windows::Foundation::Size desiredMaxSize, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().StartLoadFromUri( + *reinterpret_cast(&uri), + *reinterpret_cast( + &desiredMaxSize))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartLoadFromUri(void* uri, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().StartLoadFromUri( + *reinterpret_cast( + &uri))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartLoadFromStreamWithSize( + void* stream, winrt::Windows::Foundation::Size desiredMaxSize, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().StartLoadFromStream( + *reinterpret_cast(&stream), + *reinterpret_cast( + &desiredMaxSize))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartLoadFromStream(void* stream, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from( + this->shim().StartLoadFromStream( + *reinterpret_cast(&stream))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ProjectionMatrix( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProjectionMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProjectionMatrix( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D value) noexcept + final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProjectionMatrix( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IMatrix3DProjectionStatics> { + int32_t __stdcall get_ProjectionMatrixProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProjectionMatrixProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Identity( + struct struct_Microsoft_UI_Xaml_Media_Matrix* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Identity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromElements( + double m11, double m12, double m21, double m22, double offsetX, + double offsetY, + struct struct_Microsoft_UI_Xaml_Media_Matrix* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromElements(m11, m12, m21, m22, offsetX, offsetY)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsIdentity( + struct struct_Microsoft_UI_Xaml_Media_Matrix target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsIdentity( + *reinterpret_cast( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Transform( + struct struct_Microsoft_UI_Xaml_Media_Matrix target, + winrt::Windows::Foundation::Point point, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().Transform( + *reinterpret_cast( + &target), + *reinterpret_cast( + &point))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Matrix( + struct struct_Microsoft_UI_Xaml_Media_Matrix* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Matrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Matrix( + struct struct_Microsoft_UI_Xaml_Media_Matrix value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Matrix( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MatrixProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MatrixProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetThumbnailImage(void* source) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetThumbnailImage( + *reinterpret_cast< + winrt::Windows::Storage::Streams::IInputStream const*>(&source)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDeferral(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Kind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Composition::SystemBackdrops::MicaKind>( + this->shim().Kind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Kind(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Kind( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KindProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KindProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Segments(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Segments()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Segments(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Segments( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PathSegmentCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StartPoint( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StartPoint( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartPoint( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsClosed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsClosed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsClosed(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsClosed(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsFilled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsFilled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsFilled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsFilled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SegmentsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SegmentsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StartPointProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StartPointProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsClosedProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsClosedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsFilledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsFilledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRule(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRule()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FillRule(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillRule( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Figures(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Figures()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Figures(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Figures( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PathFigureCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRuleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FiguresProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FiguresProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_LocalOffsetX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LocalOffsetX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LocalOffsetX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LocalOffsetX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalOffsetY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LocalOffsetY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LocalOffsetY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LocalOffsetY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalOffsetZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().LocalOffsetZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LocalOffsetZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LocalOffsetZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RotationZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterOfRotationX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterOfRotationX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterOfRotationX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterOfRotationX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterOfRotationY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterOfRotationY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterOfRotationY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterOfRotationY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterOfRotationZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterOfRotationZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterOfRotationZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterOfRotationZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalOffsetX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlobalOffsetX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GlobalOffsetX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GlobalOffsetX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalOffsetY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlobalOffsetY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GlobalOffsetY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GlobalOffsetY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalOffsetZ(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().GlobalOffsetZ()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GlobalOffsetZ(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GlobalOffsetZ(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProjectionMatrix( + struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* value) noexcept + final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProjectionMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_LocalOffsetXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalOffsetXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalOffsetYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalOffsetYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LocalOffsetZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LocalOffsetZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterOfRotationXProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterOfRotationXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterOfRotationYProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterOfRotationYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterOfRotationZProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterOfRotationZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalOffsetXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GlobalOffsetXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalOffsetYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GlobalOffsetYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GlobalOffsetZProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GlobalOffsetZProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProjectionMatrixProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProjectionMatrixProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Points(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Points()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Points(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Points( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IPolyBezierSegmentStatics> { + int32_t __stdcall get_PointsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Points(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Points()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Points(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Points( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PointsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IPolyQuadraticBezierSegment> { + int32_t __stdcall get_Points(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Points()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Points(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Points( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IPolyQuadraticBezierSegmentStatics> + : produce_base { + int32_t __stdcall get_PointsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Point1( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point1( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point1( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Point2( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Point2()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Point2( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Point2( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegmentStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::IQuadraticBezierSegmentStatics> { + int32_t __stdcall get_Point1Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Point1Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Point2Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Point2Property()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Center( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Center()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Center( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Center( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RadiusX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RadiusX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RadiusX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RadiusY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RadiusY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RadiusY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GradientOrigin( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GradientOrigin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GradientOrigin( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GradientOrigin( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MappingMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MappingMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MappingMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MappingMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::BrushMappingMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InterpolationSpace(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().InterpolationSpace()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_InterpolationSpace(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InterpolationSpace( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionColorSpace const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpreadMethod(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().SpreadMethod()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpreadMethod(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpreadMethod( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::GradientSpreadMethod const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GradientStops(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from>( + this->shim().GradientStops()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::RadialGradientBrush>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrushStatics> { + int32_t __stdcall get_CenterProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RadiusXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RadiusYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GradientOriginProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GradientOriginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_InterpolationSpaceProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().InterpolationSpaceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MappingModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MappingModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpreadMethodProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SpreadMethodProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Rect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Rect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Rect( + winrt::Windows::Foundation::Rect value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Rect( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IRectangleGeometryStatics> { + int32_t __stdcall get_RectProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RectProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FrameDuration(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FrameDuration()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RenderingTime(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RenderingTime()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Angle(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Angle()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Angle(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Angle(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AngleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AngleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ScaleY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleY(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CenterY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterY(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AngleX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AngleX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AngleX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AngleX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AngleY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AngleY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AngleY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AngleY(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CenterXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AngleXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AngleXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AngleYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AngleYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Color( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Color()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Color( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Color( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithColor( + struct struct_Windows_UI_Color color, void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithColor( + *reinterpret_cast(&color))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetDefaultSystemBackdropConfiguration( + void* target, void* xamlRoot, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDefaultSystemBackdropConfiguration( + *reinterpret_cast( + &target), + *reinterpret_cast( + &xamlRoot))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides> { + int32_t __stdcall OnTargetConnected(void* connectedTarget, + void* xamlRoot) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnTargetConnected( + *reinterpret_cast( + &connectedTarget), + *reinterpret_cast( + &xamlRoot)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnTargetDisconnected( + void* disconnectedTarget) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnTargetDisconnected( + *reinterpret_cast( + &disconnectedTarget)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnDefaultSystemBackdropConfigurationChanged( + void* target, void* xamlRoot) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnDefaultSystemBackdropConfigurationChanged( + *reinterpret_cast( + &target), + *reinterpret_cast( + &xamlRoot)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Receivers(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Receivers()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AlignmentX(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlignmentX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AlignmentX(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AlignmentX( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlignmentY(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlignmentY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AlignmentY(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AlignmentY( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Stretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AlignmentXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlignmentXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AlignmentYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AlignmentYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StretchProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StretchProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Children(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Children()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Children(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Children( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::TransformCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Value( + struct struct_Microsoft_UI_Xaml_Media_Matrix* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ChildrenProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ChildrenProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_X(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().X()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_X(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().X(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Y(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Y()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Y(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Y(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::ITranslateTransformStatics> { + int32_t __stdcall get_XProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_YProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().YProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IVisualTreeHelperStatics> { + int32_t __stdcall FindElementsInHostCoordinatesPoint( + winrt::Windows::Foundation::Point intersectingPoint, void* subtree, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().FindElementsInHostCoordinates( + *reinterpret_cast( + &intersectingPoint), + *reinterpret_cast( + &subtree))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindElementsInHostCoordinatesRect( + winrt::Windows::Foundation::Rect intersectingRect, void* subtree, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().FindElementsInHostCoordinates( + *reinterpret_cast( + &intersectingRect), + *reinterpret_cast( + &subtree))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAllElementsInHostCoordinatesPoint( + winrt::Windows::Foundation::Point intersectingPoint, void* subtree, + bool includeAllElements, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().FindElementsInHostCoordinates( + *reinterpret_cast( + &intersectingPoint), + *reinterpret_cast( + &subtree), + includeAllElements)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindAllElementsInHostCoordinatesRect( + winrt::Windows::Foundation::Rect intersectingRect, void* subtree, + bool includeAllElements, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().FindElementsInHostCoordinates( + *reinterpret_cast( + &intersectingRect), + *reinterpret_cast( + &subtree), + includeAllElements)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetChild(void* reference, int32_t childIndex, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::DependencyObject>(this->shim().GetChild( + *reinterpret_cast( + &reference), + childIndex)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetChildrenCount(void* reference, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetChildrenCount( + *reinterpret_cast( + &reference))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetParent(void* reference, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::DependencyObject>(this->shim().GetParent( + *reinterpret_cast( + &reference))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall DisconnectChildrenRecursive(void* element) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().DisconnectChildrenRecursive( + *reinterpret_cast( + &element)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetOpenPopups(void* window, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetOpenPopups( + *reinterpret_cast( + &window))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetOpenPopupsForXamlRoot(void* xamlRoot, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetOpenPopupsForXamlRoot( + *reinterpret_cast( + &xamlRoot))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBase> { + int32_t __stdcall get_FallbackColor( + struct struct_Windows_UI_Color* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().FallbackColor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FallbackColor( + struct struct_Windows_UI_Color value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FallbackColor( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseFactory> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::XamlCompositionBrushBase>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides> + : produce_base { + int32_t __stdcall OnConnected() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnConnected(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnDisconnected() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnDisconnected(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected> + : produce_base { + int32_t __stdcall get_CompositionBrush(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CompositionBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CompositionBrush(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CompositionBrush( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionBrush const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseStatics> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseStatics> { + int32_t __stdcall get_FallbackColorProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FallbackColorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall GetId(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetId()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnConnected(void* newElement) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnConnected( + *reinterpret_cast( + &newElement)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnDisconnected(void* oldElement) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnDisconnected( + *reinterpret_cast( + &oldElement)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CompositionLight(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CompositionLight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CompositionLight(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CompositionLight( + *reinterpret_cast< + winrt::Microsoft::UI::Composition::CompositionLight const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall AddTargetElement(void* lightId, + void* element) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddTargetElement( + *reinterpret_cast(&lightId), + *reinterpret_cast( + &element)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveTargetElement(void* lightId, + void* element) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveTargetElement( + *reinterpret_cast(&lightId), + *reinterpret_cast( + &element)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddTargetBrush(void* lightId, void* brush) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().AddTargetBrush( + *reinterpret_cast(&lightId), + *reinterpret_cast( + &brush)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveTargetBrush(void* lightId, void* brush) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveTargetBrush( + *reinterpret_cast(&lightId), + *reinterpret_cast( + &brush)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Media::IBrushOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::Media::IBrushOverrides> { + auto PopulatePropertyInfoOverride( + hstring const& propertyName, + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const& + animationPropertyInfo) { + if (auto overridable = this->shim_overridable()) { + return overridable.PopulatePropertyInfoOverride(propertyName, + animationPropertyInfo); + } + + return this->shim().PopulatePropertyInfoOverride(propertyName, + animationPropertyInfo); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides> { + auto InverseCore() { + if (auto overridable = this->shim_overridable()) { + return overridable.InverseCore(); + } + + return this->shim().InverseCore(); + } + auto TryTransformCore(winrt::Windows::Foundation::Point const& inPoint, + winrt::Windows::Foundation::Point& outPoint) { + if (auto overridable = this->shim_overridable()) { + return overridable.TryTransformCore(inPoint, outPoint); + } + + return this->shim().TryTransformCore(inPoint, outPoint); + } + auto TransformBoundsCore(winrt::Windows::Foundation::Rect const& rect) { + if (auto overridable = this->shim_overridable()) { + return overridable.TransformBoundsCore(rect); + } + + return this->shim().TransformBoundsCore(rect); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides> { + auto OnTargetConnected( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& connectedTarget, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnTargetConnected(connectedTarget, xamlRoot); + } + + return this->shim().OnTargetConnected(connectedTarget, xamlRoot); + } + auto OnTargetDisconnected( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& disconnectedTarget) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnTargetDisconnected(disconnectedTarget); + } + + return this->shim().OnTargetDisconnected(disconnectedTarget); + } + auto OnDefaultSystemBackdropConfigurationChanged( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& target, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnDefaultSystemBackdropConfigurationChanged(target, + xamlRoot); + } + + return this->shim().OnDefaultSystemBackdropConfigurationChanged(target, + xamlRoot); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Media:: + IXamlCompositionBrushBaseOverrides> { + auto OnConnected() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnConnected(); + } + + return this->shim().OnConnected(); + } + auto OnDisconnected() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnDisconnected(); + } + + return this->shim().OnDisconnected(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides> { + auto GetId() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetId(); + } + + return this->shim().GetId(); + } + auto OnConnected(winrt::Microsoft::UI::Xaml::UIElement const& newElement) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnConnected(newElement); + } + + return this->shim().OnConnected(newElement); + } + auto OnDisconnected(winrt::Microsoft::UI::Xaml::UIElement const& oldElement) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnDisconnected(oldElement); + } + + return this->shim().OnDisconnected(oldElement); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media { + inline AcrylicBrush::AcrylicBrush() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IAcrylicBrushFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto AcrylicBrush::TintColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAcrylicBrushStatics const&), + AcrylicBrush, IAcrylicBrushStatics>( + [](IAcrylicBrushStatics const& f) { return f.TintColorProperty(); }); + } + inline auto AcrylicBrush::TintOpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAcrylicBrushStatics const&), + AcrylicBrush, IAcrylicBrushStatics>( + [](IAcrylicBrushStatics const& f) { return f.TintOpacityProperty(); }); + } + inline auto AcrylicBrush::TintTransitionDurationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAcrylicBrushStatics const&), + AcrylicBrush, IAcrylicBrushStatics>([](IAcrylicBrushStatics const& f) { + return f.TintTransitionDurationProperty(); + }); + } + inline auto AcrylicBrush::AlwaysUseFallbackProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAcrylicBrushStatics const&), + AcrylicBrush, IAcrylicBrushStatics>([](IAcrylicBrushStatics const& f) { + return f.AlwaysUseFallbackProperty(); + }); + } + inline auto AcrylicBrush::TintLuminosityOpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAcrylicBrushStatics2 const&), + AcrylicBrush, IAcrylicBrushStatics2>( + [](IAcrylicBrushStatics2 const& f) { + return f.TintLuminosityOpacityProperty(); + }); + } + inline ArcSegment::ArcSegment() + : ArcSegment(impl::call_factory_cast< + ArcSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ArcSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ArcSegment::PointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IArcSegmentStatics const&), + ArcSegment, IArcSegmentStatics>( + [](IArcSegmentStatics const& f) { return f.PointProperty(); }); + } + inline auto ArcSegment::SizeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IArcSegmentStatics const&), + ArcSegment, IArcSegmentStatics>( + [](IArcSegmentStatics const& f) { return f.SizeProperty(); }); + } + inline auto ArcSegment::RotationAngleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IArcSegmentStatics const&), + ArcSegment, IArcSegmentStatics>( + [](IArcSegmentStatics const& f) { return f.RotationAngleProperty(); }); + } + inline auto ArcSegment::IsLargeArcProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IArcSegmentStatics const&), + ArcSegment, IArcSegmentStatics>( + [](IArcSegmentStatics const& f) { return f.IsLargeArcProperty(); }); + } + inline auto ArcSegment::SweepDirectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IArcSegmentStatics const&), + ArcSegment, IArcSegmentStatics>( + [](IArcSegmentStatics const& f) { return f.SweepDirectionProperty(); }); + } + inline BezierSegment::BezierSegment() + : BezierSegment( + impl::call_factory_cast< + BezierSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BezierSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto BezierSegment::Point1Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBezierSegmentStatics const&), + BezierSegment, IBezierSegmentStatics>( + [](IBezierSegmentStatics const& f) { return f.Point1Property(); }); + } + inline auto BezierSegment::Point2Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBezierSegmentStatics const&), + BezierSegment, IBezierSegmentStatics>( + [](IBezierSegmentStatics const& f) { return f.Point2Property(); }); + } + inline auto BezierSegment::Point3Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBezierSegmentStatics const&), + BezierSegment, IBezierSegmentStatics>( + [](IBezierSegmentStatics const& f) { return f.Point3Property(); }); + } + inline BitmapCache::BitmapCache() + : BitmapCache(impl::call_factory_cast< + BitmapCache (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BitmapCache>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Brush::OpacityProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBrushStatics const&), + Brush, IBrushStatics>( + [](IBrushStatics const& f) { return f.OpacityProperty(); }); + } + inline auto Brush::TransformProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBrushStatics const&), + Brush, IBrushStatics>( + [](IBrushStatics const& f) { return f.TransformProperty(); }); + } + inline auto Brush::RelativeTransformProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IBrushStatics const&), + Brush, IBrushStatics>( + [](IBrushStatics const& f) { return f.RelativeTransformProperty(); }); + } + inline BrushCollection::BrushCollection() + : BrushCollection( + impl::call_factory_cast< + BrushCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BrushCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline CompositeTransform::CompositeTransform() + : CompositeTransform( + impl::call_factory_cast< + CompositeTransform (*)( + winrt::Windows::Foundation::IActivationFactory const&), + CompositeTransform>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto CompositeTransform::CenterXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { + return f.CenterXProperty(); + }); + } + inline auto CompositeTransform::CenterYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { + return f.CenterYProperty(); + }); + } + inline auto CompositeTransform::ScaleXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { return f.ScaleXProperty(); }); + } + inline auto CompositeTransform::ScaleYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { return f.ScaleYProperty(); }); + } + inline auto CompositeTransform::SkewXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { return f.SkewXProperty(); }); + } + inline auto CompositeTransform::SkewYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { return f.SkewYProperty(); }); + } + inline auto CompositeTransform::RotationProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { + return f.RotationProperty(); + }); + } + inline auto CompositeTransform::TranslateXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { + return f.TranslateXProperty(); + }); + } + inline auto CompositeTransform::TranslateYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ICompositeTransformStatics const&), + CompositeTransform, ICompositeTransformStatics>( + [](ICompositeTransformStatics const& f) { + return f.TranslateYProperty(); + }); + } + inline auto CompositionTarget::Rendering( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) { + return impl::call_factory( + [&](ICompositionTargetStatics const& f) { + return f.Rendering(handler); + }); + } + inline auto CompositionTarget::Rendering( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) { + auto f = get_activation_factory< + CompositionTarget, + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics>(); + return CompositionTarget::Rendering_revoker{f, f.Rendering(handler)}; + } + inline auto CompositionTarget::Rendering(winrt::event_token const& token) { + impl::call_factory( + [&](ICompositionTargetStatics const& f) { return f.Rendering(token); }); + } + inline auto CompositionTarget::Rendered( + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Media::RenderedEventArgs> const& + handler) { + return impl::call_factory( + [&](ICompositionTargetStatics const& f) { + return f.Rendered(handler); + }); + } + inline auto CompositionTarget::Rendered( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Microsoft::UI::Xaml::Media::RenderedEventArgs> const& + handler) { + auto f = get_activation_factory< + CompositionTarget, + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics>(); + return CompositionTarget::Rendered_revoker{f, f.Rendered(handler)}; + } + inline auto CompositionTarget::Rendered(winrt::event_token const& token) { + impl::call_factory( + [&](ICompositionTargetStatics const& f) { return f.Rendered(token); }); + } + inline auto CompositionTarget::SurfaceContentsLost( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) { + return impl::call_factory( + [&](ICompositionTargetStatics const& f) { + return f.SurfaceContentsLost(handler); + }); + } + inline auto CompositionTarget::SurfaceContentsLost( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) { + auto f = get_activation_factory< + CompositionTarget, + winrt::Microsoft::UI::Xaml::Media::ICompositionTargetStatics>(); + return CompositionTarget::SurfaceContentsLost_revoker{ + f, f.SurfaceContentsLost(handler)}; + } + inline auto CompositionTarget::SurfaceContentsLost( + winrt::event_token const& token) { + impl::call_factory( + [&](ICompositionTargetStatics const& f) { + return f.SurfaceContentsLost(token); + }); + } + inline auto CompositionTarget::GetCompositorForCurrentThread() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Composition::Compositor (*)( + ICompositionTargetStatics const&), + CompositionTarget, ICompositionTargetStatics>( + [](ICompositionTargetStatics const& f) { + return f.GetCompositorForCurrentThread(); + }); + } + inline DesktopAcrylicBackdrop::DesktopAcrylicBackdrop() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDesktopAcrylicBackdropFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline DoubleCollection::DoubleCollection() + : DoubleCollection( + impl::call_factory_cast< + DoubleCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + DoubleCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline EllipseGeometry::EllipseGeometry() + : EllipseGeometry( + impl::call_factory_cast< + EllipseGeometry (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EllipseGeometry>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto EllipseGeometry::CenterProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEllipseGeometryStatics const&), + EllipseGeometry, IEllipseGeometryStatics>( + [](IEllipseGeometryStatics const& f) { return f.CenterProperty(); }); + } + inline auto EllipseGeometry::RadiusXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEllipseGeometryStatics const&), + EllipseGeometry, IEllipseGeometryStatics>( + [](IEllipseGeometryStatics const& f) { return f.RadiusXProperty(); }); + } + inline auto EllipseGeometry::RadiusYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IEllipseGeometryStatics const&), + EllipseGeometry, IEllipseGeometryStatics>( + [](IEllipseGeometryStatics const& f) { return f.RadiusYProperty(); }); + } + inline FontFamily::FontFamily(param::hstring const& familyName) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFontFamilyFactory const& f) { + return f.CreateInstanceWithName(familyName, baseInterface, + innerInterface); + }); + } + inline auto FontFamily::XamlAutoFontFamily() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Media::FontFamily (*)( + IFontFamilyStatics const&), + FontFamily, IFontFamilyStatics>( + [](IFontFamilyStatics const& f) { return f.XamlAutoFontFamily(); }); + } + inline auto Geometry::Empty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Media::Geometry (*)( + IGeometryStatics const&), + Geometry, IGeometryStatics>( + [](IGeometryStatics const& f) { return f.Empty(); }); + } + inline auto Geometry::StandardFlatteningTolerance() { + return impl::call_factory_cast( + [](IGeometryStatics const& f) { + return f.StandardFlatteningTolerance(); + }); + } + inline auto Geometry::TransformProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGeometryStatics const&), + Geometry, IGeometryStatics>( + [](IGeometryStatics const& f) { return f.TransformProperty(); }); + } + inline GeometryCollection::GeometryCollection() + : GeometryCollection( + impl::call_factory_cast< + GeometryCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + GeometryCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline GeometryGroup::GeometryGroup() + : GeometryGroup( + impl::call_factory_cast< + GeometryGroup (*)( + winrt::Windows::Foundation::IActivationFactory const&), + GeometryGroup>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto GeometryGroup::FillRuleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGeometryGroupStatics const&), + GeometryGroup, IGeometryGroupStatics>( + [](IGeometryGroupStatics const& f) { return f.FillRuleProperty(); }); + } + inline auto GeometryGroup::ChildrenProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGeometryGroupStatics const&), + GeometryGroup, IGeometryGroupStatics>( + [](IGeometryGroupStatics const& f) { return f.ChildrenProperty(); }); + } + inline auto GradientBrush::SpreadMethodProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGradientBrushStatics const&), + GradientBrush, IGradientBrushStatics>( + [](IGradientBrushStatics const& f) { + return f.SpreadMethodProperty(); + }); + } + inline auto GradientBrush::MappingModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGradientBrushStatics const&), + GradientBrush, IGradientBrushStatics>( + [](IGradientBrushStatics const& f) { return f.MappingModeProperty(); }); + } + inline auto GradientBrush::ColorInterpolationModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGradientBrushStatics const&), + GradientBrush, IGradientBrushStatics>( + [](IGradientBrushStatics const& f) { + return f.ColorInterpolationModeProperty(); + }); + } + inline auto GradientBrush::GradientStopsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGradientBrushStatics const&), + GradientBrush, IGradientBrushStatics>( + [](IGradientBrushStatics const& f) { + return f.GradientStopsProperty(); + }); + } + inline GradientStop::GradientStop() + : GradientStop(impl::call_factory_cast< + GradientStop (*)( + winrt::Windows::Foundation::IActivationFactory const&), + GradientStop>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto GradientStop::ColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGradientStopStatics const&), + GradientStop, IGradientStopStatics>( + [](IGradientStopStatics const& f) { return f.ColorProperty(); }); + } + inline auto GradientStop::OffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IGradientStopStatics const&), + GradientStop, IGradientStopStatics>( + [](IGradientStopStatics const& f) { return f.OffsetProperty(); }); + } + inline GradientStopCollection::GradientStopCollection() + : GradientStopCollection( + impl::call_factory_cast< + GradientStopCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + GradientStopCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline ImageBrush::ImageBrush() + : ImageBrush(impl::call_factory_cast< + ImageBrush (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ImageBrush>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ImageBrush::ImageSourceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IImageBrushStatics const&), + ImageBrush, IImageBrushStatics>( + [](IImageBrushStatics const& f) { return f.ImageSourceProperty(); }); + } + inline LineGeometry::LineGeometry() + : LineGeometry(impl::call_factory_cast< + LineGeometry (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LineGeometry>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto LineGeometry::StartPointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILineGeometryStatics const&), + LineGeometry, ILineGeometryStatics>( + [](ILineGeometryStatics const& f) { return f.StartPointProperty(); }); + } + inline auto LineGeometry::EndPointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILineGeometryStatics const&), + LineGeometry, ILineGeometryStatics>( + [](ILineGeometryStatics const& f) { return f.EndPointProperty(); }); + } + inline LineSegment::LineSegment() + : LineSegment(impl::call_factory_cast< + LineSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LineSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto LineSegment::PointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILineSegmentStatics const&), + LineSegment, ILineSegmentStatics>( + [](ILineSegmentStatics const& f) { return f.PointProperty(); }); + } + inline LinearGradientBrush::LinearGradientBrush() + : LinearGradientBrush( + impl::call_factory_cast< + LinearGradientBrush (*)( + winrt::Windows::Foundation::IActivationFactory const&), + LinearGradientBrush>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline LinearGradientBrush::LinearGradientBrush( + winrt::Microsoft::UI::Xaml::Media::GradientStopCollection const& + gradientStopCollection, + double angle) + : LinearGradientBrush(impl::call_factory( + [&](ILinearGradientBrushFactory const& f) { + return f.CreateInstanceWithGradientStopCollectionAndAngle( + gradientStopCollection, angle); + })) {} + inline auto LinearGradientBrush::StartPointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILinearGradientBrushStatics const&), + LinearGradientBrush, ILinearGradientBrushStatics>( + [](ILinearGradientBrushStatics const& f) { + return f.StartPointProperty(); + }); + } + inline auto LinearGradientBrush::EndPointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ILinearGradientBrushStatics const&), + LinearGradientBrush, ILinearGradientBrushStatics>( + [](ILinearGradientBrushStatics const& f) { + return f.EndPointProperty(); + }); + } + inline auto LoadedImageSurface::StartLoadFromUri( + winrt::Windows::Foundation::Uri const& uri, + winrt::Windows::Foundation::Size const& desiredMaxSize) { + return impl::call_factory( + [&](ILoadedImageSurfaceStatics const& f) { + return f.StartLoadFromUri(uri, desiredMaxSize); + }); + } + inline auto LoadedImageSurface::StartLoadFromUri( + winrt::Windows::Foundation::Uri const& uri) { + return impl::call_factory( + [&](ILoadedImageSurfaceStatics const& f) { + return f.StartLoadFromUri(uri); + }); + } + inline auto LoadedImageSurface::StartLoadFromStream( + winrt::Windows::Storage::Streams::IRandomAccessStream const& stream, + winrt::Windows::Foundation::Size const& desiredMaxSize) { + return impl::call_factory( + [&](ILoadedImageSurfaceStatics const& f) { + return f.StartLoadFromStream(stream, desiredMaxSize); + }); + } + inline auto LoadedImageSurface::StartLoadFromStream( + winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) { + return impl::call_factory( + [&](ILoadedImageSurfaceStatics const& f) { + return f.StartLoadFromStream(stream); + }); + } + inline Matrix3DProjection::Matrix3DProjection() + : Matrix3DProjection( + impl::call_factory_cast< + Matrix3DProjection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Matrix3DProjection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Matrix3DProjection::ProjectionMatrixProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IMatrix3DProjectionStatics const&), + Matrix3DProjection, IMatrix3DProjectionStatics>( + [](IMatrix3DProjectionStatics const& f) { + return f.ProjectionMatrixProperty(); + }); + } + inline auto MatrixHelper::Identity() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Media::Matrix (*)( + IMatrixHelperStatics const&), + MatrixHelper, IMatrixHelperStatics>( + [](IMatrixHelperStatics const& f) { return f.Identity(); }); + } + inline auto MatrixHelper::FromElements(double m11, double m12, double m21, + double m22, double offsetX, + double offsetY) { + return impl::call_factory( + [&](IMatrixHelperStatics const& f) { + return f.FromElements(m11, m12, m21, m22, offsetX, offsetY); + }); + } + inline auto MatrixHelper::GetIsIdentity( + winrt::Microsoft::UI::Xaml::Media::Matrix const& target) { + return impl::call_factory( + [&](IMatrixHelperStatics const& f) { return f.GetIsIdentity(target); }); + } + inline auto MatrixHelper::Transform( + winrt::Microsoft::UI::Xaml::Media::Matrix const& target, + winrt::Windows::Foundation::Point const& point) { + return impl::call_factory( + [&](IMatrixHelperStatics const& f) { + return f.Transform(target, point); + }); + } + inline MatrixTransform::MatrixTransform() + : MatrixTransform( + impl::call_factory_cast< + MatrixTransform (*)( + winrt::Windows::Foundation::IActivationFactory const&), + MatrixTransform>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto MatrixTransform::MatrixProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IMatrixTransformStatics const&), + MatrixTransform, IMatrixTransformStatics>( + [](IMatrixTransformStatics const& f) { return f.MatrixProperty(); }); + } + inline MicaBackdrop::MicaBackdrop() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IMicaBackdropFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto MicaBackdrop::KindProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IMicaBackdropStatics const&), + MicaBackdrop, IMicaBackdropStatics>( + [](IMicaBackdropStatics const& f) { return f.KindProperty(); }); + } + inline PathFigure::PathFigure() + : PathFigure(impl::call_factory_cast< + PathFigure (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PathFigure>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PathFigure::SegmentsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPathFigureStatics const&), + PathFigure, IPathFigureStatics>( + [](IPathFigureStatics const& f) { return f.SegmentsProperty(); }); + } + inline auto PathFigure::StartPointProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPathFigureStatics const&), + PathFigure, IPathFigureStatics>( + [](IPathFigureStatics const& f) { return f.StartPointProperty(); }); + } + inline auto PathFigure::IsClosedProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPathFigureStatics const&), + PathFigure, IPathFigureStatics>( + [](IPathFigureStatics const& f) { return f.IsClosedProperty(); }); + } + inline auto PathFigure::IsFilledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPathFigureStatics const&), + PathFigure, IPathFigureStatics>( + [](IPathFigureStatics const& f) { return f.IsFilledProperty(); }); + } + inline PathFigureCollection::PathFigureCollection() + : PathFigureCollection( + impl::call_factory_cast< + PathFigureCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PathFigureCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PathGeometry::PathGeometry() + : PathGeometry(impl::call_factory_cast< + PathGeometry (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PathGeometry>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PathGeometry::FillRuleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPathGeometryStatics const&), + PathGeometry, IPathGeometryStatics>( + [](IPathGeometryStatics const& f) { return f.FillRuleProperty(); }); + } + inline auto PathGeometry::FiguresProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPathGeometryStatics const&), + PathGeometry, IPathGeometryStatics>( + [](IPathGeometryStatics const& f) { return f.FiguresProperty(); }); + } + inline PathSegmentCollection::PathSegmentCollection() + : PathSegmentCollection( + impl::call_factory_cast< + PathSegmentCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PathSegmentCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PlaneProjection::PlaneProjection() + : PlaneProjection( + impl::call_factory_cast< + PlaneProjection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PlaneProjection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PlaneProjection::LocalOffsetXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.LocalOffsetXProperty(); + }); + } + inline auto PlaneProjection::LocalOffsetYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.LocalOffsetYProperty(); + }); + } + inline auto PlaneProjection::LocalOffsetZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.LocalOffsetZProperty(); + }); + } + inline auto PlaneProjection::RotationXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { return f.RotationXProperty(); }); + } + inline auto PlaneProjection::RotationYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { return f.RotationYProperty(); }); + } + inline auto PlaneProjection::RotationZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { return f.RotationZProperty(); }); + } + inline auto PlaneProjection::CenterOfRotationXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.CenterOfRotationXProperty(); + }); + } + inline auto PlaneProjection::CenterOfRotationYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.CenterOfRotationYProperty(); + }); + } + inline auto PlaneProjection::CenterOfRotationZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.CenterOfRotationZProperty(); + }); + } + inline auto PlaneProjection::GlobalOffsetXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.GlobalOffsetXProperty(); + }); + } + inline auto PlaneProjection::GlobalOffsetYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.GlobalOffsetYProperty(); + }); + } + inline auto PlaneProjection::GlobalOffsetZProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.GlobalOffsetZProperty(); + }); + } + inline auto PlaneProjection::ProjectionMatrixProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPlaneProjectionStatics const&), + PlaneProjection, IPlaneProjectionStatics>( + [](IPlaneProjectionStatics const& f) { + return f.ProjectionMatrixProperty(); + }); + } + inline PointCollection::PointCollection() + : PointCollection( + impl::call_factory_cast< + PointCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PointCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PolyBezierSegment::PolyBezierSegment() + : PolyBezierSegment( + impl::call_factory_cast< + PolyBezierSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PolyBezierSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PolyBezierSegment::PointsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolyBezierSegmentStatics const&), + PolyBezierSegment, IPolyBezierSegmentStatics>( + [](IPolyBezierSegmentStatics const& f) { return f.PointsProperty(); }); + } + inline PolyLineSegment::PolyLineSegment() + : PolyLineSegment( + impl::call_factory_cast< + PolyLineSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PolyLineSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto PolyLineSegment::PointsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolyLineSegmentStatics const&), + PolyLineSegment, IPolyLineSegmentStatics>( + [](IPolyLineSegmentStatics const& f) { return f.PointsProperty(); }); + } + inline PolyQuadraticBezierSegment::PolyQuadraticBezierSegment() + : PolyQuadraticBezierSegment( + impl::call_factory_cast< + PolyQuadraticBezierSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PolyQuadraticBezierSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f + .template ActivateInstance(); + })) {} + inline auto PolyQuadraticBezierSegment::PointsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolyQuadraticBezierSegmentStatics const&), + PolyQuadraticBezierSegment, IPolyQuadraticBezierSegmentStatics>( + [](IPolyQuadraticBezierSegmentStatics const& f) { + return f.PointsProperty(); + }); + } + inline QuadraticBezierSegment::QuadraticBezierSegment() + : QuadraticBezierSegment( + impl::call_factory_cast< + QuadraticBezierSegment (*)( + winrt::Windows::Foundation::IActivationFactory const&), + QuadraticBezierSegment>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto QuadraticBezierSegment::Point1Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IQuadraticBezierSegmentStatics const&), + QuadraticBezierSegment, IQuadraticBezierSegmentStatics>( + [](IQuadraticBezierSegmentStatics const& f) { + return f.Point1Property(); + }); + } + inline auto QuadraticBezierSegment::Point2Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IQuadraticBezierSegmentStatics const&), + QuadraticBezierSegment, IQuadraticBezierSegmentStatics>( + [](IQuadraticBezierSegmentStatics const& f) { + return f.Point2Property(); + }); + } + inline RadialGradientBrush::RadialGradientBrush() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = + impl::call_factory( + [&](IRadialGradientBrushFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto RadialGradientBrush::CenterProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.CenterProperty(); + }); + } + inline auto RadialGradientBrush::RadiusXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.RadiusXProperty(); + }); + } + inline auto RadialGradientBrush::RadiusYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.RadiusYProperty(); + }); + } + inline auto RadialGradientBrush::GradientOriginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.GradientOriginProperty(); + }); + } + inline auto RadialGradientBrush::InterpolationSpaceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.InterpolationSpaceProperty(); + }); + } + inline auto RadialGradientBrush::MappingModeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.MappingModeProperty(); + }); + } + inline auto RadialGradientBrush::SpreadMethodProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRadialGradientBrushStatics const&), + RadialGradientBrush, IRadialGradientBrushStatics>( + [](IRadialGradientBrushStatics const& f) { + return f.SpreadMethodProperty(); + }); + } + inline RectangleGeometry::RectangleGeometry() + : RectangleGeometry( + impl::call_factory_cast< + RectangleGeometry (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RectangleGeometry>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto RectangleGeometry::RectProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRectangleGeometryStatics const&), + RectangleGeometry, IRectangleGeometryStatics>( + [](IRectangleGeometryStatics const& f) { return f.RectProperty(); }); + } + inline RotateTransform::RotateTransform() + : RotateTransform( + impl::call_factory_cast< + RotateTransform (*)( + winrt::Windows::Foundation::IActivationFactory const&), + RotateTransform>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto RotateTransform::CenterXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRotateTransformStatics const&), + RotateTransform, IRotateTransformStatics>( + [](IRotateTransformStatics const& f) { return f.CenterXProperty(); }); + } + inline auto RotateTransform::CenterYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRotateTransformStatics const&), + RotateTransform, IRotateTransformStatics>( + [](IRotateTransformStatics const& f) { return f.CenterYProperty(); }); + } + inline auto RotateTransform::AngleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRotateTransformStatics const&), + RotateTransform, IRotateTransformStatics>( + [](IRotateTransformStatics const& f) { return f.AngleProperty(); }); + } + inline ScaleTransform::ScaleTransform() + : ScaleTransform( + impl::call_factory_cast< + ScaleTransform (*)( + winrt::Windows::Foundation::IActivationFactory const&), + ScaleTransform>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto ScaleTransform::CenterXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScaleTransformStatics const&), + ScaleTransform, IScaleTransformStatics>( + [](IScaleTransformStatics const& f) { return f.CenterXProperty(); }); + } + inline auto ScaleTransform::CenterYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScaleTransformStatics const&), + ScaleTransform, IScaleTransformStatics>( + [](IScaleTransformStatics const& f) { return f.CenterYProperty(); }); + } + inline auto ScaleTransform::ScaleXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScaleTransformStatics const&), + ScaleTransform, IScaleTransformStatics>( + [](IScaleTransformStatics const& f) { return f.ScaleXProperty(); }); + } + inline auto ScaleTransform::ScaleYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IScaleTransformStatics const&), + ScaleTransform, IScaleTransformStatics>( + [](IScaleTransformStatics const& f) { return f.ScaleYProperty(); }); + } + inline SkewTransform::SkewTransform() + : SkewTransform( + impl::call_factory_cast< + SkewTransform (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SkewTransform>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SkewTransform::CenterXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISkewTransformStatics const&), + SkewTransform, ISkewTransformStatics>( + [](ISkewTransformStatics const& f) { return f.CenterXProperty(); }); + } + inline auto SkewTransform::CenterYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISkewTransformStatics const&), + SkewTransform, ISkewTransformStatics>( + [](ISkewTransformStatics const& f) { return f.CenterYProperty(); }); + } + inline auto SkewTransform::AngleXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISkewTransformStatics const&), + SkewTransform, ISkewTransformStatics>( + [](ISkewTransformStatics const& f) { return f.AngleXProperty(); }); + } + inline auto SkewTransform::AngleYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISkewTransformStatics const&), + SkewTransform, ISkewTransformStatics>( + [](ISkewTransformStatics const& f) { return f.AngleYProperty(); }); + } + inline SolidColorBrush::SolidColorBrush() + : SolidColorBrush( + impl::call_factory_cast< + SolidColorBrush (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SolidColorBrush>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline SolidColorBrush::SolidColorBrush( + winrt::Windows::UI::Color const& color) + : SolidColorBrush( + impl::call_factory( + [&](ISolidColorBrushFactory const& f) { + return f.CreateInstanceWithColor(color); + })) {} + inline auto SolidColorBrush::ColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ISolidColorBrushStatics const&), + SolidColorBrush, ISolidColorBrushStatics>( + [](ISolidColorBrushStatics const& f) { return f.ColorProperty(); }); + } + inline ThemeShadow::ThemeShadow() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IThemeShadowFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto TileBrush::AlignmentXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITileBrushStatics const&), + TileBrush, ITileBrushStatics>( + [](ITileBrushStatics const& f) { return f.AlignmentXProperty(); }); + } + inline auto TileBrush::AlignmentYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITileBrushStatics const&), + TileBrush, ITileBrushStatics>( + [](ITileBrushStatics const& f) { return f.AlignmentYProperty(); }); + } + inline auto TileBrush::StretchProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITileBrushStatics const&), + TileBrush, ITileBrushStatics>( + [](ITileBrushStatics const& f) { return f.StretchProperty(); }); + } + inline TransformCollection::TransformCollection() + : TransformCollection( + impl::call_factory_cast< + TransformCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TransformCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline TransformGroup::TransformGroup() + : TransformGroup( + impl::call_factory_cast< + TransformGroup (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TransformGroup>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto TransformGroup::ChildrenProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITransformGroupStatics const&), + TransformGroup, ITransformGroupStatics>( + [](ITransformGroupStatics const& f) { return f.ChildrenProperty(); }); + } + inline TranslateTransform::TranslateTransform() + : TranslateTransform( + impl::call_factory_cast< + TranslateTransform (*)( + winrt::Windows::Foundation::IActivationFactory const&), + TranslateTransform>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto TranslateTransform::XProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITranslateTransformStatics const&), + TranslateTransform, ITranslateTransformStatics>( + [](ITranslateTransformStatics const& f) { return f.XProperty(); }); + } + inline auto TranslateTransform::YProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + ITranslateTransformStatics const&), + TranslateTransform, ITranslateTransformStatics>( + [](ITranslateTransformStatics const& f) { return f.YProperty(); }); + } + inline auto VisualTreeHelper::FindElementsInHostCoordinates( + winrt::Windows::Foundation::Point const& intersectingPoint, + winrt::Microsoft::UI::Xaml::UIElement const& subtree) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.FindElementsInHostCoordinates(intersectingPoint, subtree); + }); + } + inline auto VisualTreeHelper::FindElementsInHostCoordinates( + winrt::Windows::Foundation::Rect const& intersectingRect, + winrt::Microsoft::UI::Xaml::UIElement const& subtree) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.FindElementsInHostCoordinates(intersectingRect, subtree); + }); + } + inline auto VisualTreeHelper::FindElementsInHostCoordinates( + winrt::Windows::Foundation::Point const& intersectingPoint, + winrt::Microsoft::UI::Xaml::UIElement const& subtree, + bool includeAllElements) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.FindElementsInHostCoordinates(intersectingPoint, subtree, + includeAllElements); + }); + } + inline auto VisualTreeHelper::FindElementsInHostCoordinates( + winrt::Windows::Foundation::Rect const& intersectingRect, + winrt::Microsoft::UI::Xaml::UIElement const& subtree, + bool includeAllElements) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.FindElementsInHostCoordinates(intersectingRect, subtree, + includeAllElements); + }); + } + inline auto VisualTreeHelper::GetChild( + winrt::Microsoft::UI::Xaml::DependencyObject const& reference, + int32_t childIndex) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.GetChild(reference, childIndex); + }); + } + inline auto VisualTreeHelper::GetChildrenCount( + winrt::Microsoft::UI::Xaml::DependencyObject const& reference) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.GetChildrenCount(reference); + }); + } + inline auto VisualTreeHelper::GetParent( + winrt::Microsoft::UI::Xaml::DependencyObject const& reference) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.GetParent(reference); + }); + } + inline auto VisualTreeHelper::DisconnectChildrenRecursive( + winrt::Microsoft::UI::Xaml::UIElement const& element) { + impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.DisconnectChildrenRecursive(element); + }); + } + inline auto VisualTreeHelper::GetOpenPopups( + winrt::Microsoft::UI::Xaml::Window const& window) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.GetOpenPopups(window); + }); + } + inline auto VisualTreeHelper::GetOpenPopupsForXamlRoot( + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) { + return impl::call_factory( + [&](IVisualTreeHelperStatics const& f) { + return f.GetOpenPopupsForXamlRoot(xamlRoot); + }); + } + inline auto XamlCompositionBrushBase::FallbackColorProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IXamlCompositionBrushBaseStatics const&), + XamlCompositionBrushBase, IXamlCompositionBrushBaseStatics>( + [](IXamlCompositionBrushBaseStatics const& f) { + return f.FallbackColorProperty(); + }); + } + inline XamlLight::XamlLight() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IXamlLightFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto XamlLight::AddTargetElement( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::UIElement const& element) { + impl::call_factory( + [&](IXamlLightStatics const& f) { + return f.AddTargetElement(lightId, element); + }); + } + inline auto XamlLight::RemoveTargetElement( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::UIElement const& element) { + impl::call_factory( + [&](IXamlLightStatics const& f) { + return f.RemoveTargetElement(lightId, element); + }); + } + inline auto XamlLight::AddTargetBrush( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::Media::Brush const& brush) { + impl::call_factory( + [&](IXamlLightStatics const& f) { + return f.AddTargetBrush(lightId, brush); + }); + } + inline auto XamlLight::RemoveTargetBrush( + param::hstring const& lightId, + winrt::Microsoft::UI::Xaml::Media::Brush const& brush) { + impl::call_factory( + [&](IXamlLightStatics const& f) { + return f.RemoveTargetBrush(lightId, brush); + }); + } + template + auto IBrushOverridesT::PopulatePropertyInfoOverride( + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const& + animationPropertyInfo) const { + return shim() + .template try_as() + .PopulatePropertyInfoOverride(propertyName, animationPropertyInfo); + } + template + auto IGeneralTransformOverridesT::InverseCore() const { + return shim().template try_as().InverseCore(); + } + template + auto IGeneralTransformOverridesT::TryTransformCore( + winrt::Windows::Foundation::Point const& inPoint, + winrt::Windows::Foundation::Point& outPoint) const { + return shim() + .template try_as() + .TryTransformCore(inPoint, outPoint); + } + template + auto IGeneralTransformOverridesT::TransformBoundsCore( + winrt::Windows::Foundation::Rect const& rect) const { + return shim() + .template try_as() + .TransformBoundsCore(rect); + } + template + auto ISystemBackdropOverridesT::OnTargetConnected( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& connectedTarget, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) const { + return shim().template try_as().OnTargetConnected( + connectedTarget, xamlRoot); + } + template + auto ISystemBackdropOverridesT::OnTargetDisconnected( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& disconnectedTarget) const { + return shim() + .template try_as() + .OnTargetDisconnected(disconnectedTarget); + } + template + auto + ISystemBackdropOverridesT::OnDefaultSystemBackdropConfigurationChanged( + winrt::Microsoft::UI::Composition:: + ICompositionSupportsSystemBackdrop const& target, + winrt::Microsoft::UI::Xaml::XamlRoot const& xamlRoot) const { + return shim() + .template try_as() + .OnDefaultSystemBackdropConfigurationChanged(target, xamlRoot); + } + template + auto IXamlCompositionBrushBaseOverridesT::OnConnected() const { + return shim() + .template try_as() + .OnConnected(); + } + template + auto IXamlCompositionBrushBaseOverridesT::OnDisconnected() const { + return shim() + .template try_as() + .OnDisconnected(); + } + template + auto IXamlLightOverridesT::GetId() const { + return shim().template try_as().GetId(); + } + template + auto IXamlLightOverridesT::OnConnected( + winrt::Microsoft::UI::Xaml::UIElement const& newElement) const { + return shim().template try_as().OnConnected( + newElement); + } + template + auto IXamlLightOverridesT::OnDisconnected( + winrt::Microsoft::UI::Xaml::UIElement const& oldElement) const { + return shim().template try_as().OnDisconnected( + oldElement); + } + template + struct AcrylicBrushT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush, + winrt::Microsoft::UI::Xaml::Media::IAcrylicBrush2, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBase, + winrt::Microsoft::UI::Xaml::Media::IBrush, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT< + D>, + winrt::Microsoft::UI::Xaml::Media::IBrushOverridesT { + using composable = AcrylicBrush; + friend impl::consume_t< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>; + friend impl::require_one< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides>; + friend impl::produce; + + protected: + AcrylicBrushT() { + impl::call_factory( + [&](IAcrylicBrushFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct BrushT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IBrushOverridesT { + using composable = Brush; + friend impl::produce; + + protected: + BrushT() { + impl::call_factory([&](IBrushFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct CacheModeT + : implements, + impl::require, + impl::base { + using composable = CacheMode; + + protected: + CacheModeT() { + impl::call_factory( + [&](ICacheModeFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct DesktopAcrylicBackdropT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::IDesktopAcrylicBackdrop, + winrt::Microsoft::UI::Xaml::Media::ISystemBackdrop, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + impl::base, + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverridesT { + using composable = DesktopAcrylicBackdrop; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides>; + + protected: + DesktopAcrylicBackdropT() { + impl::call_factory( + [&](IDesktopAcrylicBackdropFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct FontFamilyT + : implements, + impl::require, + impl::base { + using composable = FontFamily; + + protected: + FontFamilyT(param::hstring const& familyName) { + impl::call_factory( + [&](IFontFamilyFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstanceWithName(familyName, *this, this->m_inner); + }); + } + }; + template + struct GeneralTransformT + : implements< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides, + composing, Interfaces...>, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverridesT { + using composable = GeneralTransform; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Media::IGeneralTransformOverrides>; + + protected: + GeneralTransformT() { + impl::call_factory( + [&](IGeneralTransformFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct GradientBrushT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IBrushOverridesT { + using composable = GradientBrush; + friend impl::produce; + + protected: + GradientBrushT() { + impl::call_factory( + [&](IGradientBrushFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct MicaBackdropT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverridesT { + using composable = MicaBackdrop; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides>; + + protected: + MicaBackdropT() { + impl::call_factory( + [&](IMicaBackdropFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ProjectionT + : implements, + impl::require, + impl::base { + using composable = Projection; + + protected: + ProjectionT() { + impl::call_factory( + [&](IProjectionFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct RadialGradientBrushT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::IRadialGradientBrush, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBase, + winrt::Microsoft::UI::Xaml::Media::IBrush, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT< + D>, + winrt::Microsoft::UI::Xaml::Media::IBrushOverridesT { + using composable = RadialGradientBrush; + friend impl::consume_t< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>; + friend impl::require_one< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides>; + friend impl::produce; + + protected: + RadialGradientBrushT() { + impl::call_factory( + [&](IRadialGradientBrushFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct SystemBackdropT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverridesT { + using composable = SystemBackdrop; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Media::ISystemBackdropOverrides>; + + protected: + SystemBackdropT() { + impl::call_factory( + [&](ISystemBackdropFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ThemeShadowT + : implements, + impl::require, + impl::base { + using composable = ThemeShadow; + + protected: + ThemeShadowT() { + impl::call_factory( + [&](IThemeShadowFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct TileBrushT + : implements, + impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IBrushOverridesT { + using composable = TileBrush; + friend impl::produce; + + protected: + TileBrushT() { + impl::call_factory( + [&](ITileBrushFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct XamlCompositionBrushBaseT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBase, + winrt::Microsoft::UI::Xaml::Media::IBrush, + winrt::Microsoft::UI::Composition::IAnimationObject, + winrt::Microsoft::UI::Xaml::IDependencyObject>, + protected impl::require, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverridesT< + D>, + winrt::Microsoft::UI::Xaml::Media::IBrushOverridesT { + using composable = XamlCompositionBrushBase; + friend impl::consume_t< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>; + friend impl::require_one< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected>; + friend impl::produce< + D, + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides>; + friend impl::produce; + + protected: + XamlCompositionBrushBaseT() { + impl::call_factory( + [&](IXamlCompositionBrushBaseFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct XamlLightT + : implements, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::Media::IXamlLightOverridesT { + using composable = XamlLight; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::Media::IXamlLightOverrides>; + + protected: + XamlLightT() { + impl::call_factory( + [&](IXamlLightFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::ILoadedImageSourceLoadCompletedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::IPolyQuadraticBezierSegmentStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseOverrides> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::IXamlCompositionBrushBaseProtected> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Media::LoadedImageSourceLoadCompletedEventArgs> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Navigation.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Navigation.h new file mode 100644 index 00000000..7878f276 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Navigation.h @@ -0,0 +1,1412 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Navigation_H +#define WINRT_Microsoft_UI_Xaml_Navigation_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Animation.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Navigation.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.UI.Xaml.Interop.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Navigation_IFrameNavigationOptions< + D>::IsNavigationStackEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsNavigationStackEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsNavigationStackEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IFrameNavigationOptions< + D>::IsNavigationStackEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsNavigationStackEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsNavigationStackEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IFrameNavigationOptions< + D>::TransitionInfoOverride() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransitionInfoOverride(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransitionInfoOverride(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IFrameNavigationOptions:: + TransitionInfoOverride(winrt::Microsoft::UI::Xaml::Media::Animation:: + NavigationTransitionInfo const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptions, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TransitionInfoOverride(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TransitionInfoOverride(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IFrameNavigationOptionsFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptionsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Navigation::FrameNavigationOptions{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigatingCancelEventArgs< + D>::Cancel() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigatingCancelEventArgs::Cancel( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigatingCancelEventArgs< + D>::NavigationMode() const { + winrt::Microsoft::UI::Xaml::Navigation::NavigationMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigationMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigationMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigatingCancelEventArgs< + D>::SourcePageType() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigatingCancelEventArgs< + D>::Parameter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigatingCancelEventArgs< + D>::NavigationTransitionInfo() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigationTransitionInfo(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigationTransitionInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs::Content() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs::Parameter() + const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs< + D>::NavigationTransitionInfo() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigationTransitionInfo(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigationTransitionInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs< + D>::SourcePageType() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs< + D>::NavigationMode() const { + winrt::Microsoft::UI::Xaml::Navigation::NavigationMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigationMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigationMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs::Uri() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Uri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Uri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationEventArgs::Uri( + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Uri(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Uri(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationFailedEventArgs< + D>::Exception() const { + winrt::hresult value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationFailedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Exception(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Exception(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationFailedEventArgs< + D>::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationFailedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationFailedEventArgs< + D>::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationFailedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Navigation_INavigationFailedEventArgs< + D>::SourcePageType() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::INavigationFailedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IPageStackEntry::SourcePageType() + const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IPageStackEntry::Parameter() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parameter(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IPageStackEntry< + D>::NavigationTransitionInfo() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntry>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntry, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NavigationTransitionInfo(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NavigationTransitionInfo(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IPageStackEntryFactory:: + CreateInstance( + winrt::Windows::UI::Xaml::Interop::TypeName const& sourcePageType, + winrt::Windows::Foundation::IInspectable const& parameter, + winrt::Microsoft::UI::Xaml::Media::Animation:: + NavigationTransitionInfo const& navigationTransitionInfo) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntryFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + impl::bind_in(sourcePageType), *(void**)(¶meter), + *(void**)(&navigationTransitionInfo), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + impl::bind_in(sourcePageType), *(void**)(¶meter), + *(void**)(&navigationTransitionInfo), &value)); + } + return winrt::Microsoft::UI::Xaml::Navigation::PageStackEntry{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Navigation_IPageStackEntryStatics< + D>::SourcePageTypeProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntryStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SourcePageTypeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SourcePageTypeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +struct delegate + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigatedEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigatedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventHandler, + H> { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigationFailedEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigationFailedEventHandler, + H> { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigationStoppedEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Navigation::NavigationStoppedEventHandler, + H> { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptions> { + int32_t __stdcall get_IsNavigationStackEnabled(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsNavigationStackEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsNavigationStackEnabled(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().IsNavigationStackEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransitionInfoOverride(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo>( + this->shim().TransitionInfoOverride()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransitionInfoOverride(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransitionInfoOverride( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptionsFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Navigation::FrameNavigationOptions>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Navigation::INavigatingCancelEventArgs> { + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NavigationMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().NavigationMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SourcePageType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourcePageType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parameter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NavigationTransitionInfo(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo>( + this->shim().NavigationTransitionInfo()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Navigation::INavigationEventArgs> { + int32_t __stdcall get_Content(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Content()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parameter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NavigationTransitionInfo(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo>( + this->shim().NavigationTransitionInfo()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SourcePageType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourcePageType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NavigationMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().NavigationMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Uri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Uri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Uri(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Uri( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Navigation::INavigationFailedEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::Navigation::INavigationFailedEventArgs> { + int32_t __stdcall get_Exception(winrt::hresult* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Exception()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SourcePageType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourcePageType()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SourcePageType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourcePageType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parameter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parameter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NavigationTransitionInfo(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::NavigationTransitionInfo>( + this->shim().NavigationTransitionInfo()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntryFactory> { + int32_t __stdcall CreateInstance( + struct struct_Windows_UI_Xaml_Interop_TypeName sourcePageType, + void* parameter, void* navigationTransitionInfo, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CreateInstance( + *reinterpret_cast( + &sourcePageType), + *reinterpret_cast( + ¶meter), + *reinterpret_cast( + &navigationTransitionInfo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Navigation::IPageStackEntryStatics> { + int32_t __stdcall get_SourcePageTypeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SourcePageTypeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Navigation { + inline FrameNavigationOptions::FrameNavigationOptions() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IFrameNavigationOptionsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline PageStackEntry::PageStackEntry( + winrt::Windows::UI::Xaml::Interop::TypeName const& sourcePageType, + winrt::Windows::Foundation::IInspectable const& parameter, + winrt::Microsoft::UI::Xaml::Media::Animation:: + NavigationTransitionInfo const& navigationTransitionInfo) + : PageStackEntry( + impl::call_factory( + [&](IPageStackEntryFactory const& f) { + return f.CreateInstance(sourcePageType, parameter, + navigationTransitionInfo); + })) {} + inline auto PageStackEntry::SourcePageTypeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPageStackEntryStatics const&), + PageStackEntry, IPageStackEntryStatics>( + [](IPageStackEntryStatics const& f) { + return f.SourcePageTypeProperty(); + }); + } + template + NavigatedEventHandler::NavigatedEventHandler(L handler) + : NavigatedEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + NavigatedEventHandler::NavigatedEventHandler(F * handler) + : NavigatedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + NavigatedEventHandler::NavigatedEventHandler(O * object, M method) + : NavigatedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + NavigatedEventHandler::NavigatedEventHandler(com_ptr && object, M method) + : NavigatedEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigatedEventHandler::NavigatedEventHandler(weak_ref && object, + LM && lambda_or_method) + : NavigatedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + NavigatedEventHandler::NavigatedEventHandler(std::shared_ptr && object, + M method) + : NavigatedEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigatedEventHandler::NavigatedEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : NavigatedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto NavigatedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler(L handler) + : NavigatingCancelEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler(F * handler) + : NavigatingCancelEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler(O * object, + M method) + : NavigatingCancelEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler( + com_ptr && object, M method) + : NavigatingCancelEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler( + weak_ref && object, LM && lambda_or_method) + : NavigatingCancelEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler( + std::shared_ptr && object, M method) + : NavigatingCancelEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigatingCancelEventHandler::NavigatingCancelEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : NavigatingCancelEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto NavigatingCancelEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Navigation::NavigatingCancelEventArgs const& + e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + NavigationFailedEventHandler::NavigationFailedEventHandler(L handler) + : NavigationFailedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + NavigationFailedEventHandler::NavigationFailedEventHandler(F * handler) + : NavigationFailedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + NavigationFailedEventHandler::NavigationFailedEventHandler(O * object, + M method) + : NavigationFailedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + NavigationFailedEventHandler::NavigationFailedEventHandler( + com_ptr && object, M method) + : NavigationFailedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigationFailedEventHandler::NavigationFailedEventHandler( + weak_ref && object, LM && lambda_or_method) + : NavigationFailedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + NavigationFailedEventHandler::NavigationFailedEventHandler( + std::shared_ptr && object, M method) + : NavigationFailedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigationFailedEventHandler::NavigationFailedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : NavigationFailedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto NavigationFailedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Navigation::NavigationFailedEventArgs const& + e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler(L handler) + : NavigationStoppedEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler(F * handler) + : NavigationStoppedEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler(O * object, + M method) + : NavigationStoppedEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler( + com_ptr && object, M method) + : NavigationStoppedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler( + weak_ref && object, LM && lambda_or_method) + : NavigationStoppedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler( + std::shared_ptr && object, M method) + : NavigationStoppedEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + NavigationStoppedEventHandler::NavigationStoppedEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : NavigationStoppedEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto NavigationStoppedEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Navigation::NavigationEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + struct FrameNavigationOptionsT + : implements, + impl::require< + D, winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptions>, + impl::base { + using composable = FrameNavigationOptions; + + protected: + FrameNavigationOptionsT() { + impl::call_factory( + [&](IFrameNavigationOptionsFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Navigation::IFrameNavigationOptionsFactory> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Printing.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Printing.h new file mode 100644 index 00000000..c1d80e17 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Printing.h @@ -0,0 +1,991 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Printing_H +#define WINRT_Microsoft_UI_Xaml_Printing_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Printing.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Graphics.Printing.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Printing_IAddPagesEventArgs< + D>::PrintTaskOptions() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Printing::IAddPagesEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IAddPagesEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrintTaskOptions(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PrintTaskOptions(&value)); + } + return winrt::Windows::Graphics::Printing::PrintTaskOptions{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IGetPreviewPageEventArgs< + D>::PageNumber() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IGetPreviewPageEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PageNumber(&value)); + } else { + auto const _winrt_abi_type = *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PageNumber(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPaginateEventArgs< + D>::PrintTaskOptions() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Printing::IPaginateEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPaginateEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PrintTaskOptions(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_PrintTaskOptions(&value)); + } + return winrt::Windows::Graphics::Printing::PrintTaskOptions{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPaginateEventArgs< + D>::CurrentPreviewPageNumber() const { + int32_t value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::Printing::IPaginateEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPaginateEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentPreviewPageNumber(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentPreviewPageNumber(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::DocumentSource() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DocumentSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DocumentSource(&value)); + } + return winrt::Windows::Graphics::Printing::IPrintDocumentSource{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::Paginate( + winrt::Microsoft::UI::Xaml::Printing::PaginateEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Paginate(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Paginate(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::Paginate( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Printing::PaginateEventHandler const& handler) + const { + return impl::make_event_revoker(this, Paginate(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::Paginate( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Paginate(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Paginate(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::GetPreviewPage( + winrt::Microsoft::UI::Xaml::Printing::GetPreviewPageEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_GetPreviewPage(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_GetPreviewPage(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::GetPreviewPage( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Printing::GetPreviewPageEventHandler const& + handler) const { + return impl::make_event_revoker( + this, GetPreviewPage(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::GetPreviewPage( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GetPreviewPage(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GetPreviewPage(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::AddPages( + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_AddPages(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_AddPages(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::AddPages( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventHandler const& handler) + const { + return impl::make_event_revoker(this, AddPages(handler)); +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::AddPages( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AddPages(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AddPages(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::AddPage( + winrt::Microsoft::UI::Xaml::UIElement const& pageVisual) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddPage(*(void**)(&pageVisual))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddPage(*(void**)(&pageVisual))); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::AddPagesComplete() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddPagesComplete()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddPagesComplete()); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::SetPreviewPageCount( + int32_t count, + winrt::Microsoft::UI::Xaml::Printing::PreviewPageCountType const& type) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetPreviewPageCount( + count, static_cast(type))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetPreviewPageCount( + count, static_cast(type))); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::SetPreviewPage( + int32_t pageNumber, + winrt::Microsoft::UI::Xaml::UIElement const& pageVisual) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetPreviewPage(pageNumber, *(void**)(&pageVisual))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetPreviewPage(pageNumber, *(void**)(&pageVisual))); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocument::InvalidatePreview() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocument>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocument, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidatePreview()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidatePreview()); + } +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocumentFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocumentFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocumentFactory>**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Printing::PrintDocument{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Printing_IPrintDocumentStatics< + D>::DocumentSourceProperty() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocumentStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DocumentSourceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Printing::IPrintDocumentStatics>**)this; + check_hresult(_winrt_abi_type->get_DocumentSourceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::Printing::GetPreviewPageEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::Printing::GetPreviewPageEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Printing::GetPreviewPageEventHandler, + H>(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::Printing::PaginateEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::Printing::PaginateEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Printing::PaginateEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PrintTaskOptions(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PrintTaskOptions()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Printing::IGetPreviewPageEventArgs> { + int32_t __stdcall get_PageNumber(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().PageNumber()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PrintTaskOptions(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PrintTaskOptions()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurrentPreviewPageNumber(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CurrentPreviewPageNumber()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DocumentSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().DocumentSource()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Paginate(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Paginate( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Printing::PaginateEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Paginate(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Paginate(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_GetPreviewPage(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GetPreviewPage( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GetPreviewPage( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GetPreviewPage( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AddPages(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AddPages( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AddPages(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AddPages(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall AddPage(void* pageVisual) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddPage( + *reinterpret_cast( + &pageVisual)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddPagesComplete() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddPagesComplete(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPreviewPageCount(int32_t count, + int32_t type) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPreviewPageCount( + count, + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Printing::PreviewPageCountType const*>( + &type)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetPreviewPage(int32_t pageNumber, + void* pageVisual) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetPreviewPage( + pageNumber, + *reinterpret_cast( + &pageVisual)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InvalidatePreview() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidatePreview(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocumentFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Printing::IPrintDocumentStatics> { + int32_t __stdcall get_DocumentSourceProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DocumentSourceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Printing { + inline AddPagesEventArgs::AddPagesEventArgs() + : AddPagesEventArgs( + impl::call_factory_cast< + AddPagesEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + AddPagesEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline GetPreviewPageEventArgs::GetPreviewPageEventArgs() + : GetPreviewPageEventArgs( + impl::call_factory_cast< + GetPreviewPageEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + GetPreviewPageEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PaginateEventArgs::PaginateEventArgs() + : PaginateEventArgs( + impl::call_factory_cast< + PaginateEventArgs (*)( + winrt::Windows::Foundation::IActivationFactory const&), + PaginateEventArgs>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline PrintDocument::PrintDocument() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPrintDocumentFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto PrintDocument::DocumentSourceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPrintDocumentStatics const&), + PrintDocument, IPrintDocumentStatics>( + [](IPrintDocumentStatics const& f) { + return f.DocumentSourceProperty(); + }); + } + template + AddPagesEventHandler::AddPagesEventHandler(L handler) + : AddPagesEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + AddPagesEventHandler::AddPagesEventHandler(F * handler) + : AddPagesEventHandler([=](auto&&... args) { return handler(args...); }) { + } + template + AddPagesEventHandler::AddPagesEventHandler(O * object, M method) + : AddPagesEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + AddPagesEventHandler::AddPagesEventHandler(com_ptr && object, M method) + : AddPagesEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + AddPagesEventHandler::AddPagesEventHandler(weak_ref && object, + LM && lambda_or_method) + : AddPagesEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + AddPagesEventHandler::AddPagesEventHandler(std::shared_ptr && object, + M method) + : AddPagesEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + AddPagesEventHandler::AddPagesEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : AddPagesEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto AddPagesEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Printing::AddPagesEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler(L handler) + : GetPreviewPageEventHandler( + impl::make_delegate( + std::forward(handler))) {} + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler(F * handler) + : GetPreviewPageEventHandler( + [=](auto&&... args) { return handler(args...); }) {} + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler(O * object, M method) + : GetPreviewPageEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler(com_ptr && object, + M method) + : GetPreviewPageEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler(weak_ref && object, + LM && lambda_or_method) + : GetPreviewPageEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler( + std::shared_ptr && object, M method) + : GetPreviewPageEventHandler( + [o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + GetPreviewPageEventHandler::GetPreviewPageEventHandler( + std::weak_ptr && object, LM && lambda_or_method) + : GetPreviewPageEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto GetPreviewPageEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Printing::GetPreviewPageEventArgs const& e) + const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + PaginateEventHandler::PaginateEventHandler(L handler) + : PaginateEventHandler(impl::make_delegate( + std::forward(handler))) {} + template + PaginateEventHandler::PaginateEventHandler(F * handler) + : PaginateEventHandler([=](auto&&... args) { return handler(args...); }) { + } + template + PaginateEventHandler::PaginateEventHandler(O * object, M method) + : PaginateEventHandler( + [=](auto&&... args) { return ((*object).*(method))(args...); }) {} + template + PaginateEventHandler::PaginateEventHandler(com_ptr && object, M method) + : PaginateEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + PaginateEventHandler::PaginateEventHandler(weak_ref && object, + LM && lambda_or_method) + : PaginateEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.get()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + template + PaginateEventHandler::PaginateEventHandler(std::shared_ptr && object, + M method) + : PaginateEventHandler([o = std::move(object), method](auto&&... args) { + return ((*o).*(method))(args...); + }) {} + template + PaginateEventHandler::PaginateEventHandler(std::weak_ptr && object, + LM && lambda_or_method) + : PaginateEventHandler( + [o = std::move(object), + lm = std::forward(lambda_or_method)](auto&&... args) { + if (auto s = o.lock()) { + if constexpr (std::is_member_function_pointer_v) + ((*s).*(lm))(args...); + else + lm(args...); + } + }) {} + inline auto PaginateEventHandler::operator()( + winrt::Windows::Foundation::IInspectable const& sender, + winrt::Microsoft::UI::Xaml::Printing::PaginateEventArgs const& e) const { + check_hresult((*(impl::abi_t**)this) + ->Invoke(*(void**)(&sender), *(void**)(&e))); + } + template + struct PrintDocumentT + : implements, + impl::require, + impl::base { + using composable = PrintDocument; + + protected: + PrintDocumentT() { + impl::call_factory( + [&](IPrintDocumentFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Resources.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Resources.h new file mode 100644 index 00000000..2e955a26 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Resources.h @@ -0,0 +1,309 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Resources_H +#define WINRT_Microsoft_UI_Xaml_Resources_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.Resources.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Resources_ICustomXamlResourceLoaderFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Resources_ICustomXamlResourceLoaderOverrides< + D>::GetResource(param::hstring const& resourceId, + param::hstring const& objectType, + param::hstring const& propertyName, + param::hstring const& propertyType) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetResource( + *(void**)(&resourceId), *(void**)(&objectType), + *(void**)(&propertyName), *(void**)(&propertyType), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetResource( + *(void**)(&resourceId), *(void**)(&objectType), + *(void**)(&propertyName), *(void**)(&propertyType), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Resources_ICustomXamlResourceLoaderStatics< + D>::Current() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Current(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Current(&value)); + } + return winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Resources_ICustomXamlResourceLoaderStatics:: + Current( + winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderStatics, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Current(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Current(*(void**)(&value))); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoader> { +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderFactory> + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderOverrides> + : produce_base { + int32_t __stdcall GetResource(void* resourceId, void* objectType, + void* propertyName, void* propertyType, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetResource( + *reinterpret_cast(&resourceId), + *reinterpret_cast(&objectType), + *reinterpret_cast(&propertyName), + *reinterpret_cast(&propertyType))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderStatics> + : produce_base { + int32_t __stdcall get_Current(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader>( + this->shim().Current()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Current(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Current( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderOverrides> + : produce_dispatch_to_overridable_base< + T, D, + winrt::Microsoft::UI::Xaml::Resources:: + ICustomXamlResourceLoaderOverrides> { + auto GetResource(hstring const& resourceId, hstring const& objectType, + hstring const& propertyName, hstring const& propertyType) { + if (auto overridable = this->shim_overridable()) { + return overridable.GetResource(resourceId, objectType, propertyName, + propertyType); + } + + return this->shim().GetResource(resourceId, objectType, propertyName, + propertyType); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Resources { + inline CustomXamlResourceLoader::CustomXamlResourceLoader() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](ICustomXamlResourceLoaderFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto CustomXamlResourceLoader::Current() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader (*)( + ICustomXamlResourceLoaderStatics const&), + CustomXamlResourceLoader, ICustomXamlResourceLoaderStatics>( + [](ICustomXamlResourceLoaderStatics const& f) { return f.Current(); }); + } + inline auto CustomXamlResourceLoader::Current( + winrt::Microsoft::UI::Xaml::Resources::CustomXamlResourceLoader const& + value) { + impl::call_factory( + [&](ICustomXamlResourceLoaderStatics const& f) { + return f.Current(value); + }); + } + template + auto ICustomXamlResourceLoaderOverridesT::GetResource( + param::hstring const& resourceId, param::hstring const& objectType, + param::hstring const& propertyName, param::hstring const& propertyType) + const { + return shim() + .template try_as() + .GetResource(resourceId, objectType, propertyName, propertyType); + } + template + struct CustomXamlResourceLoaderT + : implements, + impl::require< + D, + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoader>, + impl::base, + winrt::Microsoft::UI::Xaml::Resources:: + ICustomXamlResourceLoaderOverridesT { + using composable = CustomXamlResourceLoader; + friend impl::produce; + + protected: + CustomXamlResourceLoaderT() { + impl::call_factory( + [&](ICustomXamlResourceLoaderFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderFactory> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderOverrides> + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::Resources::ICustomXamlResourceLoaderStatics> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Shapes.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Shapes.h new file mode 100644 index 00000000..2b4e8099 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.Shapes.h @@ -0,0 +1,2614 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_Shapes_H +#define WINRT_Microsoft_UI_Xaml_Shapes_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Shapes.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::X1() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_X1(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_X1(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::X1(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_X1(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_X1(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::Y1() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Y1(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Y1(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::Y1(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Y1(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Y1(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::X2() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_X2(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_X2(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::X2(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_X2(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_X2(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::Y2() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Y2(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Y2(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILine::Y2(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Y2(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Y2(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics::X1Property() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_X1Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_X1Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics::Y1Property() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Y1Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Y1Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics::X2Property() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_X2Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_X2Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics::Y2Property() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Y2Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Y2Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPath::Data() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IPath>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Geometry{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPath::Data( + winrt::Microsoft::UI::Xaml::Media::Geometry const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IPath>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPathFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPathFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IPathFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Shapes::Path{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPathStatics::DataProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPathStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IPathStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolygon::FillRule() const { + winrt::Microsoft::UI::Xaml::Media::FillRule value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolygon::FillRule( + winrt::Microsoft::UI::Xaml::Media::FillRule const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolygon::Points() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Points(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Points(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PointCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolygon::Points( + winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolygonStatics::FillRuleProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolygonStatics::PointsProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolyline::FillRule() const { + winrt::Microsoft::UI::Xaml::Media::FillRule value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FillRule(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolyline::FillRule( + winrt::Microsoft::UI::Xaml::Media::FillRule const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FillRule(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolyline::Points() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Points(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Points(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::PointCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolyline::Points( + winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Points(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolylineStatics::FillRuleProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillRuleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IPolylineStatics::PointsProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IRectangle::RadiusX() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IRectangle::RadiusX( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RadiusX(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RadiusX(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IRectangle::RadiusY() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IRectangle::RadiusY( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RadiusY(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RadiusY(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IRectangleStatics::RadiusXProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusXProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusXProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IRectangleStatics::RadiusYProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RadiusYProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RadiusYProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::Fill() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Fill(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Fill(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::Fill( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::Stroke() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Stroke(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Stroke(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::Stroke( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stroke(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stroke(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeMiterLimit() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeMiterLimit(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeMiterLimit(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeMiterLimit( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeMiterLimit(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StrokeMiterLimit(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeThickness() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeThickness(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeThickness(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeThickness( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeThickness(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StrokeThickness(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeStartLineCap() const { + winrt::Microsoft::UI::Xaml::Media::PenLineCap value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeStartLineCap( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeStartLineCap( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeStartLineCap( + winrt::Microsoft::UI::Xaml::Media::PenLineCap const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeStartLineCap(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_StrokeStartLineCap(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeEndLineCap() const { + winrt::Microsoft::UI::Xaml::Media::PenLineCap value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeEndLineCap( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeEndLineCap( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeEndLineCap( + winrt::Microsoft::UI::Xaml::Media::PenLineCap const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeEndLineCap(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_StrokeEndLineCap(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeLineJoin() const { + winrt::Microsoft::UI::Xaml::Media::PenLineJoin value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeLineJoin( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeLineJoin( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeLineJoin( + winrt::Microsoft::UI::Xaml::Media::PenLineJoin const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeLineJoin(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_StrokeLineJoin(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeDashOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeDashOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeDashOffset( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeDashOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StrokeDashOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeDashCap() const { + winrt::Microsoft::UI::Xaml::Media::PenLineCap value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_StrokeDashCap(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_StrokeDashCap(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeDashCap( + winrt::Microsoft::UI::Xaml::Media::PenLineCap const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_StrokeDashCap(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_StrokeDashCap(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeDashArray() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashArray(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeDashArray(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::DoubleCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::StrokeDashArray( + winrt::Microsoft::UI::Xaml::Media::DoubleCollection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_StrokeDashArray(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_StrokeDashArray(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::Stretch() const { + winrt::Microsoft::UI::Xaml::Media::Stretch value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Stretch(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::Stretch( + winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Stretch(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::GeometryTransform() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GeometryTransform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GeometryTransform(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Transform{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShape::GetAlphaMask() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetAlphaMask(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetAlphaMask(&result)); + } + return winrt::Microsoft::UI::Composition::CompositionBrush{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Shapes::Shape{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics::FillProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FillProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FillProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics::StrokeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics< + D>::StrokeMiterLimitProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeMiterLimitProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeMiterLimitProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics< + D>::StrokeThicknessProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeThicknessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics< + D>::StrokeStartLineCapProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeStartLineCapProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeStartLineCapProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics< + D>::StrokeEndLineCapProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeEndLineCapProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeEndLineCapProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics::StrokeLineJoinProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeLineJoinProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeLineJoinProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics< + D>::StrokeDashOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeDashOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics::StrokeDashCapProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashCapProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeDashCapProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics< + D>::StrokeDashArrayProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StrokeDashArrayProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StrokeDashArrayProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics::StretchProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StretchProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_X1(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().X1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_X1(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().X1(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Y1(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Y1()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Y1(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Y1(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_X2(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().X2()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_X2(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().X2(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Y2(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Y2()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Y2(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Y2(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_X1Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().X1Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Y1Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Y1Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_X2Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().X2Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Y2Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Y2Property()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Data(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Data()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Data(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Data( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DataProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DataProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRule(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRule()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FillRule(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillRule( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Points(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Points()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Points(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Points( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRuleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRule(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRule()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FillRule(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FillRule( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Points(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Points()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Points(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Points( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillRuleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RadiusX(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RadiusX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RadiusX(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RadiusX(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusY(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RadiusY()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RadiusY(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RadiusY(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RadiusXProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RadiusXProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RadiusYProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RadiusYProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Fill(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Fill()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Fill(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Fill( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Stroke(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Stroke()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Stroke(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stroke( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeMiterLimit(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StrokeMiterLimit()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeMiterLimit(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeMiterLimit(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeThickness(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StrokeThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeThickness(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeThickness(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeStartLineCap(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeStartLineCap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeStartLineCap(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeStartLineCap( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeEndLineCap(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeEndLineCap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeEndLineCap(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeEndLineCap( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeLineJoin(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeLineJoin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeLineJoin(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeLineJoin( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::PenLineJoin const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().StrokeDashOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeDashOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeDashOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashCap(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeDashCap()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeDashCap(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeDashCap( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashArray(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeDashArray()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_StrokeDashArray(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StrokeDashArray( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::DoubleCollection const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Stretch(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Stretch()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Stretch(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stretch( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GeometryTransform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GeometryTransform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAlphaMask(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAlphaMask()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_FillProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FillProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeMiterLimitProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeMiterLimitProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeThicknessProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeThicknessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeStartLineCapProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeStartLineCapProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeEndLineCapProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeEndLineCapProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeLineJoinProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeLineJoinProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashOffsetProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeDashOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashCapProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeDashCapProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StrokeDashArrayProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StrokeDashArrayProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StretchProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StretchProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Shapes { + inline Ellipse::Ellipse() + : Ellipse(impl::call_factory_cast< + Ellipse (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Ellipse>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline Line::Line() + : Line(impl::call_factory_cast< + Line (*)(winrt::Windows::Foundation::IActivationFactory const&), + Line>([](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Line::X1Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&), + Line, ILineStatics>( + [](ILineStatics const& f) { return f.X1Property(); }); + } + inline auto Line::Y1Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&), + Line, ILineStatics>( + [](ILineStatics const& f) { return f.Y1Property(); }); + } + inline auto Line::X2Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&), + Line, ILineStatics>( + [](ILineStatics const& f) { return f.X2Property(); }); + } + inline auto Line::Y2Property() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&), + Line, ILineStatics>( + [](ILineStatics const& f) { return f.Y2Property(); }); + } + inline Path::Path() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory([&](IPathFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto Path::DataProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)(IPathStatics const&), + Path, IPathStatics>( + [](IPathStatics const& f) { return f.DataProperty(); }); + } + inline Polygon::Polygon() + : Polygon(impl::call_factory_cast< + Polygon (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Polygon>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Polygon::FillRuleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolygonStatics const&), + Polygon, IPolygonStatics>( + [](IPolygonStatics const& f) { return f.FillRuleProperty(); }); + } + inline auto Polygon::PointsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolygonStatics const&), + Polygon, IPolygonStatics>( + [](IPolygonStatics const& f) { return f.PointsProperty(); }); + } + inline Polyline::Polyline() + : Polyline(impl::call_factory_cast< + Polyline (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Polyline>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Polyline::FillRuleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolylineStatics const&), + Polyline, IPolylineStatics>( + [](IPolylineStatics const& f) { return f.FillRuleProperty(); }); + } + inline auto Polyline::PointsProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IPolylineStatics const&), + Polyline, IPolylineStatics>( + [](IPolylineStatics const& f) { return f.PointsProperty(); }); + } + inline Rectangle::Rectangle() + : Rectangle(impl::call_factory_cast< + Rectangle (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Rectangle>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto Rectangle::RadiusXProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRectangleStatics const&), + Rectangle, IRectangleStatics>( + [](IRectangleStatics const& f) { return f.RadiusXProperty(); }); + } + inline auto Rectangle::RadiusYProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IRectangleStatics const&), + Rectangle, IRectangleStatics>( + [](IRectangleStatics const& f) { return f.RadiusYProperty(); }); + } + inline auto Shape::FillProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.FillProperty(); }); + } + inline auto Shape::StrokeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeProperty(); }); + } + inline auto Shape::StrokeMiterLimitProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeMiterLimitProperty(); }); + } + inline auto Shape::StrokeThicknessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeThicknessProperty(); }); + } + inline auto Shape::StrokeStartLineCapProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeStartLineCapProperty(); }); + } + inline auto Shape::StrokeEndLineCapProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeEndLineCapProperty(); }); + } + inline auto Shape::StrokeLineJoinProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeLineJoinProperty(); }); + } + inline auto Shape::StrokeDashOffsetProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeDashOffsetProperty(); }); + } + inline auto Shape::StrokeDashCapProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeDashCapProperty(); }); + } + inline auto Shape::StrokeDashArrayProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StrokeDashArrayProperty(); }); + } + inline auto Shape::StretchProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IShapeStatics const&), + Shape, IShapeStatics>( + [](IShapeStatics const& f) { return f.StretchProperty(); }); + } + template + struct PathT + : implements, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = Path; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + PathT() { + impl::call_factory([&](IPathFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; + template + struct ShapeT + : implements, + impl::require, + protected impl::require< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, + winrt::Microsoft::UI::Xaml::IUIElementProtected>, + impl::base, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT, + winrt::Microsoft::UI::Xaml::IUIElementOverridesT { + using composable = Shape; + friend impl::consume_t< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::require_one< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>; + friend impl::produce< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>; + friend impl::consume_t; + friend impl::require_one; + friend impl::produce; + + protected: + ShapeT() { + impl::call_factory([&](IShapeFactory const& f) { + [[maybe_unused]] auto winrt_impl_discarded = + f.CreateInstance(*this, this->m_inner); + }); + } + }; +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash : winrt::impl::hash_base { +}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.XamlTypeInfo.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.XamlTypeInfo.h new file mode 100644 index 00000000..52a8790f --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.XamlTypeInfo.h @@ -0,0 +1,103 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_XamlTypeInfo_H +#define WINRT_Microsoft_UI_Xaml_XamlTypeInfo_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.Xaml.h" +#include "winrt/impl/Microsoft.UI.Xaml.Markup.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.XamlTypeInfo.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_XamlTypeInfo_IXamlControlsXamlMetaDataProviderStatics< + D>::Initialize() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::XamlTypeInfo:: + IXamlControlsXamlMetaDataProviderStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Initialize()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Initialize()); + } +} +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, + winrt::Microsoft::UI::Xaml::XamlTypeInfo::IXamlControlsXamlMetaDataProvider> + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Initialize() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Initialize(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::XamlTypeInfo { + inline XamlControlsXamlMetaDataProvider::XamlControlsXamlMetaDataProvider() + : XamlControlsXamlMetaDataProvider( + impl::call_factory_cast< + XamlControlsXamlMetaDataProvider (*)( + winrt::Windows::Foundation::IActivationFactory const&), + XamlControlsXamlMetaDataProvider>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance< + XamlControlsXamlMetaDataProvider>(); + })) {} + inline auto XamlControlsXamlMetaDataProvider::Initialize() { + impl::call_factory_cast< + void (*)(IXamlControlsXamlMetaDataProviderStatics const&), + XamlControlsXamlMetaDataProvider, + IXamlControlsXamlMetaDataProviderStatics>( + [](IXamlControlsXamlMetaDataProviderStatics const& f) { + return f.Initialize(); + }); + } +} +namespace std { +#ifndef WINRT_LEAN_AND_MEAN +template <> +struct hash< + winrt::Microsoft::UI::Xaml::XamlTypeInfo::IXamlControlsXamlMetaDataProvider> + : winrt::impl::hash_base {}; +template <> +struct hash + : winrt::impl::hash_base {}; +template <> +struct hash< + winrt::Microsoft::UI::Xaml::XamlTypeInfo::XamlControlsXamlMetaDataProvider> + : winrt::impl::hash_base {}; +#endif +#ifdef __cpp_lib_format +#endif +} // namespace std +#endif diff --git a/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.h b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.h new file mode 100644 index 00000000..91aae393 --- /dev/null +++ b/internal/platform/implementation/windows/generated/winrt/Microsoft.UI.Xaml.h @@ -0,0 +1,33009 @@ +// WARNING: Please don't edit this file. It was generated by C++/WinRT +// v2.0.250303.1 + +#pragma once +#ifndef WINRT_Microsoft_UI_Xaml_H +#define WINRT_Microsoft_UI_Xaml_H +#include "winrt/base.h" +static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), + "Mismatched C++/WinRT headers."); +#define CPPWINRT_VERSION "2.0.250303.1" +#include "winrt/Microsoft.UI.h" +#include "winrt/impl/Microsoft.UI.Composition.2.h" +#include "winrt/impl/Microsoft.UI.Content.2.h" +#include "winrt/impl/Microsoft.UI.Dispatching.2.h" +#include "winrt/impl/Microsoft.UI.Input.2.h" +#include "winrt/impl/Microsoft.UI.Windowing.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Automation.Peers.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Controls.Primitives.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Data.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Input.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Animation.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Imaging.2.h" +#include "winrt/impl/Microsoft.UI.Xaml.Media.Media3D.2.h" +#include "winrt/impl/Microsoft.Windows.ApplicationModel.Resources.2.h" +#include "winrt/impl/Windows.ApplicationModel.2.h" +#include "winrt/impl/Windows.ApplicationModel.Activation.2.h" +#include "winrt/impl/Windows.ApplicationModel.Core.2.h" +#include "winrt/impl/Windows.ApplicationModel.DataTransfer.2.h" +#include "winrt/impl/Windows.ApplicationModel.DataTransfer.DragDrop.2.h" +#include "winrt/impl/Windows.Foundation.2.h" +#include "winrt/impl/Windows.Foundation.Collections.2.h" +#include "winrt/impl/Windows.Foundation.Numerics.2.h" +#include "winrt/impl/Windows.Graphics.Imaging.2.h" +#include "winrt/impl/Windows.UI.2.h" +#include "winrt/impl/Windows.UI.Core.2.h" +#include "winrt/impl/Windows.UI.Xaml.Interop.2.h" +namespace winrt::impl { +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTrigger::MinWindowWidth() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWindowWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWindowWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTrigger::MinWindowWidth( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinWindowWidth(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinWindowWidth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTrigger::MinWindowHeight() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWindowHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWindowHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTrigger::MinWindowHeight( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinWindowHeight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinWindowHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTriggerFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IAdaptiveTriggerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IAdaptiveTriggerFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::AdaptiveTrigger{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTriggerStatics< + D>::MinWindowWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IAdaptiveTriggerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IAdaptiveTriggerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWindowWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWindowWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IAdaptiveTriggerStatics< + D>::MinWindowHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IAdaptiveTriggerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IAdaptiveTriggerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWindowHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWindowHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::Resources() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Resources(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Resources(&value)); + } + return winrt::Microsoft::UI::Xaml::ResourceDictionary{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::Resources( + winrt::Microsoft::UI::Xaml::ResourceDictionary const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Resources(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Resources(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication::DebugSettings() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DebugSettings(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DebugSettings(&value)); + } + return winrt::Microsoft::UI::Xaml::DebugSettings{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::RequestedTheme() const { + winrt::Microsoft::UI::Xaml::ApplicationTheme value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedTheme( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedTheme( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::RequestedTheme( + winrt::Microsoft::UI::Xaml::ApplicationTheme const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RequestedTheme(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RequestedTheme(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication::FocusVisualKind() const { + winrt::Microsoft::UI::Xaml::FocusVisualKind value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusVisualKind( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusVisualKind( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::FocusVisualKind( + winrt::Microsoft::UI::Xaml::FocusVisualKind const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FocusVisualKind(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FocusVisualKind(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication::HighContrastAdjustment() const { + winrt::Microsoft::UI::Xaml::ApplicationHighContrastAdjustment value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HighContrastAdjustment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HighContrastAdjustment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::HighContrastAdjustment( + winrt::Microsoft::UI::Xaml::ApplicationHighContrastAdjustment const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HighContrastAdjustment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HighContrastAdjustment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication::UnhandledException( + winrt::Microsoft::UI::Xaml::UnhandledExceptionEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_UnhandledException(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_UnhandledException(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IApplication::UnhandledException( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::UnhandledExceptionEventHandler const& handler) + const { + return impl::make_event_revoker( + this, UnhandledException(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IApplication::UnhandledException( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_UnhandledException(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_UnhandledException(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication::Exit() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Exit()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Exit()); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication2::ResourceManagerRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::ResourceManagerRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IApplication2>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ResourceManagerRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ResourceManagerRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IApplication2::ResourceManagerRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::ResourceManagerRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ResourceManagerRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IApplication2::ResourceManagerRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IApplication2>**)&_winrt_casted_result; + _winrt_abi_type->remove_ResourceManagerRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ResourceManagerRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplication3::DispatcherShutdownMode() + const { + winrt::Microsoft::UI::Xaml::DispatcherShutdownMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IApplication3>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherShutdownMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherShutdownMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IApplication3::DispatcherShutdownMode( + winrt::Microsoft::UI::Xaml::DispatcherShutdownMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IApplication3>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DispatcherShutdownMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DispatcherShutdownMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplicationFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IApplicationFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IApplicationFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Application{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IApplicationOverrides::OnLaunched( + winrt::Microsoft::UI::Xaml::LaunchActivatedEventArgs const& args) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IApplicationOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IApplicationOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnLaunched(*(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnLaunched(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplicationStatics::Current() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IApplicationStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IApplicationStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Current(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Current(&value)); + } + return winrt::Microsoft::UI::Xaml::Application{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IApplicationStatics::Start( + winrt::Microsoft::UI::Xaml::ApplicationInitializationCallback const& + callback) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IApplicationStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IApplicationStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Start(*(void**)(&callback))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Start(*(void**)(&callback))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplicationStatics::LoadComponent( + winrt::Windows::Foundation::IInspectable const& component, + winrt::Windows::Foundation::Uri const& resourceLocator) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IApplicationStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IApplicationStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadComponent(*(void**)(&component), + *(void**)(&resourceLocator))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadComponent(*(void**)(&component), + *(void**)(&resourceLocator))); + } +} +template +auto consume_Microsoft_UI_Xaml_IApplicationStatics::LoadComponent( + winrt::Windows::Foundation::IInspectable const& component, + winrt::Windows::Foundation::Uri const& resourceLocator, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ComponentResourceLocation const& componentResourceLocation) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IApplicationStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IApplicationStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadComponentWithResourceLocation( + *(void**)(&component), *(void**)(&resourceLocator), + static_cast(componentResourceLocation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadComponentWithResourceLocation( + *(void**)(&component), *(void**)(&resourceLocator), + static_cast(componentResourceLocation))); + } +} +template +auto consume_Microsoft_UI_Xaml_IBindingFailedEventArgs::Message() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBindingFailedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBindingFailedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Message(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Message(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::AnimationDesired() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnimationDesired(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnimationDesired(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::AnimationDesired( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnimationDesired(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnimationDesired(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::TargetRect() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetRect(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetRect(&value)); + } + return winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Rect>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::TargetRect( + winrt::Windows::Foundation::IReference< + winrt::Windows::Foundation::Rect> const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetRect(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetRect(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions< + D>::HorizontalAlignmentRatio() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions< + D>::HorizontalAlignmentRatio(double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalAlignmentRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalAlignmentRatio(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions< + D>::VerticalAlignmentRatio() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::VerticalAlignmentRatio( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalAlignmentRatio(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalAlignmentRatio(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::HorizontalOffset() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::HorizontalOffset( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::VerticalOffset() + const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewOptions::VerticalOffset( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewOptions>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewOptions, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::TargetElement() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetElement(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetElement(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs:: + TargetElement(winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetElement(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetElement(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::AnimationDesired() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AnimationDesired(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AnimationDesired(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::AnimationDesired(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AnimationDesired(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AnimationDesired(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs::TargetRect() + const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetRect(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetRect(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs::TargetRect( + winrt::Windows::Foundation::Rect const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetRect(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetRect(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::HorizontalAlignmentRatio() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::VerticalAlignmentRatio() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAlignmentRatio(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::HorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::HorizontalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::VerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs< + D>::VerticalOffset(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_VerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBringIntoViewRequestedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IBrushTransition::Duration() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IBrushTransition::Duration( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IBrushTransitionFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IBrushTransitionFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IBrushTransitionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::BrushTransition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltHigh() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AltHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AltHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AltHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AltHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltLow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AltLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AltLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AltLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AltLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltMedium() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AltMedium(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AltMedium(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltMedium( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AltMedium(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AltMedium(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltMediumHigh() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AltMediumHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AltMediumHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltMediumHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AltMediumHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AltMediumHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltMediumLow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AltMediumLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AltMediumLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::AltMediumLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AltMediumLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AltMediumLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseHigh() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseLow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseMedium() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseMedium(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseMedium(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseMedium( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseMedium(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseMedium(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseMediumHigh() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseMediumHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseMediumHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseMediumHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseMediumHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseMediumHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseMediumLow() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseMediumLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseMediumLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::BaseMediumLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BaseMediumLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BaseMediumLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeAltLow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeAltLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeAltLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeAltLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeAltLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeAltLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackHigh() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeBlackHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeBlackHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeBlackHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeBlackHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackLow() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeBlackLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeBlackLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeBlackLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeBlackLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackMediumLow() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeBlackMediumLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeBlackMediumLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackMediumLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeBlackMediumLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeBlackMediumLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackMedium() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeBlackMedium(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeBlackMedium(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeBlackMedium( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeBlackMedium(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeBlackMedium(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeDisabledHigh() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeDisabledHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeDisabledHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeDisabledHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeDisabledHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeDisabledHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeDisabledLow() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeDisabledLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeDisabledLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeDisabledLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeDisabledLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeDisabledLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeHigh() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeHigh(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeHigh(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeHigh( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeHigh(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeHigh(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeLow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeMedium() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeMedium(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeMedium(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeMedium( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeMedium(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeMedium(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeMediumLow() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeMediumLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeMediumLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeMediumLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeMediumLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeMediumLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeWhite() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeWhite(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeWhite(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeWhite( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeWhite(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeWhite(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeGray() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ChromeGray(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ChromeGray(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ChromeGray( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ChromeGray(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ChromeGray(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ListLow() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ListLow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ListLow(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ListLow( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListLow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListLow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ListMedium() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ListMedium(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ListMedium(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ListMedium( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ListMedium(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ListMedium(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ErrorText() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorText(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorText(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::ErrorText( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ErrorText(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ErrorText(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::Accent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Accent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Accent(&value)); + } + return winrt::Windows::Foundation::IReference{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResources::Accent( + winrt::Windows::Foundation::IReference const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IColorPaletteResources>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResources, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Accent(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Accent(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IColorPaletteResourcesFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IColorPaletteResourcesFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::ColorPaletteResources{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ICornerRadiusHelperStatics::FromRadii( + double topLeft, double topRight, double bottomRight, + double bottomLeft) const { + winrt::Microsoft::UI::Xaml::CornerRadius result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::ICornerRadiusHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ICornerRadiusHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromRadii(topLeft, topRight, bottomRight, + bottomLeft, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromRadii(topLeft, topRight, bottomRight, + bottomLeft, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_ICornerRadiusHelperStatics::FromUniformRadius( + double uniformRadius) const { + winrt::Microsoft::UI::Xaml::CornerRadius result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::ICornerRadiusHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ICornerRadiusHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->FromUniformRadius(uniformRadius, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->FromUniformRadius(uniformRadius, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDataContextChangedEventArgs::NewValue() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IDataContextChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataContextChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataContextChangedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IDataContextChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataContextChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDataContextChangedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IDataContextChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataContextChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplate::LoadContent() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDataTemplate>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->LoadContent(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->LoadContent(&result)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateExtension::ResetTemplate() + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateExtension>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateExtension, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ResetTemplate()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ResetTemplate()); + } +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateExtension::ProcessBinding( + uint32_t phase) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateExtension>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateExtension, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessBinding(phase, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessBinding(phase, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateExtension::ProcessBindings( + winrt::Microsoft::UI::Xaml::Controls:: + ContainerContentChangingEventArgs const& arg) const { + int32_t result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateExtension>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateExtension, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ProcessBindings(*(void**)(&arg), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ProcessBindings(*(void**)(&arg), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplate{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateKey::DataType() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataType(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataType(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateKey::DataType( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DataType(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DataType(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateKeyFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateKeyFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateKeyFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplateKey{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateKeyFactory:: + CreateInstanceWithType( + winrt::Windows::Foundation::IInspectable const& dataType, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateKeyFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateKeyFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithType( + *(void**)(&dataType), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithType( + *(void**)(&dataType), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::DataTemplateKey{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateStatics< + D>::ExtensionInstanceProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtensionInstanceProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtensionInstanceProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateStatics::GetExtensionInstance( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetExtensionInstance(*(void**)(&element), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetExtensionInstance(*(void**)(&element), &result)); + } + return winrt::Microsoft::UI::Xaml::IDataTemplateExtension{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDataTemplateStatics::SetExtensionInstance( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element, + winrt::Microsoft::UI::Xaml::IDataTemplateExtension const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDataTemplateStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDataTemplateStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetExtensionInstance(*(void**)(&element), + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetExtensionInstance(*(void**)(&element), + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::EnableFrameRateCounter() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EnableFrameRateCounter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EnableFrameRateCounter(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::EnableFrameRateCounter( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_EnableFrameRateCounter(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_EnableFrameRateCounter(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::IsBindingTracingEnabled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsBindingTracingEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsBindingTracingEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::IsBindingTracingEnabled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsBindingTracingEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsBindingTracingEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings< + D>::IsTextPerformanceVisualizationEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_IsTextPerformanceVisualizationEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_IsTextPerformanceVisualizationEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings< + D>::IsTextPerformanceVisualizationEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IsTextPerformanceVisualizationEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_IsTextPerformanceVisualizationEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::FailFastOnErrors() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FailFastOnErrors(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FailFastOnErrors(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::FailFastOnErrors( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FailFastOnErrors(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FailFastOnErrors(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::BindingFailed( + winrt::Microsoft::UI::Xaml::BindingFailedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BindingFailed(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BindingFailed(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::BindingFailed( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::BindingFailedEventHandler const& handler) + const { + return impl::make_event_revoker( + this, BindingFailed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings::BindingFailed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDebugSettings>**)&_winrt_casted_result; + _winrt_abi_type->remove_BindingFailed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_BindingFailed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings2< + D>::IsXamlResourceReferenceTracingEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_IsXamlResourceReferenceTracingEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_IsXamlResourceReferenceTracingEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings2< + D>::IsXamlResourceReferenceTracingEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_IsXamlResourceReferenceTracingEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_IsXamlResourceReferenceTracingEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings2::XamlResourceReferenceFailed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::DebugSettings, + winrt::Microsoft::UI::Xaml::XamlResourceReferenceFailedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_XamlResourceReferenceFailed( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_XamlResourceReferenceFailed( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings2::XamlResourceReferenceFailed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::DebugSettings, + winrt::Microsoft::UI::Xaml::XamlResourceReferenceFailedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, XamlResourceReferenceFailed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings2::XamlResourceReferenceFailed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_XamlResourceReferenceFailed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_XamlResourceReferenceFailed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings3::LayoutCycleTracingLevel() + const { + winrt::Microsoft::UI::Xaml::LayoutCycleTracingLevel value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutCycleTracingLevel( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutCycleTracingLevel( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings3::LayoutCycleTracingLevel( + winrt::Microsoft::UI::Xaml::LayoutCycleTracingLevel const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LayoutCycleTracingLevel( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LayoutCycleTracingLevel( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings3::LayoutCycleDebugBreakLevel() + const { + winrt::Microsoft::UI::Xaml::LayoutCycleDebugBreakLevel value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LayoutCycleDebugBreakLevel( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LayoutCycleDebugBreakLevel( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDebugSettings3::LayoutCycleDebugBreakLevel( + winrt::Microsoft::UI::Xaml::LayoutCycleDebugBreakLevel const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_LayoutCycleDebugBreakLevel( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_LayoutCycleDebugBreakLevel( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::GetValue( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetValue(*(void**)(&dp), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetValue(*(void**)(&dp), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::SetValue( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp, + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetValue(*(void**)(&dp), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetValue(*(void**)(&dp), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::ClearValue( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ClearValue(*(void**)(&dp))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ClearValue(*(void**)(&dp))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::ReadLocalValue( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ReadLocalValue(*(void**)(&dp), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ReadLocalValue(*(void**)(&dp), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::GetAnimationBaseValue( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetAnimationBaseValue(*(void**)(&dp), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetAnimationBaseValue(*(void**)(&dp), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject:: + RegisterPropertyChangedCallback( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp, + winrt::Microsoft::UI::Xaml::DependencyPropertyChangedCallback const& + callback) const { + int64_t result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterPropertyChangedCallback( + *(void**)(&dp), *(void**)(&callback), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterPropertyChangedCallback( + *(void**)(&dp), *(void**)(&callback), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject:: + UnregisterPropertyChangedCallback( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp, + int64_t token) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UnregisterPropertyChangedCallback( + *(void**)(&dp), token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->UnregisterPropertyChangedCallback( + *(void**)(&dp), token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::Dispatcher() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Dispatcher(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Dispatcher(&value)); + } + return winrt::Windows::UI::Core::CoreDispatcher{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObject::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObject>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObjectCollectionFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyObjectCollectionFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObjectCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyObjectFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyObjectFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyObjectFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyProperty::GetMetadata( + winrt::Windows::UI::Xaml::Interop::TypeName const& forType) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDependencyProperty>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyProperty, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetMetadata(impl::bind_in(forType), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetMetadata(impl::bind_in(forType), &result)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyPropertyChangedEventArgs< + D>::Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyPropertyChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyPropertyChangedEventArgs< + D>::OldValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyPropertyChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OldValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyPropertyChangedEventArgs< + D>::NewValue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyPropertyChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyPropertyStatics::UnsetValue() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IDependencyPropertyStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyPropertyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UnsetValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UnsetValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyPropertyStatics::Register( + param::hstring const& name, + winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, + winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, + winrt::Microsoft::UI::Xaml::PropertyMetadata const& typeMetadata) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IDependencyPropertyStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyPropertyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Register( + *(void**)(&name), impl::bind_in(propertyType), impl::bind_in(ownerType), + *(void**)(&typeMetadata), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Register( + *(void**)(&name), impl::bind_in(propertyType), impl::bind_in(ownerType), + *(void**)(&typeMetadata), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDependencyPropertyStatics::RegisterAttached( + param::hstring const& name, + winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, + winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, + winrt::Microsoft::UI::Xaml::PropertyMetadata const& defaultMetadata) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IDependencyPropertyStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDependencyPropertyStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterAttached( + *(void**)(&name), impl::bind_in(propertyType), impl::bind_in(ownerType), + *(void**)(&defaultMetadata), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterAttached( + *(void**)(&name), impl::bind_in(propertyType), impl::bind_in(ownerType), + *(void**)(&defaultMetadata), &result)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Interval() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Interval(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Interval(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Interval( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Interval(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Interval(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::IsEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Tick( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Tick(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Tick(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Tick( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Tick(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Tick( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Tick(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Tick(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Start() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Start()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Start()); + } +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimer::Stop() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Stop()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Stop()); + } +} +template +auto consume_Microsoft_UI_Xaml_IDispatcherTimerFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDispatcherTimerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDispatcherTimerFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::DispatcherTimer{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::Data() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::Data( + winrt::Windows::ApplicationModel::DataTransfer::DataPackage const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::DataView() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataView(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataView(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackageView{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::DragUIOverride() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragUIOverride(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragUIOverride(&value)); + } + return winrt::Microsoft::UI::Xaml::DragUIOverride{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::Modifiers() const { + winrt::Windows::ApplicationModel::DataTransfer::DragDrop::DragDropModifiers + value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Modifiers(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::AcceptedOperation() const { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AcceptedOperation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AcceptedOperation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::AcceptedOperation( + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_AcceptedOperation(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_AcceptedOperation(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::AllowedOperations() const { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::GetDeferral() const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Microsoft::UI::Xaml::DragOperationDeferral{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragEventArgs::GetPosition( + winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IDragEventArgs>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDragOperationDeferral::Complete() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragOperationDeferral>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragOperationDeferral, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Complete()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Complete()); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::Cancel() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Cancel(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::Cancel( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Cancel(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::Data() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::DragUI() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragUI(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragUI(&value)); + } + return winrt::Microsoft::UI::Xaml::DragUI{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::AllowedOperations() + const { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowedOperations( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::AllowedOperations( + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_AllowedOperations(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_AllowedOperations(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::GetDeferral() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetDeferral(&result)); + } + return winrt::Microsoft::UI::Xaml::DragOperationDeferral{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragStartingEventArgs::GetPosition( + winrt::Microsoft::UI::Xaml::UIElement const& relativeTo) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDragStartingEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDragStartingEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetPosition(*(void**)(&relativeTo), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDragUI::SetContentFromBitmapImage( + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetContentFromBitmapImage(*(void**)(&bitmapImage))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetContentFromBitmapImage(*(void**)(&bitmapImage))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUI::SetContentFromBitmapImage( + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage, + winrt::Windows::Foundation::Point const& anchorPoint) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromBitmapImageWithAnchorPoint( + *(void**)(&bitmapImage), impl::bind_in(anchorPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromBitmapImageWithAnchorPoint( + *(void**)(&bitmapImage), impl::bind_in(anchorPoint))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUI::SetContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmap( + *(void**)(&softwareBitmap))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmap( + *(void**)(&softwareBitmap))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUI::SetContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap, + winrt::Windows::Foundation::Point const& anchorPoint) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmapWithAnchorPoint( + *(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmapWithAnchorPoint( + *(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUI::SetContentFromDataPackage() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromDataPackage()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromDataPackage()); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::Caption() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Caption(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Caption(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::Caption( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Caption(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Caption(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::IsContentVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsContentVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsContentVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::IsContentVisible( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsContentVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsContentVisible(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::IsCaptionVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsCaptionVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsCaptionVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::IsCaptionVisible( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsCaptionVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsCaptionVisible(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::IsGlyphVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsGlyphVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsGlyphVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::IsGlyphVisible( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsGlyphVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsGlyphVisible(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::Clear() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Clear()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Clear()); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::SetContentFromBitmapImage( + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetContentFromBitmapImage(*(void**)(&bitmapImage))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetContentFromBitmapImage(*(void**)(&bitmapImage))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::SetContentFromBitmapImage( + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage, + winrt::Windows::Foundation::Point const& anchorPoint) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromBitmapImageWithAnchorPoint( + *(void**)(&bitmapImage), impl::bind_in(anchorPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromBitmapImageWithAnchorPoint( + *(void**)(&bitmapImage), impl::bind_in(anchorPoint))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::SetContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmap( + *(void**)(&softwareBitmap))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmap( + *(void**)(&softwareBitmap))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDragUIOverride::SetContentFromSoftwareBitmap( + winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap, + winrt::Windows::Foundation::Point const& anchorPoint) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmapWithAnchorPoint( + *(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetContentFromSoftwareBitmapWithAnchorPoint( + *(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); + } +} +template +auto consume_Microsoft_UI_Xaml_IDropCompletedEventArgs::DropResult() const { + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDropCompletedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDropCompletedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_DropResult(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::Automatic() const { + winrt::Microsoft::UI::Xaml::Duration value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Automatic(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Automatic(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::Forever() const { + winrt::Microsoft::UI::Xaml::Duration value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Forever(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Forever(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::Compare( + winrt::Microsoft::UI::Xaml::Duration const& duration1, + winrt::Microsoft::UI::Xaml::Duration const& duration2) const { + int32_t result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Compare(impl::bind_in(duration1), + impl::bind_in(duration2), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Compare(impl::bind_in(duration1), + impl::bind_in(duration2), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::FromTimeSpan( + winrt::Windows::Foundation::TimeSpan const& timeSpan) const { + winrt::Microsoft::UI::Xaml::Duration result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromTimeSpan(impl::bind_in(timeSpan), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromTimeSpan(impl::bind_in(timeSpan), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::GetHasTimeSpan( + winrt::Microsoft::UI::Xaml::Duration const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetHasTimeSpan(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetHasTimeSpan(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::Add( + winrt::Microsoft::UI::Xaml::Duration const& target, + winrt::Microsoft::UI::Xaml::Duration const& duration) const { + winrt::Microsoft::UI::Xaml::Duration result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Add( + impl::bind_in(target), impl::bind_in(duration), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Add( + impl::bind_in(target), impl::bind_in(duration), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::Equals( + winrt::Microsoft::UI::Xaml::Duration const& target, + winrt::Microsoft::UI::Xaml::Duration const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IDurationHelperStatics::Subtract( + winrt::Microsoft::UI::Xaml::Duration const& target, + winrt::Microsoft::UI::Xaml::Duration const& duration) const { + winrt::Microsoft::UI::Xaml::Duration result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IDurationHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IDurationHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Subtract( + impl::bind_in(target), impl::bind_in(duration), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Subtract( + impl::bind_in(target), impl::bind_in(duration), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IEffectiveViewportChangedEventArgs< + D>::EffectiveViewport() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IEffectiveViewportChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_EffectiveViewport(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_EffectiveViewport(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IEffectiveViewportChangedEventArgs< + D>::MaxViewport() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IEffectiveViewportChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxViewport(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxViewport(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IEffectiveViewportChangedEventArgs< + D>::BringIntoViewDistanceX() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IEffectiveViewportChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BringIntoViewDistanceX(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BringIntoViewDistanceX(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IEffectiveViewportChangedEventArgs< + D>::BringIntoViewDistanceY() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IEffectiveViewportChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BringIntoViewDistanceY(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BringIntoViewDistanceY(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactory::GetElement( + winrt::Microsoft::UI::Xaml::ElementFactoryGetArgs const& args) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetElement(*(void**)(&args), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetElement(*(void**)(&args), &result)); + } + return winrt::Microsoft::UI::Xaml::UIElement{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactory::RecycleElement( + winrt::Microsoft::UI::Xaml::ElementFactoryRecycleArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RecycleElement(*(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RecycleElement(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryGetArgs::Data() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Data(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Data(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryGetArgs::Data( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Data(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryGetArgs::Parent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryGetArgs::Parent( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryGetArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Parent(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Parent(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryGetArgsFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryGetArgsFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::ElementFactoryGetArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryRecycleArgs::Element() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Element(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Element(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryRecycleArgs::Element( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Element(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Element(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryRecycleArgs::Parent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryRecycleArgs::Parent( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Parent(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Parent(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementFactoryRecycleArgsFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgsFactory, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::ElementFactoryRecycleArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::Volume() const { + double value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Volume(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Volume(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::Volume( + double value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Volume(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Volume(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::State() const { + winrt::Microsoft::UI::Xaml::ElementSoundPlayerState value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_State(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::State( + winrt::Microsoft::UI::Xaml::ElementSoundPlayerState const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_State(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_State(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::SpatialAudioMode() + const { + winrt::Microsoft::UI::Xaml::ElementSpatialAudioMode value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SpatialAudioMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SpatialAudioMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::SpatialAudioMode( + winrt::Microsoft::UI::Xaml::ElementSpatialAudioMode const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_SpatialAudioMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_SpatialAudioMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IElementSoundPlayerStatics::Play( + winrt::Microsoft::UI::Xaml::ElementSoundKind const& sound) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IElementSoundPlayerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Play(static_cast(sound))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Play(static_cast(sound))); + } +} +template +auto consume_Microsoft_UI_Xaml_IEventTrigger::RoutedEvent() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IEventTrigger>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RoutedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RoutedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IEventTrigger::RoutedEvent( + winrt::Microsoft::UI::Xaml::RoutedEvent const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IEventTrigger>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RoutedEvent(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RoutedEvent(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IEventTrigger::Actions() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IEventTrigger>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Actions(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Actions(&value)); + } + return winrt::Microsoft::UI::Xaml::TriggerActionCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IExceptionRoutedEventArgs::ErrorMessage() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IExceptionRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IExceptionRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorMessage(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorMessage(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Triggers() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Triggers(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Triggers(&value)); + } + return winrt::Microsoft::UI::Xaml::TriggerCollection{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Resources() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Resources(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Resources(&value)); + } + return winrt::Microsoft::UI::Xaml::ResourceDictionary{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Resources( + winrt::Microsoft::UI::Xaml::ResourceDictionary const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Resources(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Resources(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Tag() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Tag(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Tag(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Tag( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Tag(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Tag(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Language() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Language(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Language(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Language( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Language(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Language(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::ActualWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::ActualHeight() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Width() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Width(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Width(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Width(double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Width(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Width(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Height() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Height(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Height(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Height( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Height(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Height(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MinWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MinWidth( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinWidth(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinWidth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MaxWidth() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxWidth(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxWidth(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MaxWidth( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxWidth(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxWidth(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MinHeight() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MinHeight( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MinHeight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MinHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MaxHeight() const { + double value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHeight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHeight(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::MaxHeight( + double value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_MaxHeight(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_MaxHeight(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::HorizontalAlignment() + const { + winrt::Microsoft::UI::Xaml::HorizontalAlignment value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::HorizontalAlignment( + winrt::Microsoft::UI::Xaml::HorizontalAlignment const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_HorizontalAlignment(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_HorizontalAlignment(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::VerticalAlignment() const { + winrt::Microsoft::UI::Xaml::VerticalAlignment value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAlignment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAlignment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::VerticalAlignment( + winrt::Microsoft::UI::Xaml::VerticalAlignment const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_VerticalAlignment(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_VerticalAlignment(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Margin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Margin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Margin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Margin( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Margin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Margin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Name() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Name( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Name(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::BaseUri() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BaseUri(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BaseUri(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::DataContext() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataContext(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataContext(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::DataContext( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_DataContext(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_DataContext(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::AllowFocusOnInteraction() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::AllowFocusOnInteraction( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FocusVisualMargin() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusVisualMargin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusVisualMargin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FocusVisualMargin( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FocusVisualMargin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FocusVisualMargin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement< + D>::FocusVisualSecondaryThickness() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusVisualSecondaryThickness(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusVisualSecondaryThickness(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement:: + FocusVisualSecondaryThickness( + winrt::Microsoft::UI::Xaml::Thickness const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_FocusVisualSecondaryThickness( + impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_FocusVisualSecondaryThickness( + impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement< + D>::FocusVisualPrimaryThickness() const { + winrt::Microsoft::UI::Xaml::Thickness value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusVisualPrimaryThickness(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusVisualPrimaryThickness(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement< + D>::FocusVisualPrimaryThickness(winrt::Microsoft::UI::Xaml::Thickness const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FocusVisualPrimaryThickness(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FocusVisualPrimaryThickness(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FocusVisualSecondaryBrush() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusVisualSecondaryBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusVisualSecondaryBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FocusVisualSecondaryBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FocusVisualSecondaryBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FocusVisualSecondaryBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FocusVisualPrimaryBrush() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusVisualPrimaryBrush(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusVisualPrimaryBrush(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Brush{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FocusVisualPrimaryBrush( + winrt::Microsoft::UI::Xaml::Media::Brush const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FocusVisualPrimaryBrush(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FocusVisualPrimaryBrush(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::AllowFocusWhenDisabled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::AllowFocusWhenDisabled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowFocusWhenDisabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowFocusWhenDisabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Style() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Style(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Style(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Style( + winrt::Microsoft::UI::Xaml::Style const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Style(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Style(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Parent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Parent(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FlowDirection() const { + winrt::Microsoft::UI::Xaml::FlowDirection value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FlowDirection(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FlowDirection(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FlowDirection( + winrt::Microsoft::UI::Xaml::FlowDirection const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_FlowDirection(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_FlowDirection(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::RequestedTheme() const { + winrt::Microsoft::UI::Xaml::ElementTheme value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedTheme( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedTheme( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::RequestedTheme( + winrt::Microsoft::UI::Xaml::ElementTheme const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RequestedTheme(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RequestedTheme(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::IsLoaded() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsLoaded(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsLoaded(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::ActualTheme() const { + winrt::Microsoft::UI::Xaml::ElementTheme value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ActualTheme(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ActualTheme(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Loaded( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Loaded(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Loaded(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Loaded( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, Loaded(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Loaded( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Loaded(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Loaded(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Unloaded( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Unloaded(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Unloaded(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Unloaded( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, Unloaded(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Unloaded( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Unloaded(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Unloaded(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::DataContextChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Microsoft::UI::Xaml::DataContextChangedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DataContextChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DataContextChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::DataContextChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Microsoft::UI::Xaml::DataContextChangedEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, DataContextChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::DataContextChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DataContextChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DataContextChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::SizeChanged( + winrt::Microsoft::UI::Xaml::SizeChangedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_SizeChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_SizeChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::SizeChanged( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::SizeChangedEventHandler const& handler) const { + return impl::make_event_revoker(this, + SizeChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::SizeChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SizeChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_SizeChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::LayoutUpdated( + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_LayoutUpdated(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_LayoutUpdated(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::LayoutUpdated( + auto_revoke_t, + winrt::Windows::Foundation::EventHandler< + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, LayoutUpdated(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::LayoutUpdated( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LayoutUpdated(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LayoutUpdated(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Loading( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Loading(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Loading(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Loading( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker(this, Loading(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::Loading( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Loading(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Loading(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::ActualThemeChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Windows::Foundation::IInspectable> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ActualThemeChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ActualThemeChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::ActualThemeChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Windows::Foundation::IInspectable> const& handler) const { + return impl::make_event_revoker( + this, ActualThemeChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::ActualThemeChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ActualThemeChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ActualThemeChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::EffectiveViewportChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Microsoft::UI::Xaml::EffectiveViewportChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_EffectiveViewportChanged( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_EffectiveViewportChanged( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::EffectiveViewportChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::FrameworkElement, + winrt::Microsoft::UI::Xaml::EffectiveViewportChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, EffectiveViewportChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::EffectiveViewportChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_EffectiveViewportChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_EffectiveViewportChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::FindName( + param::hstring const& name) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindName(*(void**)(&name), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindName(*(void**)(&name), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::SetBinding( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp, + winrt::Microsoft::UI::Xaml::Data::BindingBase const& binding) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->SetBinding(*(void**)(&dp), *(void**)(&binding))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->SetBinding(*(void**)(&dp), *(void**)(&binding))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElement::GetBindingExpression( + winrt::Microsoft::UI::Xaml::DependencyProperty const& dp) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElement>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetBindingExpression(*(void**)(&dp), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetBindingExpression(*(void**)(&dp), &result)); + } + return winrt::Microsoft::UI::Xaml::Data::BindingExpression{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::FrameworkElement{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementOverrides::MeasureOverride( + winrt::Windows::Foundation::Size const& availableSize) const { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->MeasureOverride(impl::bind_in(availableSize), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->MeasureOverride(impl::bind_in(availableSize), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementOverrides::ArrangeOverride( + winrt::Windows::Foundation::Size const& finalSize) const { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ArrangeOverride(impl::bind_in(finalSize), + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ArrangeOverride(impl::bind_in(finalSize), + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementOverrides::OnApplyTemplate() + const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnApplyTemplate()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnApplyTemplate()); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementOverrides< + D>::GoToElementStateCore(param::hstring const& stateName, + bool useTransitions) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoToElementStateCore( + *(void**)(&stateName), useTransitions, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GoToElementStateCore( + *(void**)(&stateName), useTransitions, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementProtected< + D>::InvalidateViewport() const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateViewport()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateViewport()); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::TagProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TagProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TagProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::LanguageProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LanguageProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LanguageProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::ActualWidthProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::ActualHeightProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::WidthProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::HeightProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::MinWidthProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::MaxWidthProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxWidthProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxWidthProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::MinHeightProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MinHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MinHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::MaxHeightProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MaxHeightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MaxHeightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::HorizontalAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HorizontalAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::VerticalAlignmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VerticalAlignmentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VerticalAlignmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::MarginProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::NameProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NameProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NameProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::DataContextProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DataContextProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DataContextProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::AllowFocusOnInteractionProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::FocusVisualMarginProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusVisualMarginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusVisualMarginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::FocusVisualSecondaryThicknessProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusVisualSecondaryThicknessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusVisualSecondaryThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::FocusVisualPrimaryThicknessProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusVisualPrimaryThicknessProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusVisualPrimaryThicknessProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::FocusVisualSecondaryBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusVisualSecondaryBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusVisualSecondaryBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::FocusVisualPrimaryBrushProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusVisualPrimaryBrushProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusVisualPrimaryBrushProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::AllowFocusWhenDisabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::StyleProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StyleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StyleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::FlowDirectionProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FlowDirectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FlowDirectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::RequestedThemeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RequestedThemeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RequestedThemeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics< + D>::ActualThemeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualThemeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualThemeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkElementStatics::DeferTree( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkElementStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->DeferTree(*(void**)(&element))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->DeferTree(*(void**)(&element))); + } +} +template +auto consume_Microsoft_UI_Xaml_IFrameworkTemplateFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IFrameworkTemplateFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IFrameworkTemplateFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::FrameworkTemplate{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::Auto() const { + winrt::Microsoft::UI::Xaml::GridLength value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Auto(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Auto(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::FromPixels( + double pixels) const { + winrt::Microsoft::UI::Xaml::GridLength result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromPixels(pixels, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromPixels(pixels, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::FromValueAndType( + double value, winrt::Microsoft::UI::Xaml::GridUnitType const& type) const { + winrt::Microsoft::UI::Xaml::GridLength result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromValueAndType( + value, static_cast(type), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromValueAndType( + value, static_cast(type), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::GetIsAbsolute( + winrt::Microsoft::UI::Xaml::GridLength const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetIsAbsolute(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetIsAbsolute(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::GetIsAuto( + winrt::Microsoft::UI::Xaml::GridLength const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsAuto(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsAuto(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::GetIsStar( + winrt::Microsoft::UI::Xaml::GridLength const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsStar(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsStar(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IGridLengthHelperStatics::Equals( + winrt::Microsoft::UI::Xaml::GridLength const& target, + winrt::Microsoft::UI::Xaml::GridLength const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IGridLengthHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_ILaunchActivatedEventArgs::Arguments() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ILaunchActivatedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ILaunchActivatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Arguments(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Arguments(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ILaunchActivatedEventArgs< + D>::UWPLaunchActivatedEventArgs() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ILaunchActivatedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ILaunchActivatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UWPLaunchActivatedEventArgs(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UWPLaunchActivatedEventArgs(&value)); + } + return winrt::Windows::ApplicationModel::Activation::LaunchActivatedEventArgs{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IMediaFailedRoutedEventArgs::ErrorTrace() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IMediaFailedRoutedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IMediaFailedRoutedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ErrorTrace(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ErrorTrace(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPointHelperStatics::FromCoordinates( + float x, float y) const { + winrt::Windows::Foundation::Point result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPointHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPointHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromCoordinates(x, y, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromCoordinates(x, y, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadata::DefaultValue() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadata>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DefaultValue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DefaultValue(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadata< + D>::CreateDefaultValueCallback() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadata>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CreateDefaultValueCallback(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CreateDefaultValueCallback(&value)); + } + return winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadataFactory:: + CreateInstanceWithDefaultValue( + winrt::Windows::Foundation::IInspectable const& defaultValue, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadataFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyMetadataFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDefaultValue( + *(void**)(&defaultValue), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDefaultValue( + *(void**)(&defaultValue), *(void**)(&baseInterface), + impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadataFactory:: + CreateInstanceWithDefaultValueAndCallback( + winrt::Windows::Foundation::IInspectable const& defaultValue, + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const& + propertyChangedCallback, + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadataFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyMetadataFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstanceWithDefaultValueAndCallback( + *(void**)(&defaultValue), *(void**)(&propertyChangedCallback), + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstanceWithDefaultValueAndCallback( + *(void**)(&defaultValue), *(void**)(&propertyChangedCallback), + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadataStatics::Create( + winrt::Windows::Foundation::IInspectable const& defaultValue) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithDefaultValue( + *(void**)(&defaultValue), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithDefaultValue( + *(void**)(&defaultValue), &result)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadataStatics::Create( + winrt::Windows::Foundation::IInspectable const& defaultValue, + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const& + propertyChangedCallback) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithDefaultValueAndCallback( + *(void**)(&defaultValue), *(void**)(&propertyChangedCallback), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithDefaultValueAndCallback( + *(void**)(&defaultValue), *(void**)(&propertyChangedCallback), + &result)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadataStatics::Create( + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback const& + createDefaultValueCallback) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithFactory( + *(void**)(&createDefaultValueCallback), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithFactory( + *(void**)(&createDefaultValueCallback), &result)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyMetadataStatics::Create( + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback const& + createDefaultValueCallback, + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const& + propertyChangedCallback) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyMetadataStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateWithFactoryAndCallback( + *(void**)(&createDefaultValueCallback), + *(void**)(&propertyChangedCallback), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateWithFactoryAndCallback( + *(void**)(&createDefaultValueCallback), + *(void**)(&propertyChangedCallback), &result)); + } + return winrt::Microsoft::UI::Xaml::PropertyMetadata{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyPath::Path() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IPropertyPath>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Path(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Path(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IPropertyPathFactory::CreateInstance( + param::hstring const& path) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IPropertyPathFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IPropertyPathFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&path), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&path), &value)); + } + return winrt::Microsoft::UI::Xaml::PropertyPath{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::Empty() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Empty(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Empty(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics< + D>::FromCoordinatesAndDimensions(float x, float y, float width, + float height) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromCoordinatesAndDimensions( + x, y, width, height, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromCoordinatesAndDimensions( + x, y, width, height, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::FromPoints( + winrt::Windows::Foundation::Point const& point1, + winrt::Windows::Foundation::Point const& point2) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromPoints( + impl::bind_in(point1), impl::bind_in(point2), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromPoints( + impl::bind_in(point1), impl::bind_in(point2), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::FromLocationAndSize( + winrt::Windows::Foundation::Point const& location, + winrt::Windows::Foundation::Size const& size) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromLocationAndSize( + impl::bind_in(location), impl::bind_in(size), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromLocationAndSize( + impl::bind_in(location), impl::bind_in(size), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::GetIsEmpty( + winrt::Windows::Foundation::Rect const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsEmpty(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsEmpty(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::GetBottom( + winrt::Windows::Foundation::Rect const& target) const { + float result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetBottom(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetBottom(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::GetLeft( + winrt::Windows::Foundation::Rect const& target) const { + float result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetLeft(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetLeft(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::GetRight( + winrt::Windows::Foundation::Rect const& target) const { + float result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetRight(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetRight(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::GetTop( + winrt::Windows::Foundation::Rect const& target) const { + float result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetTop(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetTop(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::Contains( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Point const& point) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Contains(impl::bind_in(target), + impl::bind_in(point), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Contains(impl::bind_in(target), + impl::bind_in(point), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::Equals( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Rect const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::Intersect( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Rect const& rect) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Intersect( + impl::bind_in(target), impl::bind_in(rect), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Intersect( + impl::bind_in(target), impl::bind_in(rect), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::Union( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Point const& point) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UnionWithPoint( + impl::bind_in(target), impl::bind_in(point), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->UnionWithPoint( + impl::bind_in(target), impl::bind_in(point), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IRectHelperStatics::Union( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Rect const& rect) const { + winrt::Windows::Foundation::Rect result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRectHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UnionWithRect( + impl::bind_in(target), impl::bind_in(rect), put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->UnionWithRect( + impl::bind_in(target), impl::bind_in(rect), put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IResourceDictionary::Source() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IResourceDictionary>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceDictionary, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Source(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Source(&value)); + } + return winrt::Windows::Foundation::Uri{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IResourceDictionary::Source( + winrt::Windows::Foundation::Uri const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IResourceDictionary>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceDictionary, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Source(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IResourceDictionary::MergedDictionaries() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IResourceDictionary>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceDictionary, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_MergedDictionaries(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_MergedDictionaries(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::ResourceDictionary>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IResourceDictionary::ThemeDictionaries() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IResourceDictionary>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceDictionary, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ThemeDictionaries(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ThemeDictionaries(&value)); + } + return winrt::Windows::Foundation::Collections::IMap< + winrt::Windows::Foundation::IInspectable, + winrt::Windows::Foundation::IInspectable>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IResourceDictionaryFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IResourceDictionaryFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceDictionaryFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::ResourceDictionary{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IResourceManagerRequestedEventArgs< + D>::CustomResourceManager() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceManagerRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CustomResourceManager(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CustomResourceManager(&value)); + } + return winrt::Microsoft::Windows::ApplicationModel::Resources:: + IResourceManager{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IResourceManagerRequestedEventArgs:: + CustomResourceManager(winrt::Microsoft::Windows::ApplicationModel:: + Resources::IResourceManager const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IResourceManagerRequestedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CustomResourceManager(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CustomResourceManager(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IRoutedEventArgs::OriginalSource() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OriginalSource(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OriginalSource(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IRoutedEventArgsFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IRoutedEventArgsFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IRoutedEventArgsFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEventArgs{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IScalarTransition::Duration() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IScalarTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IScalarTransition::Duration( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IScalarTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IScalarTransitionFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IScalarTransitionFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IScalarTransitionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::ScalarTransition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ISetter::Property() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Property(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Property(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ISetter::Property( + winrt::Microsoft::UI::Xaml::DependencyProperty const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Property(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Property(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_ISetter::Value() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Value(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Value(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ISetter::Value( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Value(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Value(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_ISetter::Target() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Target(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + return winrt::Microsoft::UI::Xaml::TargetPropertyPath{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ISetter::Target( + winrt::Microsoft::UI::Xaml::TargetPropertyPath const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_ISetterBase::IsSealed() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSealed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSealed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_ISetterBaseCollection::IsSealed() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISetterBaseCollection>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ISetterBaseCollection, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSealed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSealed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_ISetterFactory::CreateInstance( + winrt::Microsoft::UI::Xaml::DependencyProperty const& targetProperty, + winrt::Windows::Foundation::IInspectable const& value) const { + void* instance{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::ISetterFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&targetProperty), *(void**)(&value), &instance)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&targetProperty), *(void**)(&value), &instance)); + } + return winrt::Microsoft::UI::Xaml::Setter{instance, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ISizeChangedEventArgs::PreviousSize() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISizeChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ISizeChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviousSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviousSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_ISizeChangedEventArgs::NewSize() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISizeChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ISizeChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NewSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_ISizeHelperStatics::Empty() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISizeHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Empty(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Empty(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_ISizeHelperStatics::FromDimensions( + float width, float height) const { + winrt::Windows::Foundation::Size result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISizeHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->FromDimensions(width, height, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->FromDimensions(width, height, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_ISizeHelperStatics::GetIsEmpty( + winrt::Windows::Foundation::Size const& target) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISizeHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetIsEmpty(impl::bind_in(target), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetIsEmpty(impl::bind_in(target), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_ISizeHelperStatics::Equals( + winrt::Windows::Foundation::Size const& target, + winrt::Windows::Foundation::Size const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ISizeHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Equals(impl::bind_in(target), + impl::bind_in(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IStateTrigger::IsActive() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IStateTrigger>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActive(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IStateTrigger::IsActive(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IStateTrigger>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsActive(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsActive(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IStateTriggerBaseFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IStateTriggerBaseFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IStateTriggerBaseFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::StateTriggerBase{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IStateTriggerBaseProtected::SetActive( + bool IsActive) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IStateTriggerBaseProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IStateTriggerBaseProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetActive(IsActive)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetActive(IsActive)); + } +} +template +auto consume_Microsoft_UI_Xaml_IStateTriggerStatics::IsActiveProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IStateTriggerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IStateTriggerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsActiveProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsActiveProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IStyle::IsSealed() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsSealed(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsSealed(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IStyle::Setters() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Setters(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Setters(&value)); + } + return winrt::Microsoft::UI::Xaml::SetterBaseCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IStyle::TargetType() const { + winrt::Windows::UI::Xaml::Interop::TypeName value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TargetType(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TargetType(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IStyle::TargetType( + winrt::Windows::UI::Xaml::Interop::TypeName const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TargetType(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TargetType(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IStyle::BasedOn() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BasedOn(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BasedOn(&value)); + } + return winrt::Microsoft::UI::Xaml::Style{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IStyle::BasedOn( + winrt::Microsoft::UI::Xaml::Style const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_BasedOn(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_BasedOn(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IStyle::Seal() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Seal()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Seal()); + } +} +template +auto consume_Microsoft_UI_Xaml_IStyleFactory::CreateInstance( + winrt::Windows::UI::Xaml::Interop::TypeName const& targetType) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IStyleFactory>**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(impl::bind_in(targetType), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(impl::bind_in(targetType), &value)); + } + return winrt::Microsoft::UI::Xaml::Style{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ITargetPropertyPath::Path() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ITargetPropertyPath>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ITargetPropertyPath, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Path(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Path(&value)); + } + return winrt::Microsoft::UI::Xaml::PropertyPath{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ITargetPropertyPath::Path( + winrt::Microsoft::UI::Xaml::PropertyPath const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ITargetPropertyPath>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ITargetPropertyPath, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Path(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Path(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_ITargetPropertyPath::Target() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ITargetPropertyPath>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ITargetPropertyPath, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Target(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Target(&value)); + } + return winrt::Windows::Foundation::IInspectable{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_ITargetPropertyPath::Target( + winrt::Windows::Foundation::IInspectable const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::ITargetPropertyPath>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ITargetPropertyPath, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Target(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_ITargetPropertyPathFactory::CreateInstance( + winrt::Microsoft::UI::Xaml::DependencyProperty const& targetProperty) + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::ITargetPropertyPathFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::ITargetPropertyPathFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&targetProperty), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->CreateInstance(*(void**)(&targetProperty), &value)); + } + return winrt::Microsoft::UI::Xaml::TargetPropertyPath{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IThicknessHelperStatics::FromLengths( + double left, double top, double right, double bottom) const { + winrt::Microsoft::UI::Xaml::Thickness result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IThicknessHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IThicknessHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FromLengths(left, top, right, bottom, + put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FromLengths(left, top, right, bottom, + put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IThicknessHelperStatics::FromUniformLength( + double uniformLength) const { + winrt::Microsoft::UI::Xaml::Thickness result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IThicknessHelperStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IThicknessHelperStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->FromUniformLength(uniformLength, put_abi(result))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->FromUniformLength(uniformLength, put_abi(result))); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DesiredSize() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DesiredSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DesiredSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AllowDrop() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowDrop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowDrop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AllowDrop(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AllowDrop(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AllowDrop(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Opacity() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Opacity(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Opacity(double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Opacity(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Clip() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Clip(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Clip(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::RectangleGeometry{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Clip( + winrt::Microsoft::UI::Xaml::Media::RectangleGeometry const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Clip(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Clip(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RenderTransform() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RenderTransform(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RenderTransform(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Transform{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RenderTransform( + winrt::Microsoft::UI::Xaml::Media::Transform const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RenderTransform(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RenderTransform(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Projection() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Projection(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Projection(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Projection{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Projection( + winrt::Microsoft::UI::Xaml::Media::Projection const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Projection(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Projection(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Transform3D() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transform3D(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transform3D(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Transform3D( + winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Transform3D(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Transform3D(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RenderTransformOrigin() const { + winrt::Windows::Foundation::Point value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RenderTransformOrigin(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RenderTransformOrigin(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RenderTransformOrigin( + winrt::Windows::Foundation::Point const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_RenderTransformOrigin(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_RenderTransformOrigin(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsHitTestVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHitTestVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHitTestVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsHitTestVisible( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHitTestVisible(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHitTestVisible(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Visibility() const { + winrt::Microsoft::UI::Xaml::Visibility value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Visibility(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Visibility(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Visibility( + winrt::Microsoft::UI::Xaml::Visibility const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Visibility(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Visibility(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RenderSize() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RenderSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RenderSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::UseLayoutRounding() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseLayoutRounding(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseLayoutRounding(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::UseLayoutRounding( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UseLayoutRounding(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UseLayoutRounding(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Transitions() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transitions(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transitions(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Transitions( + winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Transitions(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Transitions(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CacheMode() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheMode(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheMode(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::CacheMode{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CacheMode( + winrt::Microsoft::UI::Xaml::Media::CacheMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CacheMode(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CacheMode(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsTapEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTapEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTapEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsTapEnabled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTapEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTapEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsDoubleTapEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDoubleTapEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDoubleTapEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsDoubleTapEnabled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsDoubleTapEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsDoubleTapEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CanDrag() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDrag(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDrag(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CanDrag(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanDrag(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanDrag(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsRightTapEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRightTapEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRightTapEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsRightTapEnabled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsRightTapEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsRightTapEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsHoldingEnabled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHoldingEnabled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHoldingEnabled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsHoldingEnabled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsHoldingEnabled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsHoldingEnabled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationMode() const { + winrt::Microsoft::UI::Xaml::Input::ManipulationModes value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationMode( + winrt::Microsoft::UI::Xaml::Input::ManipulationModes const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ManipulationMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ManipulationMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCaptures() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerCaptures(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerCaptures(&value)); + } + return winrt::Windows::Foundation::Collections::IVectorView< + winrt::Microsoft::UI::Xaml::Input::Pointer>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextFlyout() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContextFlyout(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContextFlyout(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextFlyout( + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ContextFlyout(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ContextFlyout(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CompositeMode() const { + winrt::Microsoft::UI::Xaml::Media::ElementCompositeMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CompositeMode(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CompositeMode(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CompositeMode( + winrt::Microsoft::UI::Xaml::Media::ElementCompositeMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_CompositeMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_CompositeMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Lights() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Lights(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Lights(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Media::XamlLight>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CanBeScrollAnchor() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanBeScrollAnchor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanBeScrollAnchor(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CanBeScrollAnchor( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CanBeScrollAnchor(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CanBeScrollAnchor(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement< + D>::ExitDisplayModeOnAccessKeyInvoked() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvoked(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvoked(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ExitDisplayModeOnAccessKeyInvoked( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_ExitDisplayModeOnAccessKeyInvoked(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_ExitDisplayModeOnAccessKeyInvoked(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsAccessKeyScope() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAccessKeyScope(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAccessKeyScope(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsAccessKeyScope( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsAccessKeyScope(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsAccessKeyScope(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyScopeOwner() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwner(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwner(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyScopeOwner( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AccessKeyScopeOwner(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AccessKeyScopeOwner(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKey() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKey(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKey(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKey( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_AccessKey(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_AccessKey(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipPlacementMode() const { + winrt::Microsoft::UI::Xaml::Input::KeyTipPlacementMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipPlacementMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipPlacementMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipPlacementMode( + winrt::Microsoft::UI::Xaml::Input::KeyTipPlacementMode const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_KeyTipPlacementMode(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_KeyTipPlacementMode(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipHorizontalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipHorizontalOffset( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTipHorizontalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTipHorizontalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipVerticalOffset() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffset(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffset(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipVerticalOffset( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTipVerticalOffset(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTipVerticalOffset(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyTipTarget( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyTipTarget(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyTipTarget(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusKeyboardNavigation() + const { + winrt::Microsoft::UI::Xaml::Input::XYFocusKeyboardNavigationMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusKeyboardNavigation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusKeyboardNavigation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusKeyboardNavigation( + winrt::Microsoft::UI::Xaml::Input::XYFocusKeyboardNavigationMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusKeyboardNavigation( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusKeyboardNavigation( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusUpNavigationStrategy() + const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusUpNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusUpNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusUpNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusUpNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusUpNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusDownNavigationStrategy() + const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusDownNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusDownNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusDownNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusDownNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusDownNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusLeftNavigationStrategy() + const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusLeftNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusLeftNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusLeftNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusLeftNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusLeftNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusRightNavigationStrategy() + const { + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusRightNavigationStrategy( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusRightNavigationStrategy( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusRightNavigationStrategy( + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusRightNavigationStrategy( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusRightNavigationStrategy( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyboardAccelerators() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAccelerators(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAccelerators(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::Input::KeyboardAccelerator>{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement< + D>::KeyboardAcceleratorPlacementTarget() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeyboardAcceleratorPlacementTarget(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeyboardAcceleratorPlacementTarget(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement:: + KeyboardAcceleratorPlacementTarget( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorPlacementTarget( + *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorPlacementTarget( + *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyboardAcceleratorPlacementMode() + const { + winrt::Microsoft::UI::Xaml::Input::KeyboardAcceleratorPlacementMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorPlacementMode( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyboardAcceleratorPlacementMode( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyboardAcceleratorPlacementMode( + winrt::Microsoft::UI::Xaml::Input::KeyboardAcceleratorPlacementMode const& + value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorPlacementMode( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_KeyboardAcceleratorPlacementMode( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::HighContrastAdjustment() const { + winrt::Microsoft::UI::Xaml::ElementHighContrastAdjustment value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HighContrastAdjustment( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HighContrastAdjustment( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::HighContrastAdjustment( + winrt::Microsoft::UI::Xaml::ElementHighContrastAdjustment const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_HighContrastAdjustment( + static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_HighContrastAdjustment( + static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TabFocusNavigation() const { + winrt::Microsoft::UI::Xaml::Input::KeyboardNavigationMode value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabFocusNavigation( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabFocusNavigation( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TabFocusNavigation( + winrt::Microsoft::UI::Xaml::Input::KeyboardNavigationMode const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TabFocusNavigation(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TabFocusNavigation(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::OpacityTransition() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpacityTransition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpacityTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::ScalarTransition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::OpacityTransition( + winrt::Microsoft::UI::Xaml::ScalarTransition const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OpacityTransition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_OpacityTransition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Translation() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Translation(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Translation(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Translation( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Translation(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Translation(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TranslationTransition() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TranslationTransition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TranslationTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::Vector3Transition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TranslationTransition( + winrt::Microsoft::UI::Xaml::Vector3Transition const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_TranslationTransition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_TranslationTransition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Rotation() const { + float value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Rotation(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Rotation(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Rotation(float value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Rotation(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Rotation(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RotationTransition() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationTransition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::ScalarTransition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RotationTransition( + winrt::Microsoft::UI::Xaml::ScalarTransition const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationTransition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationTransition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Scale() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Scale(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Scale( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Scale(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ScaleTransition() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ScaleTransition(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ScaleTransition(&value)); + } + return winrt::Microsoft::UI::Xaml::Vector3Transition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ScaleTransition( + winrt::Microsoft::UI::Xaml::Vector3Transition const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ScaleTransition(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ScaleTransition(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TransformMatrix() const { + winrt::Windows::Foundation::Numerics::float4x4 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransformMatrix(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TransformMatrix(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CenterPoint() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CenterPoint(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CenterPoint( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_CenterPoint(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RotationAxis() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RotationAxis(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RotationAxis(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RotationAxis( + winrt::Windows::Foundation::Numerics::float3 const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RotationAxis(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RotationAxis(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ActualOffset() const { + winrt::Windows::Foundation::Numerics::float3 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualOffset(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualOffset(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ActualSize() const { + winrt::Windows::Foundation::Numerics::float2 value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ActualSize(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XamlRoot() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XamlRoot(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XamlRoot(&value)); + } + return winrt::Microsoft::UI::Xaml::XamlRoot{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XamlRoot( + winrt::Microsoft::UI::Xaml::XamlRoot const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Shadow() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Shadow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Shadow(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Shadow{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Shadow( + winrt::Microsoft::UI::Xaml::Media::Shadow const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Shadow(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Shadow(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RasterizationScale() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RasterizationScale( + double value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_RasterizationScale(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_RasterizationScale(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::FocusState() const { + winrt::Microsoft::UI::Xaml::FocusState value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_FocusState(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::UseSystemFocusVisuals() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseSystemFocusVisuals(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseSystemFocusVisuals(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::UseSystemFocusVisuals( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_UseSystemFocusVisuals(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_UseSystemFocusVisuals(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusLeft() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusLeft(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusLeft(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusLeft( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusLeft(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusLeft(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusRight() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusRight(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusRight(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusRight( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusRight(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusRight(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusUp() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusUp(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusUp(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusUp( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusUp(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusUp(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusDown() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusDown(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusDown(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyObject{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::XYFocusDown( + winrt::Microsoft::UI::Xaml::DependencyObject const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_XYFocusDown(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_XYFocusDown(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsTabStop() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTabStop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTabStop(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::IsTabStop(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_IsTabStop(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_IsTabStop(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TabIndex() const { + int32_t value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabIndex(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabIndex(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TabIndex(int32_t value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_TabIndex(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_TabIndex(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyUp( + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_KeyUp(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_KeyUp(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyUp( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + return impl::make_event_revoker(this, KeyUp(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyUp( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_KeyUp(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_KeyUp(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyDown( + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_KeyDown(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_KeyDown(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyDown( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + return impl::make_event_revoker(this, KeyDown(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::KeyDown( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_KeyDown(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_KeyDown(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::GotFocus( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GotFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::GotFocus( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, GotFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::GotFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GotFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::LostFocus( + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_LostFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::LostFocus( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::RoutedEventHandler const& handler) const { + return impl::make_event_revoker(this, + LostFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::LostFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LostFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragStarting( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::DragStartingEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DragStarting(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_DragStarting(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragStarting( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::DragStartingEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, DragStarting(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragStarting( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DragStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DropCompleted( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::DropCompletedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_DropCompleted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_DropCompleted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DropCompleted( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::DropCompletedEventArgs> const& handler) + const { + return impl::make_event_revoker( + this, DropCompleted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DropCompleted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DropCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DropCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CharacterReceived( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + CharacterReceivedRoutedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CharacterReceived(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CharacterReceived(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CharacterReceived( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + CharacterReceivedRoutedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, CharacterReceived(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CharacterReceived( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CharacterReceived(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CharacterReceived(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragEnter( + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DragEnter(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_DragEnter(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragEnter( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + return impl::make_event_revoker(this, + DragEnter(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragEnter( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragEnter(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DragEnter(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragLeave( + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DragLeave(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_DragLeave(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragLeave( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + return impl::make_event_revoker(this, + DragLeave(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragLeave( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragLeave(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DragLeave(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragOver( + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DragOver(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_DragOver(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragOver( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + return impl::make_event_revoker(this, DragOver(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DragOver( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DragOver(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DragOver(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Drop( + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Drop(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Drop(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Drop( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::DragEventHandler const& handler) const { + return impl::make_event_revoker(this, Drop(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Drop( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Drop(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Drop(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerPressed( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerPressed(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerPressed( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerPressed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerPressed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerPressed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerMoved( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_PointerMoved(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerMoved( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerMoved(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerMoved( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerMoved(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerReleased( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerReleased(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerReleased( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerReleased(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerReleased( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerReleased(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerEntered( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerEntered(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerEntered( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerEntered(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerEntered( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerEntered(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerExited( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerExited(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerExited( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerExited(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerExited( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerExited(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCaptureLost( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerCaptureLost(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerCaptureLost(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCaptureLost( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerCaptureLost(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCaptureLost( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerCaptureLost(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerCaptureLost(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCanceled( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerCanceled(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerCanceled(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCanceled( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerCanceled(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerCanceled( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerCanceled(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerCanceled(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerWheelChanged( + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PointerWheelChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PointerWheelChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerWheelChanged( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const& handler) + const { + return impl::make_event_revoker( + this, PointerWheelChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PointerWheelChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PointerWheelChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PointerWheelChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Tapped( + winrt::Microsoft::UI::Xaml::Input::TappedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Tapped(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Tapped(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Tapped( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::TappedEventHandler const& handler) + const { + return impl::make_event_revoker(this, Tapped(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Tapped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Tapped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Tapped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DoubleTapped( + winrt::Microsoft::UI::Xaml::Input::DoubleTappedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_DoubleTapped(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_DoubleTapped(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DoubleTapped( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::DoubleTappedEventHandler const& handler) + const { + return impl::make_event_revoker( + this, DoubleTapped(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::DoubleTapped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_DoubleTapped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_DoubleTapped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Holding( + winrt::Microsoft::UI::Xaml::Input::HoldingEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Holding(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Holding(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Holding( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::HoldingEventHandler const& handler) + const { + return impl::make_event_revoker(this, Holding(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Holding( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Holding(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Holding(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::ContextRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextRequested(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextRequested(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::ContextRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, ContextRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ContextRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextCanceled( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::RoutedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ContextCanceled(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ContextCanceled(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextCanceled( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::RoutedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ContextCanceled(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ContextCanceled( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ContextCanceled(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ContextCanceled(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RightTapped( + winrt::Microsoft::UI::Xaml::Input::RightTappedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_RightTapped(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_RightTapped(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RightTapped( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::RightTappedEventHandler const& handler) + const { + return impl::make_event_revoker(this, + RightTapped(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RightTapped( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_RightTapped(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_RightTapped(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationStarting( + winrt::Microsoft::UI::Xaml::Input::ManipulationStartingEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationStarting(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationStarting(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationStarting( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::ManipulationStartingEventHandler const& + handler) const { + return impl::make_event_revoker( + this, ManipulationStarting(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationStarting( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationInertiaStarting( + winrt::Microsoft::UI::Xaml::Input:: + ManipulationInertiaStartingEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationInertiaStarting( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationInertiaStarting( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationInertiaStarting( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input:: + ManipulationInertiaStartingEventHandler const& handler) const { + return impl::make_event_revoker( + this, ManipulationInertiaStarting(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationInertiaStarting( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationInertiaStarting(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationInertiaStarting(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationStarted( + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationStarted(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationStarted(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationStarted( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::ManipulationStartedEventHandler const& + handler) const { + return impl::make_event_revoker( + this, ManipulationStarted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationStarted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationStarted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationStarted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationDelta( + winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationDelta(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationDelta(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationDelta( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::ManipulationDeltaEventHandler const& + handler) const { + return impl::make_event_revoker( + this, ManipulationDelta(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationDelta( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationDelta(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationDelta(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationCompleted( + winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedEventHandler const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ManipulationCompleted( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ManipulationCompleted( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationCompleted( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::ManipulationCompletedEventHandler const& + handler) const { + return impl::make_event_revoker( + this, ManipulationCompleted(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ManipulationCompleted( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ManipulationCompleted(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ManipulationCompleted(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyDisplayRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayRequestedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyDisplayRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayRequestedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, AccessKeyDisplayRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyDisplayRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AccessKeyDisplayRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AccessKeyDisplayRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyDisplayDismissed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayDismissedEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayDismissed( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AccessKeyDisplayDismissed( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyDisplayDismissed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + AccessKeyDisplayDismissedEventArgs> const& handler) const { + return impl::make_event_revoker( + this, AccessKeyDisplayDismissed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyDisplayDismissed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AccessKeyDisplayDismissed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AccessKeyDisplayDismissed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyInvoked( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::AccessKeyInvokedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_AccessKeyInvoked(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_AccessKeyInvoked(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyInvoked( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::AccessKeyInvokedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, AccessKeyInvoked(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AccessKeyInvoked( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_AccessKeyInvoked(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_AccessKeyInvoked(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ProcessKeyboardAccelerators( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_ProcessKeyboardAccelerators( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_ProcessKeyboardAccelerators( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ProcessKeyboardAccelerators( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs> const& handler) const { + return impl::make_event_revoker( + this, ProcessKeyboardAccelerators(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ProcessKeyboardAccelerators( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_ProcessKeyboardAccelerators(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_ProcessKeyboardAccelerators(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::GettingFocus( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::GettingFocusEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_GettingFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_GettingFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::GettingFocus( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::GettingFocusEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, GettingFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::GettingFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_GettingFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_GettingFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::LosingFocus( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::LosingFocusEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_LosingFocus(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_LosingFocus(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::LosingFocus( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input::LosingFocusEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + LosingFocus(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::LosingFocus( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_LosingFocus(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_LosingFocus(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::NoFocusCandidateFound( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + NoFocusCandidateFoundEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_NoFocusCandidateFound( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_NoFocusCandidateFound( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::NoFocusCandidateFound( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::Input:: + NoFocusCandidateFoundEventArgs> const& handler) const { + return impl::make_event_revoker( + this, NoFocusCandidateFound(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::NoFocusCandidateFound( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_NoFocusCandidateFound(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_NoFocusCandidateFound(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PreviewKeyDown( + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_PreviewKeyDown(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_PreviewKeyDown(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PreviewKeyDown( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + return impl::make_event_revoker( + this, PreviewKeyDown(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PreviewKeyDown( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PreviewKeyDown(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PreviewKeyDown(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PreviewKeyUp( + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_PreviewKeyUp(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_PreviewKeyUp(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PreviewKeyUp( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const& handler) const { + return impl::make_event_revoker( + this, PreviewKeyUp(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::PreviewKeyUp( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_PreviewKeyUp(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_PreviewKeyUp(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::BringIntoViewRequested( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::BringIntoViewRequestedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_BringIntoViewRequested( + *(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_BringIntoViewRequested( + *(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::BringIntoViewRequested( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::UIElement, + winrt::Microsoft::UI::Xaml::BringIntoViewRequestedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, BringIntoViewRequested(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::BringIntoViewRequested( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_BringIntoViewRequested(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_BringIntoViewRequested(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Measure( + winrt::Windows::Foundation::Size const& availableSize) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Measure(impl::bind_in(availableSize))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Measure(impl::bind_in(availableSize))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Arrange( + winrt::Windows::Foundation::Rect const& finalRect) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Arrange(impl::bind_in(finalRect))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Arrange(impl::bind_in(finalRect))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CapturePointer( + winrt::Microsoft::UI::Xaml::Input::Pointer const& value) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CapturePointer(*(void**)(&value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CapturePointer(*(void**)(&value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ReleasePointerCapture( + winrt::Microsoft::UI::Xaml::Input::Pointer const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ReleasePointerCapture(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ReleasePointerCapture(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::ReleasePointerCaptures() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->ReleasePointerCaptures()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->ReleasePointerCaptures()); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::AddHandler( + winrt::Microsoft::UI::Xaml::RoutedEvent const& routedEvent, + winrt::Windows::Foundation::IInspectable const& handler, + bool handledEventsToo) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->AddHandler( + *(void**)(&routedEvent), *(void**)(&handler), handledEventsToo)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->AddHandler( + *(void**)(&routedEvent), *(void**)(&handler), handledEventsToo)); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::RemoveHandler( + winrt::Microsoft::UI::Xaml::RoutedEvent const& routedEvent, + winrt::Windows::Foundation::IInspectable const& handler) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RemoveHandler(*(void**)(&routedEvent), + *(void**)(&handler))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RemoveHandler(*(void**)(&routedEvent), + *(void**)(&handler))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TransformToVisual( + winrt::Microsoft::UI::Xaml::UIElement const& visual) const { + void* result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TransformToVisual(*(void**)(&visual), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TransformToVisual(*(void**)(&visual), &result)); + } + return winrt::Microsoft::UI::Xaml::Media::GeneralTransform{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::InvalidateMeasure() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateMeasure()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateMeasure()); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::InvalidateArrange() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->InvalidateArrange()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->InvalidateArrange()); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::UpdateLayout() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->UpdateLayout()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->UpdateLayout()); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::CancelDirectManipulations() + const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CancelDirectManipulations(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CancelDirectManipulations(&result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::StartDragAsync( + winrt::Microsoft::UI::Input::PointerPoint const& pointerPoint) const { + void* operation{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->StartDragAsync(*(void**)(&pointerPoint), &operation)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->StartDragAsync(*(void**)(&pointerPoint), &operation)); + } + return winrt::Windows::Foundation::IAsyncOperation< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>{ + operation, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::StartBringIntoView() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartBringIntoView()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StartBringIntoView()); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::StartBringIntoView( + winrt::Microsoft::UI::Xaml::BringIntoViewOptions const& options) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->StartBringIntoViewWithOptions(*(void**)(&options))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->StartBringIntoViewWithOptions(*(void**)(&options))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::TryInvokeKeyboardAccelerator( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->TryInvokeKeyboardAccelerator(*(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->TryInvokeKeyboardAccelerator(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::Focus( + winrt::Microsoft::UI::Xaml::FocusState const& value) const { + bool result{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Focus(static_cast(value), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Focus(static_cast(value), &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::StartAnimation( + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StartAnimation(*(void**)(&animation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StartAnimation(*(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElement::StopAnimation( + winrt::Microsoft::UI::Composition::ICompositionAnimationBase const& + animation) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->StopAnimation(*(void**)(&animation))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->StopAnimation(*(void**)(&animation))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides::OnCreateAutomationPeer() + const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnCreateAutomationPeer(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnCreateAutomationPeer(&result)); + } + return winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides< + D>::OnDisconnectVisualChildren() const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnDisconnectVisualChildren()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnDisconnectVisualChildren()); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides:: + FindSubElementsForTouchTargeting( + winrt::Windows::Foundation::Point const& point, + winrt::Windows::Foundation::Rect const& boundingRect) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->FindSubElementsForTouchTargeting( + impl::bind_in(point), impl::bind_in(boundingRect), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->FindSubElementsForTouchTargeting( + impl::bind_in(point), impl::bind_in(boundingRect), &result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Windows::Foundation::Collections::IIterable< + winrt::Windows::Foundation::Point>>{result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides< + D>::GetChildrenInTabFocusOrder() const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetChildrenInTabFocusOrder(&result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetChildrenInTabFocusOrder(&result)); + } + return winrt::Windows::Foundation::Collections::IIterable< + winrt::Microsoft::UI::Xaml::DependencyObject>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides:: + OnKeyboardAcceleratorInvoked( + winrt::Microsoft::UI::Xaml::Input:: + KeyboardAcceleratorInvokedEventArgs const& args) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->OnKeyboardAcceleratorInvoked(*(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->OnKeyboardAcceleratorInvoked(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides:: + OnProcessKeyboardAccelerators( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->OnProcessKeyboardAccelerators(*(void**)(&args))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->OnProcessKeyboardAccelerators(*(void**)(&args))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides::OnBringIntoViewRequested( + winrt::Microsoft::UI::Xaml::BringIntoViewRequestedEventArgs const& e) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->OnBringIntoViewRequested(*(void**)(&e))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->OnBringIntoViewRequested(*(void**)(&e))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementOverrides:: + PopulatePropertyInfoOverride( + param::hstring const& propertyName, + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const& + animationPropertyInfo) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->PopulatePropertyInfoOverride( + *(void**)(&propertyName), *(void**)(&animationPropertyInfo))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->PopulatePropertyInfoOverride( + *(void**)(&propertyName), *(void**)(&animationPropertyInfo))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementProtected::ProtectedCursor() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProtectedCursor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProtectedCursor(&value)); + } + return winrt::Microsoft::UI::Input::InputCursor{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementProtected::ProtectedCursor( + winrt::Microsoft::UI::Input::InputCursor const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ProtectedCursor(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ProtectedCursor(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::KeyDownEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyDownEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyDownEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::KeyUpEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyUpEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyUpEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerEnteredEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerEnteredEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerEnteredEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerPressedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerPressedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerPressedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerMovedEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerMovedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerMovedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerReleasedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerReleasedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerReleasedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerExitedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerExitedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerExitedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerCaptureLostEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerCaptureLostEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerCaptureLostEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerCanceledEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerCanceledEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerCanceledEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerWheelChangedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerWheelChangedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerWheelChangedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::TappedEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TappedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TappedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::DoubleTappedEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DoubleTappedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DoubleTappedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::HoldingEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HoldingEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HoldingEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::RightTappedEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RightTappedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RightTappedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ManipulationStartingEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationStartingEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationStartingEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::ManipulationInertiaStartingEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ManipulationInertiaStartingEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ManipulationInertiaStartingEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ManipulationStartedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationStartedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationStartedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ManipulationDeltaEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationDeltaEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationDeltaEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::ManipulationCompletedEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationCompletedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationCompletedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::DragEnterEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragEnterEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragEnterEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::DragLeaveEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragLeaveEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragLeaveEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::DragOverEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DragOverEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DragOverEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::DropEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DropEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DropEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::GettingFocusEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GettingFocusEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GettingFocusEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::LosingFocusEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LosingFocusEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LosingFocusEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::NoFocusCandidateFoundEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NoFocusCandidateFoundEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_NoFocusCandidateFoundEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PreviewKeyDownEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviewKeyDownEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviewKeyDownEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::CharacterReceivedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CharacterReceivedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CharacterReceivedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PreviewKeyUpEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PreviewKeyUpEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PreviewKeyUpEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::BringIntoViewRequestedEvent() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_BringIntoViewRequestedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_BringIntoViewRequestedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ContextRequestedEvent() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContextRequestedEvent(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContextRequestedEvent(&value)); + } + return winrt::Microsoft::UI::Xaml::RoutedEvent{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::AllowDropProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AllowDropProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AllowDropProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::OpacityProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OpacityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_OpacityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ClipProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ClipProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ClipProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::RenderTransformProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RenderTransformProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RenderTransformProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ProjectionProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ProjectionProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ProjectionProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::Transform3DProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transform3DProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transform3DProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::RenderTransformOriginProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RenderTransformOriginProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RenderTransformOriginProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::IsHitTestVisibleProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHitTestVisibleProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHitTestVisibleProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::VisibilityProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_VisibilityProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_VisibilityProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::UseLayoutRoundingProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseLayoutRoundingProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseLayoutRoundingProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::TransitionsProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TransitionsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TransitionsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::CacheModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CacheModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CacheModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::IsTapEnabledProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTapEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTapEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::IsDoubleTapEnabledProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsDoubleTapEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsDoubleTapEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::CanDragProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanDragProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanDragProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::IsRightTapEnabledProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsRightTapEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsRightTapEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::IsHoldingEnabledProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHoldingEnabledProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHoldingEnabledProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ManipulationModeProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ManipulationModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ManipulationModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::PointerCapturesProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_PointerCapturesProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_PointerCapturesProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ContextFlyoutProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContextFlyoutProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContextFlyoutProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::CompositeModeProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CompositeModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CompositeModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::LightsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_LightsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_LightsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::CanBeScrollAnchorProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CanBeScrollAnchorProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CanBeScrollAnchorProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::ExitDisplayModeOnAccessKeyInvokedProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvokedProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_ExitDisplayModeOnAccessKeyInvokedProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::IsAccessKeyScopeProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsAccessKeyScopeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsAccessKeyScopeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::AccessKeyScopeOwnerProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwnerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyScopeOwnerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::AccessKeyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AccessKeyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::KeyTipPlacementModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipPlacementModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipPlacementModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::KeyTipHorizontalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipHorizontalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::KeyTipVerticalOffsetProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffsetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipVerticalOffsetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::KeyTipTargetProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_KeyTipTargetProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_KeyTipTargetProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::XYFocusKeyboardNavigationProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusKeyboardNavigationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusKeyboardNavigationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::XYFocusUpNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusUpNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusUpNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::XYFocusDownNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusDownNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusDownNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::XYFocusLeftNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusLeftNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusLeftNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::XYFocusRightNavigationStrategyProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_XYFocusRightNavigationStrategyProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_XYFocusRightNavigationStrategyProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::KeyboardAcceleratorPlacementTargetProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeyboardAcceleratorPlacementTargetProperty( + &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeyboardAcceleratorPlacementTargetProperty( + &value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::KeyboardAcceleratorPlacementModeProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_KeyboardAcceleratorPlacementModeProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_KeyboardAcceleratorPlacementModeProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::HighContrastAdjustmentProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_HighContrastAdjustmentProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_HighContrastAdjustmentProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::TabFocusNavigationProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabFocusNavigationProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabFocusNavigationProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::ShadowProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ShadowProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ShadowProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::FocusStateProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_FocusStateProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_FocusStateProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics< + D>::UseSystemFocusVisualsProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_UseSystemFocusVisualsProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_UseSystemFocusVisualsProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::XYFocusLeftProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusLeftProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusLeftProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::XYFocusRightProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusRightProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusRightProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::XYFocusUpProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusUpProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusUpProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::XYFocusDownProperty() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_XYFocusDownProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_XYFocusDownProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::IsTabStopProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsTabStopProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsTabStopProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::TabIndexProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_TabIndexProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_TabIndexProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::TryStartDirectManipulation( + winrt::Microsoft::UI::Xaml::Input::Pointer const& value) const { + bool result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->TryStartDirectManipulation(*(void**)(&value), + &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->TryStartDirectManipulation(*(void**)(&value), + &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IUIElementStatics::RegisterAsScrollPort( + winrt::Microsoft::UI::Xaml::UIElement const& element) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IUIElementStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RegisterAsScrollPort(*(void**)(&element))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->RegisterAsScrollPort(*(void**)(&element))); + } +} +template +auto consume_Microsoft_UI_Xaml_IUIElementWeakCollectionFactory:: + CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUIElementWeakCollectionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IUIElementWeakCollectionFactory>**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::UIElementWeakCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUnhandledExceptionEventArgs::Exception() + const { + winrt::hresult value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Exception(put_abi(value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Exception(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUnhandledExceptionEventArgs::Message() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Message(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Message(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IUnhandledExceptionEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IUnhandledExceptionEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IUnhandledExceptionEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IVector3Transition::Duration() const { + winrt::Windows::Foundation::TimeSpan value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVector3Transition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Duration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IVector3Transition::Duration( + winrt::Windows::Foundation::TimeSpan const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVector3Transition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Duration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVector3Transition::Components() const { + winrt::Microsoft::UI::Xaml::Vector3TransitionComponents value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVector3Transition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_Components(reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_Components(reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IVector3Transition::Components( + winrt::Microsoft::UI::Xaml::Vector3TransitionComponents const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVector3Transition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_Components(static_cast(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_Components(static_cast(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVector3TransitionFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVector3TransitionFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVector3TransitionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Vector3Transition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualState::Name() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualState::Storyboard() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Storyboard(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Storyboard(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualState::Storyboard( + winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard const& value) + const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Storyboard(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Storyboard(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualState::Setters() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Setters(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Setters(&value)); + } + return winrt::Microsoft::UI::Xaml::SetterBaseCollection{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualState::StateTriggers() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_StateTriggers(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_StateTriggers(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::StateTriggerBase>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateChangedEventArgs::OldState() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_OldState(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_OldState(&value)); + } + return winrt::Microsoft::UI::Xaml::VisualState{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateChangedEventArgs::OldState( + winrt::Microsoft::UI::Xaml::VisualState const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_OldState(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_OldState(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateChangedEventArgs::NewState() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_NewState(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_NewState(&value)); + } + return winrt::Microsoft::UI::Xaml::VisualState{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateChangedEventArgs::NewState( + winrt::Microsoft::UI::Xaml::VisualState const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_NewState(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_NewState(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateChangedEventArgs::Control() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Control(&value)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->get_Control(&value)); + } + return winrt::Microsoft::UI::Xaml::Controls::Control{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateChangedEventArgs::Control( + winrt::Microsoft::UI::Xaml::Controls::Control const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Control(*(void**)(&value))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->put_Control(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::Name() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Name(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Name(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::Transitions() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Transitions(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Transitions(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::VisualTransition>{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::States() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_States(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_States(&value)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::VisualState>{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentState() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CurrentState(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CurrentState(&value)); + } + return winrt::Microsoft::UI::Xaml::VisualState{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentStateChanged( + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CurrentStateChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CurrentStateChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentStateChanged( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler const& handler) + const { + return impl::make_event_revoker( + this, CurrentStateChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentStateChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CurrentStateChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CurrentStateChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentStateChanging( + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_CurrentStateChanging(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_CurrentStateChanging(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentStateChanging( + auto_revoke_t, + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler const& handler) + const { + return impl::make_event_revoker( + this, CurrentStateChanging(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateGroup::CurrentStateChanging( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualStateGroup>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_CurrentStateChanging(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_CurrentStateChanging(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::VisualStateManager{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerOverrides::GoToStateCore( + winrt::Microsoft::UI::Xaml::Controls::Control const& control, + winrt::Microsoft::UI::Xaml::FrameworkElement const& templateRoot, + param::hstring const& stateName, + winrt::Microsoft::UI::Xaml::VisualStateGroup const& group, + winrt::Microsoft::UI::Xaml::VisualState const& state, + bool useTransitions) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerOverrides>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerOverrides, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoToStateCore( + *(void**)(&control), *(void**)(&templateRoot), *(void**)(&stateName), + *(void**)(&group), *(void**)(&state), useTransitions, &result)); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->GoToStateCore( + *(void**)(&control), *(void**)(&templateRoot), *(void**)(&stateName), + *(void**)(&group), *(void**)(&state), useTransitions, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerProtected:: + RaiseCurrentStateChanging( + winrt::Microsoft::UI::Xaml::VisualStateGroup const& stateGroup, + winrt::Microsoft::UI::Xaml::VisualState const& oldState, + winrt::Microsoft::UI::Xaml::VisualState const& newState, + winrt::Microsoft::UI::Xaml::Controls::Control const& control) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RaiseCurrentStateChanging( + *(void**)(&stateGroup), *(void**)(&oldState), *(void**)(&newState), + *(void**)(&control))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->RaiseCurrentStateChanging( + *(void**)(&stateGroup), *(void**)(&oldState), *(void**)(&newState), + *(void**)(&control))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerProtected:: + RaiseCurrentStateChanged( + winrt::Microsoft::UI::Xaml::VisualStateGroup const& stateGroup, + winrt::Microsoft::UI::Xaml::VisualState const& oldState, + winrt::Microsoft::UI::Xaml::VisualState const& newState, + winrt::Microsoft::UI::Xaml::Controls::Control const& control) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerProtected>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerProtected, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->RaiseCurrentStateChanged( + *(void**)(&stateGroup), *(void**)(&oldState), *(void**)(&newState), + *(void**)(&control))); + } else { + auto const _winrt_abi_type = *( + abi_t**)this; + check_hresult(_winrt_abi_type->RaiseCurrentStateChanged( + *(void**)(&stateGroup), *(void**)(&oldState), *(void**)(&newState), + *(void**)(&control))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerStatics< + D>::GetVisualStateGroups(winrt::Microsoft::UI::Xaml::FrameworkElement const& + obj) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetVisualStateGroups(*(void**)(&obj), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetVisualStateGroups(*(void**)(&obj), &result)); + } + return winrt::Windows::Foundation::Collections::IVector< + winrt::Microsoft::UI::Xaml::VisualStateGroup>{result, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerStatics< + D>::CustomVisualStateManagerProperty() const { + void* value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->get_CustomVisualStateManagerProperty(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->get_CustomVisualStateManagerProperty(&value)); + } + return winrt::Microsoft::UI::Xaml::DependencyProperty{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerStatics:: + GetCustomVisualStateManager( + winrt::Microsoft::UI::Xaml::FrameworkElement const& obj) const { + void* result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->GetCustomVisualStateManager(*(void**)(&obj), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->GetCustomVisualStateManager(*(void**)(&obj), &result)); + } + return winrt::Microsoft::UI::Xaml::VisualStateManager{ + result, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerStatics:: + SetCustomVisualStateManager( + winrt::Microsoft::UI::Xaml::FrameworkElement const& obj, + winrt::Microsoft::UI::Xaml::VisualStateManager const& value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetCustomVisualStateManager( + *(void**)(&obj), *(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetCustomVisualStateManager( + *(void**)(&obj), *(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualStateManagerStatics::GoToState( + winrt::Microsoft::UI::Xaml::Controls::Control const& control, + param::hstring const& stateName, bool useTransitions) const { + bool result{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualStateManagerStatics, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GoToState( + *(void**)(&control), *(void**)(&stateName), useTransitions, &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GoToState( + *(void**)(&control), *(void**)(&stateName), useTransitions, &result)); + } + return result; +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::GeneratedDuration() const { + winrt::Microsoft::UI::Xaml::Duration value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GeneratedDuration(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GeneratedDuration(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::GeneratedDuration( + winrt::Microsoft::UI::Xaml::Duration const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_GeneratedDuration(impl::bind_in(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_GeneratedDuration(impl::bind_in(value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::GeneratedEasingFunction() + const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_GeneratedEasingFunction(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_GeneratedEasingFunction(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::GeneratedEasingFunction( + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase const& + value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->put_GeneratedEasingFunction(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->put_GeneratedEasingFunction(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::To() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_To(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_To(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::To( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_To(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::From() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_From(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_From(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::From( + param::hstring const& value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_From(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::Storyboard() const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Storyboard(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Storyboard(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransition::Storyboard( + winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard const& value) + const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransition>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Storyboard(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Storyboard(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IVisualTransitionFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IVisualTransitionFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IVisualTransitionFactory, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::VisualTransition{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Bounds() const { + winrt::Windows::Foundation::Rect value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Bounds(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Visible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Visible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Visible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Content() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Content( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::CoreWindow() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoreWindow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoreWindow(&value)); + } + return winrt::Windows::UI::Core::CoreWindow{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Compositor() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Compositor(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Compositor(&value)); + } + return winrt::Microsoft::UI::Composition::Compositor{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Dispatcher() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Dispatcher(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Dispatcher(&value)); + } + return winrt::Windows::UI::Core::CoreDispatcher{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::DispatcherQueue() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_DispatcherQueue(&value)); + } + return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Title() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Title(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Title(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Title( + param::hstring const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Title(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::ExtendsContentIntoTitleBar() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ExtendsContentIntoTitleBar(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ExtendsContentIntoTitleBar(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::ExtendsContentIntoTitleBar( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_ExtendsContentIntoTitleBar(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_ExtendsContentIntoTitleBar(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Activated( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowActivatedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Activated(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Activated(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Activated( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowActivatedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + Activated(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Activated( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Activated(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Activated(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Closed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowEventArgs> const& handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Closed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowEventArgs> const& handler) const { + return impl::make_event_revoker(this, Closed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Closed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Closed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::SizeChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowSizeChangedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_SizeChanged(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_SizeChanged(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::SizeChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowSizeChangedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, + SizeChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IWindow::SizeChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_SizeChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_SizeChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::VisibilityChanged( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowVisibilityChangedEventArgs> const& + handler) const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->add_VisibilityChanged(*(void**)(&handler), + put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->add_VisibilityChanged(*(void**)(&handler), + put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IWindow::VisibilityChanged( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Windows::Foundation::IInspectable, + winrt::Microsoft::UI::Xaml::WindowVisibilityChangedEventArgs> const& + handler) const { + return impl::make_event_revoker( + this, VisibilityChanged(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IWindow::VisibilityChanged( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_VisibilityChanged(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_VisibilityChanged(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Activate() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Activate()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Activate()); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::Close() const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->Close()); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->Close()); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow::SetTitleBar( + winrt::Microsoft::UI::Xaml::UIElement const& titleBar) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->SetTitleBar(*(void**)(&titleBar))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->SetTitleBar(*(void**)(&titleBar))); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow2::SystemBackdrop() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindow2::SystemBackdrop( + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindow2::AppWindow() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_AppWindow(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_AppWindow(&value)); + } + return winrt::Microsoft::UI::Windowing::AppWindow{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindowActivatedEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IWindowActivatedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowActivatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindowActivatedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IWindowActivatedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowActivatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindowActivatedEventArgs< + D>::WindowActivationState() const { + winrt::Microsoft::UI::Xaml::WindowActivationState value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IWindowActivatedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowActivatedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_WindowActivationState( + reinterpret_cast(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_WindowActivationState( + reinterpret_cast(&value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindowEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindowEventArgs::Handled(bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindowFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IWindowFactory>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::Window{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindowSizeChangedEventArgs::Handled() const { + bool value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IWindowSizeChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowSizeChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindowSizeChangedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IWindowSizeChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowSizeChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindowSizeChangedEventArgs::Size() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v< + D, + winrt::Microsoft::UI::Xaml::IWindowSizeChangedEventArgs>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowSizeChangedEventArgs, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindowStatics::Current() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml::IWindowStatics>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Current(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Current(&value)); + } + return winrt::Microsoft::UI::Xaml::Window{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IWindowVisibilityChangedEventArgs::Handled() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowVisibilityChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Handled(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IWindowVisibilityChangedEventArgs::Handled( + bool value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowVisibilityChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Handled(value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Handled(value)); + } +} +template +auto consume_Microsoft_UI_Xaml_IWindowVisibilityChangedEventArgs::Visible() + const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IWindowVisibilityChangedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Visible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Visible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IXamlIsland::Content() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlIsland::Content( + winrt::Microsoft::UI::Xaml::UIElement const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_Content(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IXamlIsland::ContentIsland() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentIsland(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentIsland(&value)); + } + return winrt::Microsoft::UI::Content::ContentIsland{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlIsland::SystemBackdrop() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_SystemBackdrop(&value)); + } + return winrt::Microsoft::UI::Xaml::Media::SystemBackdrop{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlIsland::SystemBackdrop( + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const& value) const { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = *( + abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->put_SystemBackdrop(*(void**)(&value))); + } +} +template +auto consume_Microsoft_UI_Xaml_IXamlIslandFactory::CreateInstance( + winrt::Windows::Foundation::IInspectable const& baseInterface, + winrt::Windows::Foundation::IInspectable& innerInterface) const { + void* value{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IXamlIslandFactory>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->CreateInstance( + *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); + } + return winrt::Microsoft::UI::Xaml::XamlIsland{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlResourceReferenceFailedEventArgs< + D>::Message() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IXamlResourceReferenceFailedEventArgs, + D const*>(static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t< + winrt::Microsoft::UI::Xaml:: + IXamlResourceReferenceFailedEventArgs>**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Message(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Message(&value)); + } + return hstring{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::Content() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Content(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Content(&value)); + } + return winrt::Microsoft::UI::Xaml::UIElement{value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::Size() const { + winrt::Windows::Foundation::Size value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_Size(put_abi(value))); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::RasterizationScale() const { + double value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_RasterizationScale(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::IsHostVisible() const { + bool value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_IsHostVisible(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_IsHostVisible(&value)); + } + return value; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::Changed( + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::XamlRoot, + winrt::Microsoft::UI::Xaml::XamlRootChangedEventArgs> const& handler) + const { + winrt::event_token token{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult( + _winrt_abi_type->add_Changed(*(void**)(&handler), put_abi(token))); + } + return token; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::Changed( + auto_revoke_t, + winrt::Windows::Foundation::TypedEventHandler< + winrt::Microsoft::UI::Xaml::XamlRoot, + winrt::Microsoft::UI::Xaml::XamlRootChangedEventArgs> const& handler) + const { + return impl::make_event_revoker(this, Changed(handler)); +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot::Changed( + winrt::event_token const& token) const noexcept { + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + _winrt_abi_type->remove_Changed(impl::bind_in(token)); + } +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot2::ContentIslandEnvironment() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentIslandEnvironment(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentIslandEnvironment(&value)); + } + return winrt::Microsoft::UI::Content::ContentIslandEnvironment{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot3::CoordinateConverter() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_CoordinateConverter(&value)); + } + return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ + value, take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlRoot4::ContentIsland() const { + void* value{}; + if constexpr (!std::is_same_v) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = + impl::try_as_with_reason(static_cast(this), + _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->get_ContentIsland(&value)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->get_ContentIsland(&value)); + } + return winrt::Microsoft::UI::Content::ContentIsland{value, + take_ownership_from_abi}; +} +template +auto consume_Microsoft_UI_Xaml_IXamlServiceProvider::GetService( + winrt::Windows::UI::Xaml::Interop::TypeName const& type) const { + void* result{}; + if constexpr (!std::is_same_v< + D, winrt::Microsoft::UI::Xaml::IXamlServiceProvider>) { + winrt::hresult _winrt_cast_result_code; + auto const _winrt_casted_result = impl::try_as_with_reason< + winrt::Microsoft::UI::Xaml::IXamlServiceProvider, D const*>( + static_cast(this), _winrt_cast_result_code); + check_hresult(_winrt_cast_result_code); + auto const _winrt_abi_type = + *(abi_t**)&_winrt_casted_result; + check_hresult(_winrt_abi_type->GetService(impl::bind_in(type), &result)); + } else { + auto const _winrt_abi_type = + *(abi_t**)this; + check_hresult(_winrt_abi_type->GetService(impl::bind_in(type), &result)); + } + return winrt::Windows::Foundation::IInspectable{result, + take_ownership_from_abi}; +} +template +struct delegate + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::ApplicationInitializationCallback, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::ApplicationInitializationCallback, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* p) noexcept final try { + (*this)( + *reinterpret_cast( + &p)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::BindingFailedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::BindingFailedEventArgs const*>(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate< + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void** result) noexcept final try { + clear_abi(result); + *result = detach_from((*this)()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::DependencyPropertyChangedCallback, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::DependencyPropertyChangedCallback, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* dp) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate< + winrt::Microsoft::UI::Xaml::DependencyPropertyChangedEventHandler, H> + final + : implements_delegate< + winrt::Microsoft::UI::Xaml::DependencyPropertyChangedEventHandler, + H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::DependencyPropertyChangedEventHandler, + H>(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::EnteredBackgroundEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::EnteredBackgroundEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ExceptionRoutedEventArgs const*>(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::LeavingBackgroundEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::LeavingBackgroundEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* d, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &d), + *reinterpret_cast(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::SizeChangedEventArgs const*>(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate final + : implements_delegate { + delegate(H&& handler) + : implements_delegate(std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)( + *reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Windows::ApplicationModel::SuspendingEventArgs const*>(&e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::UnhandledExceptionEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::UnhandledExceptionEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::UnhandledExceptionEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct delegate + final : implements_delegate< + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler, H> { + delegate(H&& handler) + : implements_delegate< + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler, H>( + std::forward(handler)) {} + + int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { + (*this)(*reinterpret_cast( + &sender), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::VisualStateChangedEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MinWindowWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWindowWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinWindowWidth(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinWindowWidth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinWindowHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWindowHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinWindowHeight(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinWindowHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_MinWindowWidthProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinWindowWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinWindowHeightProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinWindowHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Resources(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Resources()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Resources(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resources( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ResourceDictionary const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DebugSettings(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DebugSettings()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestedTheme(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RequestedTheme()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RequestedTheme(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RequestedTheme( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualKind(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualKind()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusVisualKind(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusVisualKind( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HighContrastAdjustment(uint32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::ApplicationHighContrastAdjustment>( + this->shim().HighContrastAdjustment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HighContrastAdjustment(uint32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HighContrastAdjustment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_UnhandledException( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().UnhandledException( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::UnhandledExceptionEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_UnhandledException( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().UnhandledException( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Exit() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Exit(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall add_ResourceManagerRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().ResourceManagerRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ResourceManagerRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ResourceManagerRequested( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DispatcherShutdownMode(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherShutdownMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DispatcherShutdownMode(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().DispatcherShutdownMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DispatcherShutdownMode const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::IApplicationInitializationCallbackParams> + : produce_base {}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall OnLaunched(void* args) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnLaunched( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::LaunchActivatedEventArgs const*>( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Current(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Current()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Start(void* callback) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Start( + *reinterpret_cast( + &callback)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LoadComponent(void* component, + void* resourceLocator) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LoadComponent( + *reinterpret_cast( + &component), + *reinterpret_cast( + &resourceLocator)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall LoadComponentWithResourceLocation( + void* component, void* resourceLocator, + int32_t componentResourceLocation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().LoadComponent( + *reinterpret_cast( + &component), + *reinterpret_cast( + &resourceLocator), + *reinterpret_cast( + &componentResourceLocation)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Message(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Message()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AnimationDesired(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnimationDesired()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AnimationDesired(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AnimationDesired(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetRect(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().TargetRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetRect(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetRect( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAlignmentRatio(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalAlignmentRatio(double value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAlignmentRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAlignmentRatio(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalAlignmentRatio(double value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAlignmentRatio(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IBringIntoViewRequestedEventArgs> { + int32_t __stdcall get_TargetElement(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetElement()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetElement(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetElement( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AnimationDesired(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AnimationDesired()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AnimationDesired(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AnimationDesired(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetRect( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetRect()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetRect( + winrt::Windows::Foundation::Rect value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetRect( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAlignmentRatio(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAlignmentRatio(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalAlignmentRatio()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().HorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().VerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Duration(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Duration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Duration(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Duration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_AltHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().AltHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AltHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AltHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AltLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().AltLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AltLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AltLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AltMedium(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().AltMedium()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AltMedium(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AltMedium( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AltMediumHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().AltMediumHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AltMediumHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AltMediumHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AltMediumLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().AltMediumLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AltMediumLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AltMediumLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().BaseHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().BaseLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseMedium(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().BaseMedium()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseMedium(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseMedium( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseMediumHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().BaseMediumHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseMediumHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseMediumHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseMediumLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().BaseMediumLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BaseMediumLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BaseMediumLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeAltLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeAltLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeAltLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeAltLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeBlackHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeBlackHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeBlackHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeBlackHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeBlackLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeBlackLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeBlackLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeBlackLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeBlackMediumLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeBlackMediumLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeBlackMediumLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeBlackMediumLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeBlackMedium(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeBlackMedium()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeBlackMedium(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeBlackMedium( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeDisabledHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeDisabledHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeDisabledHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeDisabledHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeDisabledLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeDisabledLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeDisabledLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeDisabledLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeHigh(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeHigh()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeHigh(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeHigh( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeMedium(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeMedium()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeMedium(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeMedium( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeMediumLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeMediumLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeMediumLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeMediumLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeWhite(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeWhite()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeWhite(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeWhite( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ChromeGray(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ChromeGray()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ChromeGray(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ChromeGray( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListLow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ListLow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListLow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListLow( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ListMedium(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ListMedium()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ListMedium(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ListMedium( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ErrorText(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().ErrorText()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ErrorText(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ErrorText( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Accent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::Foundation::IReference>( + this->shim().Accent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Accent(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Accent( + *reinterpret_cast const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall FromRadii( + double topLeft, double topRight, double bottomRight, double bottomLeft, + struct struct_Microsoft_UI_Xaml_CornerRadius* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromRadii(topLeft, topRight, bottomRight, bottomLeft)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromUniformRadius( + double uniformRadius, + struct struct_Microsoft_UI_Xaml_CornerRadius* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromUniformRadius(uniformRadius)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_NewValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall LoadContent(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().LoadContent()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall ResetTemplate() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ResetTemplate(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessBinding(uint32_t phase, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ProcessBinding(phase)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ProcessBindings(void* arg, int32_t* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().ProcessBindings( + *reinterpret_cast(&arg))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DataType(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DataType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DataType(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DataType( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithType(void* dataType, void* baseInterface, + void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithType( + *reinterpret_cast( + &dataType), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ExtensionInstanceProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExtensionInstanceProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetExtensionInstance(void* element, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetExtensionInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FrameworkElement const*>( + &element))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetExtensionInstance(void* element, + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetExtensionInstance( + *reinterpret_cast( + &element), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::IDataTemplateExtension const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_EnableFrameRateCounter(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().EnableFrameRateCounter()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_EnableFrameRateCounter(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().EnableFrameRateCounter(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsBindingTracingEnabled(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsBindingTracingEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsBindingTracingEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsBindingTracingEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTextPerformanceVisualizationEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().IsTextPerformanceVisualizationEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsTextPerformanceVisualizationEnabled( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsTextPerformanceVisualizationEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FailFastOnErrors(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().FailFastOnErrors()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FailFastOnErrors(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FailFastOnErrors(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_BindingFailed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().BindingFailed( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::BindingFailedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_BindingFailed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().BindingFailed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsXamlResourceReferenceTracingEnabled( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().IsXamlResourceReferenceTracingEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsXamlResourceReferenceTracingEnabled( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsXamlResourceReferenceTracingEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_XamlResourceReferenceFailed( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().XamlResourceReferenceFailed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_XamlResourceReferenceFailed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().XamlResourceReferenceFailed( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_LayoutCycleTracingLevel(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LayoutCycleTracingLevel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LayoutCycleTracingLevel(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutCycleTracingLevel( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::LayoutCycleTracingLevel const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LayoutCycleDebugBreakLevel( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().LayoutCycleDebugBreakLevel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_LayoutCycleDebugBreakLevel(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutCycleDebugBreakLevel( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::LayoutCycleDebugBreakLevel const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetValue(void* dp, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetValue(void* dp, void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp), + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ClearValue(void* dp) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ClearValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ReadLocalValue(void* dp, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ReadLocalValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetAnimationBaseValue(void* dp, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetAnimationBaseValue( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RegisterPropertyChangedCallback( + void* dp, void* callback, int64_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().RegisterPropertyChangedCallback( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp), + *reinterpret_cast( + &callback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall UnregisterPropertyChangedCallback( + void* dp, int64_t token) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UnregisterPropertyChangedCallback( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp), + token); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Dispatcher(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Dispatcher()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IDependencyObjectCollectionFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::DependencyObjectCollection>( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetMetadata( + struct struct_Windows_UI_Xaml_Interop_TypeName forType, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::PropertyMetadata>(this->shim().GetMetadata( + *reinterpret_cast( + &forType))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IDependencyPropertyChangedEventArgs> { + int32_t __stdcall get_Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OldValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewValue()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_UnsetValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UnsetValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Register( + void* name, struct struct_Windows_UI_Xaml_Interop_TypeName propertyType, + struct struct_Windows_UI_Xaml_Interop_TypeName ownerType, + void* typeMetadata, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::DependencyProperty>(this->shim().Register( + *reinterpret_cast(&name), + *reinterpret_cast( + &propertyType), + *reinterpret_cast( + &ownerType), + *reinterpret_cast( + &typeMetadata))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RegisterAttached( + void* name, struct struct_Windows_UI_Xaml_Interop_TypeName propertyType, + struct struct_Windows_UI_Xaml_Interop_TypeName ownerType, + void* defaultMetadata, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().RegisterAttached( + *reinterpret_cast(&name), + *reinterpret_cast( + &propertyType), + *reinterpret_cast( + &ownerType), + *reinterpret_cast( + &defaultMetadata))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Interval(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Interval()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Interval(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Interval( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Tick(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Tick( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Tick(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Tick(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Start() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Start(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Stop() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Stop(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Data(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackage>( + this->shim().Data()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Data(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Data( + *reinterpret_cast< + winrt::Windows::ApplicationModel::DataTransfer::DataPackage const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DataView(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageView>( + this->shim().DataView()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragUIOverride(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragUIOverride()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Modifiers(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Modifiers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AcceptedOperation(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>( + this->shim().AcceptedOperation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AcceptedOperation(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AcceptedOperation( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>( + this->shim().AllowedOperations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDeferral(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPosition( + void* relativeTo, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().GetPosition( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall Complete() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Complete(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Cancel(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Cancel()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Cancel(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Cancel(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Data(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackage>( + this->shim().Data()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragUI(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().DragUI()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>( + this->shim().AllowedOperations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowedOperations(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowedOperations( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetDeferral(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetDeferral()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetPosition( + void* relativeTo, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().GetPosition( + *reinterpret_cast( + &relativeTo))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetContentFromBitmapImage(void* bitmapImage) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromBitmapImage( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const*>( + &bitmapImage)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromBitmapImageWithAnchorPoint( + void* bitmapImage, + winrt::Windows::Foundation::Point anchorPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromBitmapImage( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const*>( + &bitmapImage), + *reinterpret_cast( + &anchorPoint)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromSoftwareBitmap( + void* softwareBitmap) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>( + &softwareBitmap)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromSoftwareBitmapWithAnchorPoint( + void* softwareBitmap, + winrt::Windows::Foundation::Point anchorPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>( + &softwareBitmap), + *reinterpret_cast( + &anchorPoint)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromDataPackage() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromDataPackage(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Caption(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Caption()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Caption(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Caption(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsContentVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsContentVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsContentVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsContentVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsCaptionVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsCaptionVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsCaptionVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsCaptionVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsGlyphVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsGlyphVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsGlyphVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsGlyphVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Clear() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Clear(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromBitmapImage(void* bitmapImage) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromBitmapImage( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const*>( + &bitmapImage)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromBitmapImageWithAnchorPoint( + void* bitmapImage, + winrt::Windows::Foundation::Point anchorPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromBitmapImage( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Imaging::BitmapImage const*>( + &bitmapImage), + *reinterpret_cast( + &anchorPoint)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromSoftwareBitmap( + void* softwareBitmap) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>( + &softwareBitmap)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetContentFromSoftwareBitmapWithAnchorPoint( + void* softwareBitmap, + winrt::Windows::Foundation::Point anchorPoint) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetContentFromSoftwareBitmap( + *reinterpret_cast< + winrt::Windows::Graphics::Imaging::SoftwareBitmap const*>( + &softwareBitmap), + *reinterpret_cast( + &anchorPoint)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DropResult(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation>( + this->shim().DropResult()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Automatic( + struct struct_Microsoft_UI_Xaml_Duration* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Automatic()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Forever( + struct struct_Microsoft_UI_Xaml_Duration* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Forever()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Compare(struct struct_Microsoft_UI_Xaml_Duration duration1, + struct struct_Microsoft_UI_Xaml_Duration duration2, + int32_t* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Compare( + *reinterpret_cast( + &duration1), + *reinterpret_cast( + &duration2))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromTimeSpan( + int64_t timeSpan, + struct struct_Microsoft_UI_Xaml_Duration* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromTimeSpan( + *reinterpret_cast( + &timeSpan))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetHasTimeSpan( + struct struct_Microsoft_UI_Xaml_Duration target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetHasTimeSpan( + *reinterpret_cast( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Add( + struct struct_Microsoft_UI_Xaml_Duration target, + struct struct_Microsoft_UI_Xaml_Duration duration, + struct struct_Microsoft_UI_Xaml_Duration* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().Add( + *reinterpret_cast( + &target), + *reinterpret_cast( + &duration))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Equals(struct struct_Microsoft_UI_Xaml_Duration target, + struct struct_Microsoft_UI_Xaml_Duration value, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Equals( + *reinterpret_cast(&target), + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Subtract( + struct struct_Microsoft_UI_Xaml_Duration target, + struct struct_Microsoft_UI_Xaml_Duration duration, + struct struct_Microsoft_UI_Xaml_Duration* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().Subtract( + *reinterpret_cast( + &target), + *reinterpret_cast( + &duration))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IEffectiveViewportChangedEventArgs> { + int32_t __stdcall get_EffectiveViewport( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().EffectiveViewport()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxViewport( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxViewport()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BringIntoViewDistanceX(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BringIntoViewDistanceX()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BringIntoViewDistanceY(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().BringIntoViewDistanceY()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall GetElement(void* args, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetElement( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ElementFactoryGetArgs const*>( + &args))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RecycleElement(void* args) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RecycleElement( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ElementFactoryRecycleArgs const*>( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Data(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Data()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Data(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Data( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Parent(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Parent( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Element(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Element()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Element(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Element( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Parent(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Parent( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IElementFactoryRecycleArgsFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Volume(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Volume()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Volume(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Volume(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_State(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().State()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_State(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().State( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ElementSoundPlayerState const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SpatialAudioMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SpatialAudioMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SpatialAudioMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SpatialAudioMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ElementSpatialAudioMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Play(int32_t sound) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Play( + *reinterpret_cast( + &sound)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_RoutedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RoutedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RoutedEvent(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RoutedEvent( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Actions(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Actions()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ErrorMessage(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ErrorMessage()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IExceptionRoutedEventArgsFactory> {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Triggers(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Triggers()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Resources(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Resources()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Resources(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Resources( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ResourceDictionary const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Tag(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Tag()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Tag(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Tag( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Language(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Language()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Language(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Language(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ActualHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Width(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Width()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Width(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Width(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Height(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Height()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Height(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Height(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinWidth(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinWidth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxWidth(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxWidth()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxWidth(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxWidth(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MinHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MinHeight(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MinHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxHeight(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().MaxHeight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_MaxHeight(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().MaxHeight(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAlignment(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HorizontalAlignment(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().HorizontalAlignment( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::HorizontalAlignment const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAlignment(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalAlignment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_VerticalAlignment(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().VerticalAlignment( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Margin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Margin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Margin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Margin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Name(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Name(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BaseUri(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().BaseUri()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DataContext(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DataContext()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_DataContext(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DataContext( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusOnInteraction(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowFocusOnInteraction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowFocusOnInteraction(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowFocusOnInteraction(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualMargin( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualMargin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusVisualMargin( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusVisualMargin( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualSecondaryThickness( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualSecondaryThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusVisualSecondaryThickness( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusVisualSecondaryThickness( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualPrimaryThickness( + struct struct_Microsoft_UI_Xaml_Thickness* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualPrimaryThickness()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusVisualPrimaryThickness( + struct struct_Microsoft_UI_Xaml_Thickness value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusVisualPrimaryThickness( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualSecondaryBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualSecondaryBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusVisualSecondaryBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusVisualSecondaryBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualPrimaryBrush(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualPrimaryBrush()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FocusVisualPrimaryBrush(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().FocusVisualPrimaryBrush( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusWhenDisabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowFocusWhenDisabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowFocusWhenDisabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowFocusWhenDisabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Style(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Style()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Style(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Style( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Parent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Parent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowDirection(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlowDirection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_FlowDirection(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().FlowDirection( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestedTheme(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RequestedTheme()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RequestedTheme(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RequestedTheme( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsLoaded(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsLoaded()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualTheme(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualTheme()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Loaded(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Loaded( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Loaded(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Loaded(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Unloaded(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Unloaded( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Unloaded(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Unloaded(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DataContextChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DataContextChanged( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DataContextChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DataContextChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SizeChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SizeChanged( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::SizeChangedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SizeChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SizeChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LayoutUpdated(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LayoutUpdated( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LayoutUpdated( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LayoutUpdated( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Loading(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Loading( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Loading(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Loading(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ActualThemeChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ActualThemeChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ActualThemeChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ActualThemeChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_EffectiveViewportChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().EffectiveViewportChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_EffectiveViewportChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().EffectiveViewportChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall FindName(void* name, void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FindName(*reinterpret_cast(&name))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetBinding(void* dp, void* binding) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetBinding( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp), + *reinterpret_cast( + &binding)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBindingExpression(void* dp, void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetBindingExpression( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&dp))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall MeasureOverride( + winrt::Windows::Foundation::Size availableSize, + winrt::Windows::Foundation::Size* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().MeasureOverride( + *reinterpret_cast( + &availableSize))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ArrangeOverride( + winrt::Windows::Foundation::Size finalSize, + winrt::Windows::Foundation::Size* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().ArrangeOverride( + *reinterpret_cast( + &finalSize))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnApplyTemplate() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnApplyTemplate(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GoToElementStateCore(void* stateName, bool useTransitions, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GoToElementStateCore( + *reinterpret_cast(&stateName), useTransitions)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall InvalidateViewport() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateViewport(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_TagProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TagProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LanguageProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LanguageProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxWidthProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxWidthProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MinHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MinHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MaxHeightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MaxHeightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HorizontalAlignmentProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HorizontalAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VerticalAlignmentProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VerticalAlignmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MarginProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().MarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NameProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NameProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DataContextProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DataContextProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusOnInteractionProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllowFocusOnInteractionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualMarginProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualMarginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualSecondaryThicknessProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualSecondaryThicknessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualPrimaryThicknessProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualPrimaryThicknessProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualSecondaryBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualSecondaryBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusVisualPrimaryBrushProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusVisualPrimaryBrushProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowFocusWhenDisabledProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllowFocusWhenDisabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StyleProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().StyleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FlowDirectionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FlowDirectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RequestedThemeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RequestedThemeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualThemeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualThemeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall DeferTree(void* element) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().DeferTree( + *reinterpret_cast( + &element)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Auto( + struct struct_Microsoft_UI_Xaml_GridLength* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Auto()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromPixels( + double pixels, + struct struct_Microsoft_UI_Xaml_GridLength* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromPixels(pixels)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromValueAndType( + double value, int32_t type, + struct struct_Microsoft_UI_Xaml_GridLength* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromValueAndType( + value, + *reinterpret_cast( + &type))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsAbsolute( + struct struct_Microsoft_UI_Xaml_GridLength target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsAbsolute( + *reinterpret_cast( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsAuto(struct struct_Microsoft_UI_Xaml_GridLength target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsAuto( + *reinterpret_cast( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsStar(struct struct_Microsoft_UI_Xaml_GridLength target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsStar( + *reinterpret_cast( + &target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Equals(struct struct_Microsoft_UI_Xaml_GridLength target, + struct struct_Microsoft_UI_Xaml_GridLength value, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Equals( + *reinterpret_cast( + &target), + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Arguments(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Arguments()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UWPLaunchActivatedEventArgs(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Windows::ApplicationModel::Activation::LaunchActivatedEventArgs>( + this->shim().UWPLaunchActivatedEventArgs()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ErrorTrace(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ErrorTrace()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall FromCoordinates( + float x, float y, + winrt::Windows::Foundation::Point* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromCoordinates(x, y)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DefaultValue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DefaultValue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CreateDefaultValueCallback(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CreateDefaultValueCallback()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstanceWithDefaultValue(void* defaultValue, + void* baseInterface, + void** innerInterface, + void** value) noexcept final + try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithDefaultValue( + *reinterpret_cast( + &defaultValue), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateInstanceWithDefaultValueAndCallback( + void* defaultValue, void* propertyChangedCallback, void* baseInterface, + void** innerInterface, void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstanceWithDefaultValueAndCallback( + *reinterpret_cast( + &defaultValue), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const*>( + &propertyChangedCallback), + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateWithDefaultValue(void* defaultValue, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast( + &defaultValue))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithDefaultValueAndCallback( + void* defaultValue, void* propertyChangedCallback, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast( + &defaultValue), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const*>( + &propertyChangedCallback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithFactory(void* createDefaultValueCallback, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback const*>( + &createDefaultValueCallback))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CreateWithFactoryAndCallback( + void* createDefaultValueCallback, void* propertyChangedCallback, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().Create( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback const*>( + &createDefaultValueCallback), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const*>( + &propertyChangedCallback))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Path(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Path()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* path, void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance(*reinterpret_cast(&path))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Empty( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Empty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromCoordinatesAndDimensions( + float x, float y, float width, float height, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromCoordinatesAndDimensions(x, y, width, height)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromPoints( + winrt::Windows::Foundation::Point point1, + winrt::Windows::Foundation::Point point2, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().FromPoints( + *reinterpret_cast( + &point1), + *reinterpret_cast( + &point2))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromLocationAndSize( + winrt::Windows::Foundation::Point location, + winrt::Windows::Foundation::Size size, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromLocationAndSize( + *reinterpret_cast( + &location), + *reinterpret_cast(&size))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsEmpty(winrt::Windows::Foundation::Rect target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsEmpty( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetBottom(winrt::Windows::Foundation::Rect target, + float* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetBottom( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetLeft(winrt::Windows::Foundation::Rect target, + float* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetLeft( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetRight(winrt::Windows::Foundation::Rect target, + float* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetRight( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetTop(winrt::Windows::Foundation::Rect target, + float* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetTop( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Contains(winrt::Windows::Foundation::Rect target, + winrt::Windows::Foundation::Point point, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Contains( + *reinterpret_cast(&target), + *reinterpret_cast(&point))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Equals(winrt::Windows::Foundation::Rect target, + winrt::Windows::Foundation::Rect value, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Equals( + *reinterpret_cast(&target), + *reinterpret_cast(&value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Intersect( + winrt::Windows::Foundation::Rect target, + winrt::Windows::Foundation::Rect rect, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = + detach_from(this->shim().Intersect( + *reinterpret_cast(&target), + *reinterpret_cast(&rect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall UnionWithPoint( + winrt::Windows::Foundation::Rect target, + winrt::Windows::Foundation::Point point, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Union( + *reinterpret_cast(&target), + *reinterpret_cast(&point))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall UnionWithRect( + winrt::Windows::Foundation::Rect target, + winrt::Windows::Foundation::Rect rect, + winrt::Windows::Foundation::Rect* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Union( + *reinterpret_cast(&target), + *reinterpret_cast(&rect))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Source(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Source()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Source(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Source( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_MergedDictionaries(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().MergedDictionaries()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ThemeDictionaries(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().ThemeDictionaries()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IResourceManagerRequestedEventArgs> { + int32_t __stdcall get_CustomResourceManager(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().CustomResourceManager()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CustomResourceManager(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CustomResourceManager( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OriginalSource(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OriginalSource()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Duration(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Duration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Duration(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Duration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Property(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Property()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Property(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Property( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Value(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Value()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Value(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Value( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Target(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Target()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Target(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Target( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::TargetPropertyPath const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsSealed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSealed()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsSealed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSealed()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* targetProperty, void* value, + void** instance) noexcept final try { + clear_abi(instance); + typename D::abi_guard guard(this->shim()); + *instance = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &targetProperty), + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_PreviousSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PreviousSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().NewSize()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Empty( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Empty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromDimensions( + float width, float height, + winrt::Windows::Foundation::Size* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromDimensions(width, height)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetIsEmpty(winrt::Windows::Foundation::Size target, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GetIsEmpty( + *reinterpret_cast(&target))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Equals(winrt::Windows::Foundation::Size target, + winrt::Windows::Foundation::Size value, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Equals( + *reinterpret_cast(&target), + *reinterpret_cast(&value))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsActive(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsActive()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsActive(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsActive(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall SetActive(bool IsActive) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetActive(IsActive); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsActiveProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsActiveProperty()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_IsSealed(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsSealed()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Setters(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Setters()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TargetType( + struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TargetType()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TargetType( + struct struct_Windows_UI_Xaml_Interop_TypeName value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TargetType( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BasedOn(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().BasedOn()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_BasedOn(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().BasedOn( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Seal() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Seal(); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance( + struct struct_Windows_UI_Xaml_Interop_TypeName targetType, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Style>(this->shim().CreateInstance( + *reinterpret_cast( + &targetType))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Path(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Path()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Path(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Path( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Target(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Target()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Target(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Target( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* targetProperty, + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty const*>( + &targetProperty))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall FromLengths( + double left, double top, double right, double bottom, + struct struct_Microsoft_UI_Xaml_Thickness* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromLengths(left, top, right, bottom)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FromUniformLength( + double uniformLength, + struct struct_Microsoft_UI_Xaml_Thickness* result) noexcept final try { + zero_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().FromUniformLength(uniformLength)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_DesiredSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DesiredSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowDrop(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AllowDrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AllowDrop(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AllowDrop(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Opacity(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Opacity()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Opacity(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Opacity(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Clip(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Clip()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Clip(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Clip( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::RectangleGeometry const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RenderTransform(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RenderTransform()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RenderTransform(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RenderTransform( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Projection(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Projection()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Projection(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Projection( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Transform3D(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Transform3D()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Transform3D(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Transform3D( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RenderTransformOrigin( + winrt::Windows::Foundation::Point* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RenderTransformOrigin()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RenderTransformOrigin( + winrt::Windows::Foundation::Point value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RenderTransformOrigin( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHitTestVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHitTestVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsHitTestVisible(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsHitTestVisible(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Visibility(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Visibility()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Visibility(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Visibility( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RenderSize( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RenderSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UseLayoutRounding(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UseLayoutRounding()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UseLayoutRounding(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UseLayoutRounding(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Transitions(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::TransitionCollection>( + this->shim().Transitions()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Transitions(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Transitions( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CacheMode(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CacheMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CacheMode(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CacheMode( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTapEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTapEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsTapEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsTapEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDoubleTapEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsDoubleTapEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsDoubleTapEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsDoubleTapEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanDrag(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanDrag()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanDrag(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanDrag(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRightTapEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsRightTapEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsRightTapEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsRightTapEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHoldingEnabled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHoldingEnabled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsHoldingEnabled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsHoldingEnabled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationMode(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ManipulationMode(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::ManipulationModes const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerCaptures(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().PointerCaptures()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContextFlyout(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase>( + this->shim().ContextFlyout()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ContextFlyout(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ContextFlyout( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CompositeMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CompositeMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CompositeMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CompositeMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::ElementCompositeMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Lights(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().Lights()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanBeScrollAnchor(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().CanBeScrollAnchor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CanBeScrollAnchor(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CanBeScrollAnchor(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitDisplayModeOnAccessKeyInvoked( + bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().ExitDisplayModeOnAccessKeyInvoked()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExitDisplayModeOnAccessKeyInvoked( + bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ExitDisplayModeOnAccessKeyInvoked(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAccessKeyScope(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsAccessKeyScope()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsAccessKeyScope(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsAccessKeyScope(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyScopeOwner(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyScopeOwner()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AccessKeyScopeOwner(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyScopeOwner( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKey(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().AccessKey()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_AccessKey(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKey(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipPlacementMode(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().KeyTipPlacementMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipPlacementMode(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipPlacementMode( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyTipPlacementMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipHorizontalOffset(double* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyTipHorizontalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipHorizontalOffset(double value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipHorizontalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipVerticalOffset(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().KeyTipVerticalOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipVerticalOffset(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipVerticalOffset(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipTarget(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyTipTarget(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyTipTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusKeyboardNavigation(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusKeyboardNavigationMode>( + this->shim().XYFocusKeyboardNavigation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusKeyboardNavigation(int32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusKeyboardNavigation( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUpNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusUpNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusUpNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusUpNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDownNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusDownNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusDownNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusDownNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeftNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusLeftNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusLeftNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusLeftNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRightNavigationStrategy( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::XYFocusNavigationStrategy>( + this->shim().XYFocusRightNavigationStrategy()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusRightNavigationStrategy( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusRightNavigationStrategy( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAccelerators(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().KeyboardAccelerators()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAcceleratorPlacementTarget( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyboardAcceleratorPlacementTarget()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyboardAcceleratorPlacementTarget( + void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyboardAcceleratorPlacementTarget( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAcceleratorPlacementMode( + int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Input::KeyboardAcceleratorPlacementMode>( + this->shim().KeyboardAcceleratorPlacementMode()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_KeyboardAcceleratorPlacementMode( + int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().KeyboardAcceleratorPlacementMode( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HighContrastAdjustment(uint32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().HighContrastAdjustment()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_HighContrastAdjustment(uint32_t value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().HighContrastAdjustment( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::ElementHighContrastAdjustment const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabFocusNavigation(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().TabFocusNavigation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TabFocusNavigation(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TabFocusNavigation( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyboardNavigationMode const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpacityTransition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpacityTransition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OpacityTransition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OpacityTransition( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Translation( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Translation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Translation( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Translation( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TranslationTransition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TranslationTransition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TranslationTransition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TranslationTransition( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Rotation(float* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Rotation()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Rotation(float value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Rotation(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationTransition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationTransition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationTransition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationTransition( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Scale( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Scale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Scale( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Scale( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ScaleTransition(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ScaleTransition()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ScaleTransition(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ScaleTransition( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final + try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransformMatrix()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TransformMatrix( + winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TransformMatrix( + *reinterpret_cast< + winrt::Windows::Foundation::Numerics::float4x4 const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CenterPoint( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CenterPoint()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_CenterPoint( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().CenterPoint( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RotationAxis( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RotationAxis()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RotationAxis( + winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RotationAxis( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualOffset( + winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualOffset()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ActualSize( + winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ActualSize()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XamlRoot(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XamlRoot()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XamlRoot(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XamlRoot( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Shadow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Shadow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Shadow(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Shadow( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizationScale(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_RasterizationScale(double value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RasterizationScale(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusState(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UseSystemFocusVisuals(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().UseSystemFocusVisuals()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_UseSystemFocusVisuals(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UseSystemFocusVisuals(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeft(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusLeft()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusLeft(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusLeft( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRight(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusRight()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusRight(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusRight( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUp(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusUp()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusUp(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusUp( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDown(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusDown()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_XYFocusDown(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().XYFocusDown( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTabStop(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsTabStop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_IsTabStop(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().IsTabStop(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabIndex(int32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().TabIndex()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_TabIndex(int32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().TabIndex(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_KeyUp(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().KeyUp( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_KeyUp(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().KeyUp(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_KeyDown(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().KeyDown( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_KeyDown(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().KeyDown(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_GotFocus(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GotFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GotFocus(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LostFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LostFocus( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::RoutedEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LostFocus(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LostFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragStarting(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragStarting( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DropCompleted(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DropCompleted( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DropCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DropCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CharacterReceived( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CharacterReceived( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CharacterReceived( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CharacterReceived( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragEnter(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragEnter( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragEnter(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragEnter( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragLeave(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragLeave( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragLeave(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragLeave( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DragOver(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DragOver( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DragOver(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DragOver(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Drop(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Drop( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Drop(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Drop(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerPressed(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerPressed( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerPressed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerPressed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerMoved(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerMoved( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerMoved( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerMoved( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerReleased( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerReleased( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerReleased( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerReleased( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerEntered(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerEntered( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerEntered( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerEntered( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerExited(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerExited( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerExited( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerExited( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerCaptureLost( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerCaptureLost( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerCaptureLost( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerCaptureLost( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerCanceled( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerCanceled( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerCanceled( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerCanceled( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PointerWheelChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PointerWheelChanged( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::PointerEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PointerWheelChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PointerWheelChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Tapped(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Tapped( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::TappedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Tapped(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Tapped(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_DoubleTapped(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().DoubleTapped( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::DoubleTappedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_DoubleTapped( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().DoubleTapped( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Holding(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Holding( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::HoldingEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Holding(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Holding(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ContextRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ContextRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ContextCanceled( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ContextCanceled( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ContextCanceled( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ContextCanceled( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_RightTapped(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().RightTapped( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::RightTappedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_RightTapped( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().RightTapped( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationStarting( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationInertiaStarting( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().ManipulationInertiaStarting( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input:: + ManipulationInertiaStartingEventHandler const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationInertiaStarting( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationInertiaStarting( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationStarted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationStarted( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationStarted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationStarted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationDelta( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationDelta( + *reinterpret_cast(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationDelta( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationDelta( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ManipulationCompleted( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().ManipulationCompleted( + *reinterpret_cast( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ManipulationCompleted( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ManipulationCompleted( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AccessKeyDisplayRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().AccessKeyDisplayRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AccessKeyDisplayRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyDisplayRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AccessKeyDisplayDismissed( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().AccessKeyDisplayDismissed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AccessKeyDisplayDismissed( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyDisplayDismissed( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_AccessKeyInvoked( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().AccessKeyInvoked( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_AccessKeyInvoked( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().AccessKeyInvoked( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_ProcessKeyboardAccelerators( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from( + this->shim().ProcessKeyboardAccelerators( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_ProcessKeyboardAccelerators( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().ProcessKeyboardAccelerators( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_GettingFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().GettingFocus( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_GettingFocus( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().GettingFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_LosingFocus(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().LosingFocus( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_LosingFocus( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().LosingFocus( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_NoFocusCandidateFound( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().NoFocusCandidateFound( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_NoFocusCandidateFound( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().NoFocusCandidateFound( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PreviewKeyDown(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PreviewKeyDown( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PreviewKeyDown( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PreviewKeyDown( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_PreviewKeyUp(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().PreviewKeyUp( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Input::KeyEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_PreviewKeyUp( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().PreviewKeyUp( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_BringIntoViewRequested( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = + detach_from(this->shim().BringIntoViewRequested( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_BringIntoViewRequested( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().BringIntoViewRequested( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Measure( + winrt::Windows::Foundation::Size availableSize) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Measure( + *reinterpret_cast( + &availableSize)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Arrange( + winrt::Windows::Foundation::Rect finalRect) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Arrange( + *reinterpret_cast(&finalRect)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CapturePointer(void* value, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CapturePointer( + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ReleasePointerCapture(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReleasePointerCapture( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall ReleasePointerCaptures() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ReleasePointerCaptures(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall AddHandler(void* routedEvent, void* handler, + bool handledEventsToo) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().AddHandler( + *reinterpret_cast( + &routedEvent), + *reinterpret_cast( + &handler), + handledEventsToo); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RemoveHandler(void* routedEvent, + void* handler) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RemoveHandler( + *reinterpret_cast( + &routedEvent), + *reinterpret_cast( + &handler)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TransformToVisual(void* visual, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().TransformToVisual( + *reinterpret_cast( + &visual))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InvalidateMeasure() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateMeasure(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall InvalidateArrange() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().InvalidateArrange(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall UpdateLayout() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().UpdateLayout(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall CancelDirectManipulations(bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().CancelDirectManipulations()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartDragAsync(void* pointerPoint, + void** operation) noexcept final try { + clear_abi(operation); + typename D::abi_guard guard(this->shim()); + *operation = detach_from>( + this->shim().StartDragAsync( + *reinterpret_cast( + &pointerPoint))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartBringIntoView() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartBringIntoView(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartBringIntoViewWithOptions(void* options) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().StartBringIntoView( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::BringIntoViewOptions const*>(&options)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryInvokeKeyboardAccelerator(void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().TryInvokeKeyboardAccelerator( + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Focus(int32_t value, bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().Focus( + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StartAnimation(void* animation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StartAnimation( + *reinterpret_cast(&animation)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall StopAnimation(void* animation) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().StopAnimation( + *reinterpret_cast(&animation)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall OnCreateAutomationPeer(void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Microsoft::UI::Xaml::Automation::Peers::AutomationPeer>( + this->shim().OnCreateAutomationPeer()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnDisconnectVisualChildren() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnDisconnectVisualChildren(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall FindSubElementsForTouchTargeting( + winrt::Windows::Foundation::Point point, + winrt::Windows::Foundation::Rect boundingRect, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>>( + this->shim().FindSubElementsForTouchTargeting( + *reinterpret_cast(&point), + *reinterpret_cast( + &boundingRect))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetChildrenInTabFocusOrder(void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetChildrenInTabFocusOrder()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnKeyboardAcceleratorInvoked(void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().OnKeyboardAcceleratorInvoked( + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnProcessKeyboardAccelerators(void* args) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().OnProcessKeyboardAccelerators( + *reinterpret_cast( + &args)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall OnBringIntoViewRequested(void* e) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OnBringIntoViewRequested( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::BringIntoViewRequestedEventArgs const*>( + &e)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall PopulatePropertyInfoOverride( + void* propertyName, void* animationPropertyInfo) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().PopulatePropertyInfoOverride( + *reinterpret_cast(&propertyName), + *reinterpret_cast< + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const*>( + &animationPropertyInfo)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ProtectedCursor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProtectedCursor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ProtectedCursor(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().ProtectedCursor( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_KeyDownEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyDownEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyUpEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyUpEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerEnteredEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerEnteredEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerPressedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerPressedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerMovedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerMovedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerReleasedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerReleasedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerExitedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerExitedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerCaptureLostEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerCaptureLostEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerCanceledEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerCanceledEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerWheelChangedEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerWheelChangedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TappedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TappedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DoubleTappedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DoubleTappedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HoldingEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HoldingEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RightTappedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RightTappedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationStartingEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationStartingEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationInertiaStartingEvent( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationInertiaStartingEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationStartedEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationStartedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationDeltaEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationDeltaEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationCompletedEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationCompletedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragEnterEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragEnterEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragLeaveEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragLeaveEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DragOverEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DragOverEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DropEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DropEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GettingFocusEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GettingFocusEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LosingFocusEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LosingFocusEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NoFocusCandidateFoundEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NoFocusCandidateFoundEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PreviewKeyDownEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PreviewKeyDownEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CharacterReceivedEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CharacterReceivedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PreviewKeyUpEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PreviewKeyUpEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_BringIntoViewRequestedEvent(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().BringIntoViewRequestedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContextRequestedEvent(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContextRequestedEvent()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AllowDropProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AllowDropProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_OpacityProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OpacityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ClipProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ClipProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RenderTransformProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RenderTransformProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ProjectionProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ProjectionProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Transform3DProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Transform3DProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RenderTransformOriginProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().RenderTransformOriginProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHitTestVisibleProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsHitTestVisibleProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_VisibilityProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().VisibilityProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UseLayoutRoundingProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UseLayoutRoundingProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TransitionsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TransitionsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CacheModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CacheModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTapEnabledProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsTapEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsDoubleTapEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsDoubleTapEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanDragProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CanDragProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsRightTapEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsRightTapEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHoldingEnabledProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsHoldingEnabledProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ManipulationModeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ManipulationModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_PointerCapturesProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().PointerCapturesProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContextFlyoutProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContextFlyoutProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CompositeModeProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CompositeModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_LightsProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().LightsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CanBeScrollAnchorProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CanBeScrollAnchorProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExitDisplayModeOnAccessKeyInvokedProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ExitDisplayModeOnAccessKeyInvokedProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsAccessKeyScopeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsAccessKeyScopeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyScopeOwnerProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyScopeOwnerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AccessKeyProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AccessKeyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipPlacementModeProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipPlacementModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipHorizontalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipHorizontalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipVerticalOffsetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipVerticalOffsetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyTipTargetProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyTipTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusKeyboardNavigationProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusKeyboardNavigationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUpNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusUpNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDownNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusDownNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeftNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusLeftNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRightNavigationStrategyProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusRightNavigationStrategyProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAcceleratorPlacementTargetProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyboardAcceleratorPlacementTargetProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_KeyboardAcceleratorPlacementModeProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().KeyboardAcceleratorPlacementModeProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_HighContrastAdjustmentProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().HighContrastAdjustmentProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabFocusNavigationProperty(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TabFocusNavigationProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ShadowProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ShadowProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_FocusStateProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().FocusStateProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_UseSystemFocusVisualsProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().UseSystemFocusVisualsProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusLeftProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusLeftProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusRightProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusRightProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusUpProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusUpProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_XYFocusDownProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().XYFocusDownProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsTabStopProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().IsTabStopProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_TabIndexProperty(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().TabIndexProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall TryStartDirectManipulation(void* value, + bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().TryStartDirectManipulation( + *reinterpret_cast( + &value))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RegisterAsScrollPort(void* element) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RegisterAsScrollPort( + *reinterpret_cast( + &element)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IUIElementWeakCollectionFactory> { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Exception(winrt::hresult* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Exception()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Message(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Message()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Duration(int64_t* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Duration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Duration(int64_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Duration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Components(uint32_t* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Components()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Components(uint32_t value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Components( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Vector3TransitionComponents const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Storyboard(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Storyboard()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Storyboard(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Storyboard( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Setters(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Setters()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_StateTriggers(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().StateTriggers()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_OldState(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().OldState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_OldState(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().OldState( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_NewState(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().NewState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_NewState(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().NewState( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Control(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Control()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Control(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Control( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Name(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Name()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Transitions(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>( + this->shim().Transitions()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_States(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from>(this->shim().States()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CurrentState(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CurrentState()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_CurrentStateChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CurrentStateChanged( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CurrentStateChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CurrentStateChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_CurrentStateChanging( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().CurrentStateChanging( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::VisualStateChangedEventHandler const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_CurrentStateChanging( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().CurrentStateChanging( + *reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall GoToStateCore(void* control, void* templateRoot, + void* stateName, void* group, void* state, + bool useTransitions, + bool* result) noexcept final try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GoToStateCore( + *reinterpret_cast( + &control), + *reinterpret_cast( + &templateRoot), + *reinterpret_cast(&stateName), + *reinterpret_cast( + &group), + *reinterpret_cast( + &state), + useTransitions)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall RaiseCurrentStateChanging(void* stateGroup, void* oldState, + void* newState, + void* control) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().RaiseCurrentStateChanging( + *reinterpret_cast( + &stateGroup), + *reinterpret_cast( + &oldState), + *reinterpret_cast( + &newState), + *reinterpret_cast( + &control)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall RaiseCurrentStateChanged(void* stateGroup, void* oldState, + void* newState, + void* control) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().RaiseCurrentStateChanged( + *reinterpret_cast( + &stateGroup), + *reinterpret_cast( + &oldState), + *reinterpret_cast( + &newState), + *reinterpret_cast( + &control)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall GetVisualStateGroups(void* obj, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from>( + this->shim().GetVisualStateGroups( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FrameworkElement const*>(&obj))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CustomVisualStateManagerProperty( + void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CustomVisualStateManagerProperty()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GetCustomVisualStateManager(void* obj, + void** result) noexcept final + try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from( + this->shim().GetCustomVisualStateManager( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::FrameworkElement const*>(&obj))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetCustomVisualStateManager(void* obj, + void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().SetCustomVisualStateManager( + *reinterpret_cast( + &obj), + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::VisualStateManager const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall GoToState(void* control, void* stateName, + bool useTransitions, bool* result) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *result = detach_from(this->shim().GoToState( + *reinterpret_cast( + &control), + *reinterpret_cast(&stateName), useTransitions)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_GeneratedDuration( + struct struct_Microsoft_UI_Xaml_Duration* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().GeneratedDuration()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GeneratedDuration( + struct struct_Microsoft_UI_Xaml_Duration value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().GeneratedDuration( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_GeneratedEasingFunction(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from< + winrt::Microsoft::UI::Xaml::Media::Animation::EasingFunctionBase>( + this->shim().GeneratedEasingFunction()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_GeneratedEasingFunction(void* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().GeneratedEasingFunction( + *reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_To(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().To()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_To(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().To(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_From(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().From()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_From(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().From(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Storyboard(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().Storyboard()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Storyboard(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Storyboard( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::Animation::Storyboard const*>( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Bounds( + winrt::Windows::Foundation::Rect* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Bounds()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Visible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Visible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Content(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Content()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Content(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Content( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_CoreWindow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CoreWindow()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Compositor(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Compositor()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Dispatcher(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Dispatcher()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().DispatcherQueue()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Title(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Title()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Title(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Title(*reinterpret_cast(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ExtendsContentIntoTitleBar(bool* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().ExtendsContentIntoTitleBar()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_ExtendsContentIntoTitleBar(bool value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + this->shim().ExtendsContentIntoTitleBar(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Activated(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Activated( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Activated(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Activated( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_Closed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Closed( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Closed(*reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_SizeChanged(void* handler, + winrt::event_token* token) noexcept final + try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().SizeChanged( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_SizeChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().SizeChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall add_VisibilityChanged( + void* handler, winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().VisibilityChanged( + *reinterpret_cast const*>(&handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_VisibilityChanged( + winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().VisibilityChanged( + *reinterpret_cast(&token)); + return 0; + } + int32_t __stdcall Activate() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Activate(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall Close() noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Close(); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall SetTitleBar(void* titleBar) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SetTitleBar( + *reinterpret_cast( + &titleBar)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_AppWindow(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().AppWindow()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_WindowActivationState(int32_t* value) noexcept final + try { + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().WindowActivationState()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Current(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from(this->shim().Current()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base< + D, winrt::Microsoft::UI::Xaml::IWindowVisibilityChangedEventArgs> { + int32_t __stdcall get_Handled(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Handled()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Handled(bool value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Handled(value); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Visible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Visible()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Content(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Content()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_Content(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().Content( + *reinterpret_cast( + &value)); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_ContentIsland(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentIsland()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_SystemBackdrop(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().SystemBackdrop()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall put_SystemBackdrop(void* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + this->shim().SystemBackdrop( + *reinterpret_cast< + winrt::Microsoft::UI::Xaml::Media::SystemBackdrop const*>(&value)); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, + void** value) noexcept final try { + if (innerInterface) *innerInterface = nullptr; + winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().CreateInstance( + *reinterpret_cast( + &baseInterface), + winrt_impl_innerInterface)); + if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce< + D, winrt::Microsoft::UI::Xaml::IXamlResourceReferenceFailedEventArgs> + : produce_base< + D, + winrt::Microsoft::UI::Xaml::IXamlResourceReferenceFailedEventArgs> { + int32_t __stdcall get_Message(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Message()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_Content(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().Content()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_Size( + winrt::Windows::Foundation::Size* value) noexcept final try { + zero_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().Size()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_RasterizationScale(double* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().RasterizationScale()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall get_IsHostVisible(bool* value) noexcept final try { + typename D::abi_guard guard(this->shim()); + *value = detach_from(this->shim().IsHostVisible()); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall add_Changed(void* handler, + winrt::event_token* token) noexcept final try { + zero_abi(token); + typename D::abi_guard guard(this->shim()); + *token = detach_from(this->shim().Changed( + *reinterpret_cast const*>( + &handler))); + return 0; + } catch (...) { + return to_hresult(); + } + int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { + typename D::abi_guard guard(this->shim()); + this->shim().Changed(*reinterpret_cast(&token)); + return 0; + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ContentIslandEnvironment(void** value) noexcept final + try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().ContentIslandEnvironment()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = + detach_from( + this->shim().CoordinateConverter()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base { + int32_t __stdcall get_ContentIsland(void** value) noexcept final try { + clear_abi(value); + typename D::abi_guard guard(this->shim()); + *value = detach_from( + this->shim().ContentIsland()); + return 0; + } catch (...) { + return to_hresult(); + } +}; +#endif +#ifndef WINRT_LEAN_AND_MEAN +template +struct produce + : produce_base {}; +#endif +template +struct produce + : produce_base { + int32_t __stdcall GetService( + struct struct_Windows_UI_Xaml_Interop_TypeName type, + void** result) noexcept final try { + clear_abi(result); + typename D::abi_guard guard(this->shim()); + *result = detach_from< + winrt::Windows::Foundation::IInspectable>(this->shim().GetService( + *reinterpret_cast( + &type))); + return 0; + } catch (...) { + return to_hresult(); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::IApplicationOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::IApplicationOverrides> { + auto OnLaunched( + winrt::Microsoft::UI::Xaml::LaunchActivatedEventArgs const& args) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnLaunched(args); + } + + return this->shim().OnLaunched(args); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides> { + auto MeasureOverride(winrt::Windows::Foundation::Size const& availableSize) { + if (auto overridable = this->shim_overridable()) { + return overridable.MeasureOverride(availableSize); + } + + return this->shim().MeasureOverride(availableSize); + } + auto ArrangeOverride(winrt::Windows::Foundation::Size const& finalSize) { + if (auto overridable = this->shim_overridable()) { + return overridable.ArrangeOverride(finalSize); + } + + return this->shim().ArrangeOverride(finalSize); + } + auto OnApplyTemplate() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnApplyTemplate(); + } + + return this->shim().OnApplyTemplate(); + } + auto GoToElementStateCore(hstring const& stateName, bool useTransitions) { + if (auto overridable = this->shim_overridable()) { + return overridable.GoToElementStateCore(stateName, useTransitions); + } + + return this->shim().GoToElementStateCore(stateName, useTransitions); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::IUIElementOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::IUIElementOverrides> { + auto OnCreateAutomationPeer() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnCreateAutomationPeer(); + } + + return this->shim().OnCreateAutomationPeer(); + } + auto OnDisconnectVisualChildren() { + if (auto overridable = this->shim_overridable()) { + return overridable.OnDisconnectVisualChildren(); + } + + return this->shim().OnDisconnectVisualChildren(); + } + auto FindSubElementsForTouchTargeting( + winrt::Windows::Foundation::Point const& point, + winrt::Windows::Foundation::Rect const& boundingRect) { + if (auto overridable = this->shim_overridable()) { + return overridable.FindSubElementsForTouchTargeting(point, boundingRect); + } + + return this->shim().FindSubElementsForTouchTargeting(point, boundingRect); + } + auto GetChildrenInTabFocusOrder() { + if (auto overridable = this->shim_overridable()) { + return overridable.GetChildrenInTabFocusOrder(); + } + + return this->shim().GetChildrenInTabFocusOrder(); + } + auto OnKeyboardAcceleratorInvoked( + winrt::Microsoft::UI::Xaml::Input:: + KeyboardAcceleratorInvokedEventArgs const& args) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnKeyboardAcceleratorInvoked(args); + } + + return this->shim().OnKeyboardAcceleratorInvoked(args); + } + auto OnProcessKeyboardAccelerators( + winrt::Microsoft::UI::Xaml::Input:: + ProcessKeyboardAcceleratorEventArgs const& args) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnProcessKeyboardAccelerators(args); + } + + return this->shim().OnProcessKeyboardAccelerators(args); + } + auto OnBringIntoViewRequested( + winrt::Microsoft::UI::Xaml::BringIntoViewRequestedEventArgs const& e) { + if (auto overridable = this->shim_overridable()) { + return overridable.OnBringIntoViewRequested(e); + } + + return this->shim().OnBringIntoViewRequested(e); + } + auto PopulatePropertyInfoOverride( + hstring const& propertyName, + winrt::Microsoft::UI::Composition::AnimationPropertyInfo const& + animationPropertyInfo) { + if (auto overridable = this->shim_overridable()) { + return overridable.PopulatePropertyInfoOverride(propertyName, + animationPropertyInfo); + } + + return this->shim().PopulatePropertyInfoOverride(propertyName, + animationPropertyInfo); + } +}; +template +struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable< + T, D, winrt::Microsoft::UI::Xaml::IVisualStateManagerOverrides> + : produce_dispatch_to_overridable_base< + T, D, winrt::Microsoft::UI::Xaml::IVisualStateManagerOverrides> { + auto GoToStateCore( + winrt::Microsoft::UI::Xaml::Controls::Control const& control, + winrt::Microsoft::UI::Xaml::FrameworkElement const& templateRoot, + hstring const& stateName, + winrt::Microsoft::UI::Xaml::VisualStateGroup const& group, + winrt::Microsoft::UI::Xaml::VisualState const& state, + bool useTransitions) { + if (auto overridable = this->shim_overridable()) { + return overridable.GoToStateCore(control, templateRoot, stateName, group, + state, useTransitions); + } + + return this->shim().GoToStateCore(control, templateRoot, stateName, group, + state, useTransitions); + } +}; +} // namespace winrt::impl +WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml { + constexpr auto operator|( + ApplicationHighContrastAdjustment const left, + ApplicationHighContrastAdjustment const right) noexcept { + return static_cast( + impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=( + ApplicationHighContrastAdjustment& left, + ApplicationHighContrastAdjustment const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&( + ApplicationHighContrastAdjustment const left, + ApplicationHighContrastAdjustment const right) noexcept { + return static_cast( + impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=( + ApplicationHighContrastAdjustment& left, + ApplicationHighContrastAdjustment const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~( + ApplicationHighContrastAdjustment const value) noexcept { + return static_cast( + ~impl::to_underlying_type(value)); + } + constexpr auto operator^( + ApplicationHighContrastAdjustment const left, + ApplicationHighContrastAdjustment const right) noexcept { + return static_cast( + impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=( + ApplicationHighContrastAdjustment& left, + ApplicationHighContrastAdjustment const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(ElementHighContrastAdjustment const left, + ElementHighContrastAdjustment const right) noexcept { + return static_cast( + impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=( + ElementHighContrastAdjustment& left, + ElementHighContrastAdjustment const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(ElementHighContrastAdjustment const left, + ElementHighContrastAdjustment const right) noexcept { + return static_cast( + impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=( + ElementHighContrastAdjustment& left, + ElementHighContrastAdjustment const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(ElementHighContrastAdjustment const value) noexcept { + return static_cast( + ~impl::to_underlying_type(value)); + } + constexpr auto operator^(ElementHighContrastAdjustment const left, + ElementHighContrastAdjustment const right) noexcept { + return static_cast( + impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=( + ElementHighContrastAdjustment& left, + ElementHighContrastAdjustment const right) noexcept { + left = left ^ right; + return left; + } + constexpr auto operator|(Vector3TransitionComponents const left, + Vector3TransitionComponents const right) noexcept { + return static_cast( + impl::to_underlying_type(left) | impl::to_underlying_type(right)); + } + constexpr auto operator|=(Vector3TransitionComponents& left, + Vector3TransitionComponents const right) noexcept { + left = left | right; + return left; + } + constexpr auto operator&(Vector3TransitionComponents const left, + Vector3TransitionComponents const right) noexcept { + return static_cast( + impl::to_underlying_type(left) & impl::to_underlying_type(right)); + } + constexpr auto operator&=(Vector3TransitionComponents& left, + Vector3TransitionComponents const right) noexcept { + left = left & right; + return left; + } + constexpr auto operator~(Vector3TransitionComponents const value) noexcept { + return static_cast( + ~impl::to_underlying_type(value)); + } + constexpr auto operator^(Vector3TransitionComponents const left, + Vector3TransitionComponents const right) noexcept { + return static_cast( + impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); + } + constexpr auto operator^=(Vector3TransitionComponents& left, + Vector3TransitionComponents const right) noexcept { + left = left ^ right; + return left; + } + inline AdaptiveTrigger::AdaptiveTrigger() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IAdaptiveTriggerFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto AdaptiveTrigger::MinWindowWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAdaptiveTriggerStatics const&), + AdaptiveTrigger, IAdaptiveTriggerStatics>( + [](IAdaptiveTriggerStatics const& f) { + return f.MinWindowWidthProperty(); + }); + } + inline auto AdaptiveTrigger::MinWindowHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IAdaptiveTriggerStatics const&), + AdaptiveTrigger, IAdaptiveTriggerStatics>( + [](IAdaptiveTriggerStatics const& f) { + return f.MinWindowHeightProperty(); + }); + } + inline Application::Application() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IApplicationFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto Application::Current() { + return impl::call_factory_cast( + [](IApplicationStatics const& f) { return f.Current(); }); + } + inline auto Application::Start( + winrt::Microsoft::UI::Xaml::ApplicationInitializationCallback const& + callback) { + impl::call_factory( + [&](IApplicationStatics const& f) { return f.Start(callback); }); + } + inline auto Application::LoadComponent( + winrt::Windows::Foundation::IInspectable const& component, + winrt::Windows::Foundation::Uri const& resourceLocator) { + impl::call_factory( + [&](IApplicationStatics const& f) { + return f.LoadComponent(component, resourceLocator); + }); + } + inline auto Application::LoadComponent( + winrt::Windows::Foundation::IInspectable const& component, + winrt::Windows::Foundation::Uri const& resourceLocator, + winrt::Microsoft::UI::Xaml::Controls::Primitives:: + ComponentResourceLocation const& componentResourceLocation) { + impl::call_factory( + [&](IApplicationStatics const& f) { + return f.LoadComponent(component, resourceLocator, + componentResourceLocation); + }); + } + inline BringIntoViewOptions::BringIntoViewOptions() + : BringIntoViewOptions( + impl::call_factory_cast< + BringIntoViewOptions (*)( + winrt::Windows::Foundation::IActivationFactory const&), + BringIntoViewOptions>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline BrushTransition::BrushTransition() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IBrushTransitionFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline ColorPaletteResources::ColorPaletteResources() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IColorPaletteResourcesFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto CornerRadiusHelper::FromRadii( + double topLeft, double topRight, double bottomRight, double bottomLeft) { + return impl::call_factory( + [&](ICornerRadiusHelperStatics const& f) { + return f.FromRadii(topLeft, topRight, bottomRight, bottomLeft); + }); + } + inline auto CornerRadiusHelper::FromUniformRadius(double uniformRadius) { + return impl::call_factory( + [&](ICornerRadiusHelperStatics const& f) { + return f.FromUniformRadius(uniformRadius); + }); + } + inline DataTemplate::DataTemplate() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDataTemplateFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto DataTemplate::ExtensionInstanceProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IDataTemplateStatics const&), + DataTemplate, IDataTemplateStatics>([](IDataTemplateStatics const& f) { + return f.ExtensionInstanceProperty(); + }); + } + inline auto DataTemplate::GetExtensionInstance( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element) { + return impl::call_factory( + [&](IDataTemplateStatics const& f) { + return f.GetExtensionInstance(element); + }); + } + inline auto DataTemplate::SetExtensionInstance( + winrt::Microsoft::UI::Xaml::FrameworkElement const& element, + winrt::Microsoft::UI::Xaml::IDataTemplateExtension const& value) { + impl::call_factory( + [&](IDataTemplateStatics const& f) { + return f.SetExtensionInstance(element, value); + }); + } + inline DataTemplateKey::DataTemplateKey() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDataTemplateKeyFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline DataTemplateKey::DataTemplateKey( + winrt::Windows::Foundation::IInspectable const& dataType) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDataTemplateKeyFactory const& f) { + return f.CreateInstanceWithType(dataType, baseInterface, + innerInterface); + }); + } + inline DependencyObjectCollection::DependencyObjectCollection() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDependencyObjectCollectionFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto DependencyProperty::UnsetValue() { + return impl::call_factory_cast( + [](IDependencyPropertyStatics const& f) { return f.UnsetValue(); }); + } + inline auto DependencyProperty::Register( + param::hstring const& name, + winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, + winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, + winrt::Microsoft::UI::Xaml::PropertyMetadata const& typeMetadata) { + return impl::call_factory( + [&](IDependencyPropertyStatics const& f) { + return f.Register(name, propertyType, ownerType, typeMetadata); + }); + } + inline auto DependencyProperty::RegisterAttached( + param::hstring const& name, + winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, + winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, + winrt::Microsoft::UI::Xaml::PropertyMetadata const& defaultMetadata) { + return impl::call_factory( + [&](IDependencyPropertyStatics const& f) { + return f.RegisterAttached(name, propertyType, ownerType, + defaultMetadata); + }); + } + inline DispatcherTimer::DispatcherTimer() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IDispatcherTimerFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto DurationHelper::Automatic() { + return impl::call_factory_cast( + [](IDurationHelperStatics const& f) { return f.Automatic(); }); + } + inline auto DurationHelper::Forever() { + return impl::call_factory_cast( + [](IDurationHelperStatics const& f) { return f.Forever(); }); + } + inline auto DurationHelper::Compare( + winrt::Microsoft::UI::Xaml::Duration const& duration1, + winrt::Microsoft::UI::Xaml::Duration const& duration2) { + return impl::call_factory( + [&](IDurationHelperStatics const& f) { + return f.Compare(duration1, duration2); + }); + } + inline auto DurationHelper::FromTimeSpan( + winrt::Windows::Foundation::TimeSpan const& timeSpan) { + return impl::call_factory( + [&](IDurationHelperStatics const& f) { + return f.FromTimeSpan(timeSpan); + }); + } + inline auto DurationHelper::GetHasTimeSpan( + winrt::Microsoft::UI::Xaml::Duration const& target) { + return impl::call_factory( + [&](IDurationHelperStatics const& f) { + return f.GetHasTimeSpan(target); + }); + } + inline auto DurationHelper::Add( + winrt::Microsoft::UI::Xaml::Duration const& target, + winrt::Microsoft::UI::Xaml::Duration const& duration) { + return impl::call_factory( + [&](IDurationHelperStatics const& f) { + return f.Add(target, duration); + }); + } + inline auto DurationHelper::Equals( + winrt::Microsoft::UI::Xaml::Duration const& target, + winrt::Microsoft::UI::Xaml::Duration const& value) { + return impl::call_factory( + [&](IDurationHelperStatics const& f) { + return f.Equals(target, value); + }); + } + inline auto DurationHelper::Subtract( + winrt::Microsoft::UI::Xaml::Duration const& target, + winrt::Microsoft::UI::Xaml::Duration const& duration) { + return impl::call_factory( + [&](IDurationHelperStatics const& f) { + return f.Subtract(target, duration); + }); + } + inline ElementFactoryGetArgs::ElementFactoryGetArgs() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IElementFactoryGetArgsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline ElementFactoryRecycleArgs::ElementFactoryRecycleArgs() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IElementFactoryRecycleArgsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline auto ElementSoundPlayer::Volume() { + return impl::call_factory_cast< + double (*)(IElementSoundPlayerStatics const&), ElementSoundPlayer, + IElementSoundPlayerStatics>( + [](IElementSoundPlayerStatics const& f) { return f.Volume(); }); + } + inline auto ElementSoundPlayer::Volume(double value) { + impl::call_factory( + [&](IElementSoundPlayerStatics const& f) { return f.Volume(value); }); + } + inline auto ElementSoundPlayer::State() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::ElementSoundPlayerState (*)( + IElementSoundPlayerStatics const&), + ElementSoundPlayer, IElementSoundPlayerStatics>( + [](IElementSoundPlayerStatics const& f) { return f.State(); }); + } + inline auto ElementSoundPlayer::State( + winrt::Microsoft::UI::Xaml::ElementSoundPlayerState const& value) { + impl::call_factory( + [&](IElementSoundPlayerStatics const& f) { return f.State(value); }); + } + inline auto ElementSoundPlayer::SpatialAudioMode() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::ElementSpatialAudioMode (*)( + IElementSoundPlayerStatics const&), + ElementSoundPlayer, IElementSoundPlayerStatics>( + [](IElementSoundPlayerStatics const& f) { + return f.SpatialAudioMode(); + }); + } + inline auto ElementSoundPlayer::SpatialAudioMode( + winrt::Microsoft::UI::Xaml::ElementSpatialAudioMode const& value) { + impl::call_factory( + [&](IElementSoundPlayerStatics const& f) { + return f.SpatialAudioMode(value); + }); + } + inline auto ElementSoundPlayer::Play( + winrt::Microsoft::UI::Xaml::ElementSoundKind const& sound) { + impl::call_factory( + [&](IElementSoundPlayerStatics const& f) { return f.Play(sound); }); + } + inline EventTrigger::EventTrigger() + : EventTrigger(impl::call_factory_cast< + EventTrigger (*)( + winrt::Windows::Foundation::IActivationFactory const&), + EventTrigger>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto FrameworkElement::TagProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.TagProperty(); }); + } + inline auto FrameworkElement::LanguageProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.LanguageProperty(); }); + } + inline auto FrameworkElement::ActualWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.ActualWidthProperty(); + }); + } + inline auto FrameworkElement::ActualHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.ActualHeightProperty(); + }); + } + inline auto FrameworkElement::WidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.WidthProperty(); }); + } + inline auto FrameworkElement::HeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.HeightProperty(); }); + } + inline auto FrameworkElement::MinWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.MinWidthProperty(); }); + } + inline auto FrameworkElement::MaxWidthProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.MaxWidthProperty(); }); + } + inline auto FrameworkElement::MinHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.MinHeightProperty(); + }); + } + inline auto FrameworkElement::MaxHeightProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.MaxHeightProperty(); + }); + } + inline auto FrameworkElement::HorizontalAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.HorizontalAlignmentProperty(); + }); + } + inline auto FrameworkElement::VerticalAlignmentProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.VerticalAlignmentProperty(); + }); + } + inline auto FrameworkElement::MarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.MarginProperty(); }); + } + inline auto FrameworkElement::NameProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.NameProperty(); }); + } + inline auto FrameworkElement::DataContextProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.DataContextProperty(); + }); + } + inline auto FrameworkElement::AllowFocusOnInteractionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.AllowFocusOnInteractionProperty(); + }); + } + inline auto FrameworkElement::FocusVisualMarginProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.FocusVisualMarginProperty(); + }); + } + inline auto FrameworkElement::FocusVisualSecondaryThicknessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.FocusVisualSecondaryThicknessProperty(); + }); + } + inline auto FrameworkElement::FocusVisualPrimaryThicknessProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.FocusVisualPrimaryThicknessProperty(); + }); + } + inline auto FrameworkElement::FocusVisualSecondaryBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.FocusVisualSecondaryBrushProperty(); + }); + } + inline auto FrameworkElement::FocusVisualPrimaryBrushProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.FocusVisualPrimaryBrushProperty(); + }); + } + inline auto FrameworkElement::AllowFocusWhenDisabledProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.AllowFocusWhenDisabledProperty(); + }); + } + inline auto FrameworkElement::StyleProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { return f.StyleProperty(); }); + } + inline auto FrameworkElement::FlowDirectionProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.FlowDirectionProperty(); + }); + } + inline auto FrameworkElement::RequestedThemeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.RequestedThemeProperty(); + }); + } + inline auto FrameworkElement::ActualThemeProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IFrameworkElementStatics const&), + FrameworkElement, IFrameworkElementStatics>( + [](IFrameworkElementStatics const& f) { + return f.ActualThemeProperty(); + }); + } + inline auto FrameworkElement::DeferTree( + winrt::Microsoft::UI::Xaml::DependencyObject const& element) { + impl::call_factory( + [&](IFrameworkElementStatics const& f) { + return f.DeferTree(element); + }); + } + inline FrameworkView::FrameworkView() + : FrameworkView( + impl::call_factory_cast< + FrameworkView (*)( + winrt::Windows::Foundation::IActivationFactory const&), + FrameworkView>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline FrameworkViewSource::FrameworkViewSource() + : FrameworkViewSource( + impl::call_factory_cast< + FrameworkViewSource (*)( + winrt::Windows::Foundation::IActivationFactory const&), + FrameworkViewSource>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto GridLengthHelper::Auto() { + return impl::call_factory_cast( + [](IGridLengthHelperStatics const& f) { return f.Auto(); }); + } + inline auto GridLengthHelper::FromPixels(double pixels) { + return impl::call_factory( + [&](IGridLengthHelperStatics const& f) { + return f.FromPixels(pixels); + }); + } + inline auto GridLengthHelper::FromValueAndType( + double value, winrt::Microsoft::UI::Xaml::GridUnitType const& type) { + return impl::call_factory( + [&](IGridLengthHelperStatics const& f) { + return f.FromValueAndType(value, type); + }); + } + inline auto GridLengthHelper::GetIsAbsolute( + winrt::Microsoft::UI::Xaml::GridLength const& target) { + return impl::call_factory( + [&](IGridLengthHelperStatics const& f) { + return f.GetIsAbsolute(target); + }); + } + inline auto GridLengthHelper::GetIsAuto( + winrt::Microsoft::UI::Xaml::GridLength const& target) { + return impl::call_factory( + [&](IGridLengthHelperStatics const& f) { return f.GetIsAuto(target); }); + } + inline auto GridLengthHelper::GetIsStar( + winrt::Microsoft::UI::Xaml::GridLength const& target) { + return impl::call_factory( + [&](IGridLengthHelperStatics const& f) { return f.GetIsStar(target); }); + } + inline auto GridLengthHelper::Equals( + winrt::Microsoft::UI::Xaml::GridLength const& target, + winrt::Microsoft::UI::Xaml::GridLength const& value) { + return impl::call_factory( + [&](IGridLengthHelperStatics const& f) { + return f.Equals(target, value); + }); + } + inline auto PointHelper::FromCoordinates(float x, float y) { + return impl::call_factory( + [&](IPointHelperStatics const& f) { return f.FromCoordinates(x, y); }); + } + inline PropertyMetadata::PropertyMetadata( + winrt::Windows::Foundation::IInspectable const& defaultValue) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPropertyMetadataFactory const& f) { + return f.CreateInstanceWithDefaultValue(defaultValue, baseInterface, + innerInterface); + }); + } + inline PropertyMetadata::PropertyMetadata( + winrt::Windows::Foundation::IInspectable const& defaultValue, + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const& + propertyChangedCallback) { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IPropertyMetadataFactory const& f) { + return f.CreateInstanceWithDefaultValueAndCallback( + defaultValue, propertyChangedCallback, baseInterface, + innerInterface); + }); + } + inline auto PropertyMetadata::Create( + winrt::Windows::Foundation::IInspectable const& defaultValue) { + return impl::call_factory( + [&](IPropertyMetadataStatics const& f) { + return f.Create(defaultValue); + }); + } + inline auto PropertyMetadata::Create( + winrt::Windows::Foundation::IInspectable const& defaultValue, + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const& + propertyChangedCallback) { + return impl::call_factory( + [&](IPropertyMetadataStatics const& f) { + return f.Create(defaultValue, propertyChangedCallback); + }); + } + inline auto PropertyMetadata::Create( + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback const& + createDefaultValueCallback) { + return impl::call_factory( + [&](IPropertyMetadataStatics const& f) { + return f.Create(createDefaultValueCallback); + }); + } + inline auto PropertyMetadata::Create( + winrt::Microsoft::UI::Xaml::CreateDefaultValueCallback const& + createDefaultValueCallback, + winrt::Microsoft::UI::Xaml::PropertyChangedCallback const& + propertyChangedCallback) { + return impl::call_factory( + [&](IPropertyMetadataStatics const& f) { + return f.Create(createDefaultValueCallback, propertyChangedCallback); + }); + } + inline PropertyPath::PropertyPath(param::hstring const& path) + : PropertyPath(impl::call_factory( + [&](IPropertyPathFactory const& f) { + return f.CreateInstance(path); + })) {} + inline auto RectHelper::Empty() { + return impl::call_factory_cast( + [](IRectHelperStatics const& f) { return f.Empty(); }); + } + inline auto RectHelper::FromCoordinatesAndDimensions( + float x, float y, float width, float height) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { + return f.FromCoordinatesAndDimensions(x, y, width, height); + }); + } + inline auto RectHelper::FromPoints( + winrt::Windows::Foundation::Point const& point1, + winrt::Windows::Foundation::Point const& point2) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { + return f.FromPoints(point1, point2); + }); + } + inline auto RectHelper::FromLocationAndSize( + winrt::Windows::Foundation::Point const& location, + winrt::Windows::Foundation::Size const& size) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { + return f.FromLocationAndSize(location, size); + }); + } + inline auto RectHelper::GetIsEmpty( + winrt::Windows::Foundation::Rect const& target) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.GetIsEmpty(target); }); + } + inline auto RectHelper::GetBottom( + winrt::Windows::Foundation::Rect const& target) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.GetBottom(target); }); + } + inline auto RectHelper::GetLeft( + winrt::Windows::Foundation::Rect const& target) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.GetLeft(target); }); + } + inline auto RectHelper::GetRight( + winrt::Windows::Foundation::Rect const& target) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.GetRight(target); }); + } + inline auto RectHelper::GetTop( + winrt::Windows::Foundation::Rect const& target) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.GetTop(target); }); + } + inline auto RectHelper::Contains( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Point const& point) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.Contains(target, point); }); + } + inline auto RectHelper::Equals( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Rect const& value) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.Equals(target, value); }); + } + inline auto RectHelper::Intersect( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Rect const& rect) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.Intersect(target, rect); }); + } + inline auto RectHelper::Union( + winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Point const& point) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.Union(target, point); }); + } + inline auto RectHelper::Union(winrt::Windows::Foundation::Rect const& target, + winrt::Windows::Foundation::Rect const& rect) { + return impl::call_factory( + [&](IRectHelperStatics const& f) { return f.Union(target, rect); }); + } + inline ResourceDictionary::ResourceDictionary() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IResourceDictionaryFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline RoutedEventArgs::RoutedEventArgs() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IRoutedEventArgsFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline ScalarTransition::ScalarTransition() { + winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; + *this = impl::call_factory( + [&](IScalarTransitionFactory const& f) { + return f.CreateInstance(baseInterface, innerInterface); + }); + } + inline Setter::Setter() + : Setter(impl::call_factory_cast< + Setter (*)( + winrt::Windows::Foundation::IActivationFactory const&), + Setter>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline Setter::Setter( + winrt::Microsoft::UI::Xaml::DependencyProperty const& targetProperty, + winrt::Windows::Foundation::IInspectable const& value) + : Setter(impl::call_factory( + [&](ISetterFactory const& f) { + return f.CreateInstance(targetProperty, value); + })) {} + inline SetterBaseCollection::SetterBaseCollection() + : SetterBaseCollection( + impl::call_factory_cast< + SetterBaseCollection (*)( + winrt::Windows::Foundation::IActivationFactory const&), + SetterBaseCollection>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto SizeHelper::Empty() { + return impl::call_factory_cast( + [](ISizeHelperStatics const& f) { return f.Empty(); }); + } + inline auto SizeHelper::FromDimensions(float width, float height) { + return impl::call_factory( + [&](ISizeHelperStatics const& f) { + return f.FromDimensions(width, height); + }); + } + inline auto SizeHelper::GetIsEmpty( + winrt::Windows::Foundation::Size const& target) { + return impl::call_factory( + [&](ISizeHelperStatics const& f) { return f.GetIsEmpty(target); }); + } + inline auto SizeHelper::Equals( + winrt::Windows::Foundation::Size const& target, + winrt::Windows::Foundation::Size const& value) { + return impl::call_factory( + [&](ISizeHelperStatics const& f) { return f.Equals(target, value); }); + } + inline StateTrigger::StateTrigger() + : StateTrigger(impl::call_factory_cast< + StateTrigger (*)( + winrt::Windows::Foundation::IActivationFactory const&), + StateTrigger>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance(); + })) {} + inline auto StateTrigger::IsActiveProperty() { + return impl::call_factory_cast< + winrt::Microsoft::UI::Xaml::DependencyProperty (*)( + IStateTriggerStatics const&), + StateTrigger, IStateTriggerStatics>( + [](IStateTriggerStatics const& f) { return f.IsActiveProperty(); }); + } + inline Style::Style() + : Style(impl::call_factory_cast< + Style (*)(winrt::Windows::Foundation::IActivationFactory const&), + Style>( + [](winrt::Windows::Foundation::IActivationFactory const& f) { + return f.template ActivateInstance